Select to view content in your preferred language

Toggling slider/zoom

732
1
04-02-2012 05:22 AM
HugoAhlenius
Deactivated User
Hi,

I have a map with a navigation toolbar and a zoom slider. Now, I toggle a few things on each pan/zoom change (throbber and a few other graphics layer) as well as the zoom slider.

Now, what happens is that after the first time the user has clicked the "zoom in" icon and performed a rubber-band zoom, the slider doesn't work as it should. If the "zoom in" navigation is still active, any click on the slider are interpreted as zooming clicks (on that point) and not as slider zoom/navigation.

Seems like the z-order or something has gotten confused. If I don't hide/show the slider, then it works ok, but I haven't been able to isolate the bug really.

Any tips?
0 Kudos
1 Reply
HugoAhlenius
Deactivated User
It seems like the click event is both interpreted on the slider + as zooming the map. If I could bind a onClick event to the slider, then I guess I could try to create a workaround somehow, but I am not sure how to do that...
0 Kudos