Point graphics drawn twice on iPad

692
2
09-27-2013 07:29 AM
JasonZou
Occasional Contributor III
Hi fellow GIS folks,

I have a custom drawing tool developed using JSAPI 3.6, which allows the users to draw points, lines, polygons and texts. It works great on desktop browsers, like Chrome, Firefox, and IE. However, when I test the function on an iPad, the point graphic is added to the map twice every time when I tap on the map. The issue only occurs with point graphics. Line and polygon graphics are all added once.

Questions:

  • Does the tap gesture trigger the onDrawEnd event twice, or any other cause?

  • What is the best debug tool to troubleshoot the JS app on iPad? The online search shows not promising result. The best bet so far is weinre. But with it, you cannot set breakpoints. Am I missing something? We only have windows machine, so Mac option does not work for me.


Thanks in advance.

Jason Z.
0 Kudos
2 Replies
ZachLiu1
Occasional Contributor II
Which os is that? IOS 6 or 7?

I had some experience when the api may trigger click event twice even though you only touch the screen once. Maybe that's the issue.

I also remembered someone mentioned something like this before.


Haven't found any solution, hope someone has a clue.
0 Kudos
JasonZou
Occasional Contributor III
Thanks Zach for the reply. I am using the first generation iPad, which runs at iOS 5.1.1:( That seems to be the most update-to-date iOS this iPad can have.

Have you figured out why the click event triggered twice when tap only once?
0 Kudos