Do not fire 'zoom_changed' event when calling fitBounds function on map
Posted
by
Encore PTL
on Stack Overflow
See other posts from Stack Overflow
or by Encore PTL
Published on 2012-10-25T22:08:50Z
Indexed on
2012/10/25
23:01 UTC
Read the original article
Hit count: 227
Is there a way to prevent the zoom_change event from being triggered if it occurs due to fitBounds() ?
I am having an issue where I need to do a search on the server from client when there is a zoom change to map but every time I call fitBounds() it causes zoom_change to trigger which causes the client to do another search on the server. I am only interested in zoom_change done by users and not programmatically using fitBounds.
© Stack Overflow or respective owner