drawing graphic layer on client side

1954
11
Jump to solution
10-02-2012 04:39 AM
Krystianp
Deactivated User
hello,

I've got some problems with drawing graphics point on client side. The problem is, when I draw points by first time by JS api everything is OK. But when  points exists and I  try to realy fast pan my map window from left to right (for example) my graphic layer can't finish drawing before one pan is ended. After few this kind of operations I can see, that my graphics points aren't in the geographic position as they should be when I started to pan. My question is how can I block again pan untill my graphic is drawn properly. I think it is the only way to prevent described situation.
I would like to mention, that I'm using jQuery for this application and I tried many many tricks like setting flag and setting enableMapNaviagtion() after document ready, I have tried to setTimeout, but for now this doesnt works. Can anybody helps me?
0 Kudos
11 Replies
__Rich_
Deactivated User
I don't suppose this application is on the web somewhere?

Sounds like a lot is going on and tracking down anything from snippets is going to be hard!
0 Kudos
Krystianp
Deactivated User
OK. so I figured it out!!! 🙂

the problem was as I wrote before - when I release mouse button, but still moves mouse over the screen the map was moving with me. (only in google chrome) but when I changed event from onPanStart/Stop to onMouseDragStart/Stop everything works good, but I had to check if pan tool is active.

but still..3days went to hell! 😉

with greetings
Krystian.
0 Kudos