Javascripts API, on "zoomstart" event ,how to specify zoom type is "zoomin" or "zoomout"

2 posts / 0 new
Last post
phamvanphong
Javascripts API, on "zoomstart" event ,how to specify zoom type is "zoomin" or "zoomout"

Hi,
I added a listener on "zoomstart" event . But i can't specify this is zoom in or zoom out. How to know zoom type when "zoomstart" is fired or add a listener when zoom out is fired.

Thanks.


MQBrianCoakley
Keep a variable with the
Keep a variable with the current zoom level then use it to compare the zoom level after the zoom change.