Hi All,
Is there implementation in google map add on ,for google map listener , ‘zoom_change’ ? that have capability like original javascript below
google.maps.event.addListener(map, ‘zoom_changed’, function() {}
Thanks
Hi All,
Is there implementation in google map add on ,for google map listener , ‘zoom_change’ ? that have capability like original javascript below
google.maps.event.addListener(map, ‘zoom_changed’, function() {}
Thanks
Hi,
Unfortunately, there is no MapZoomListener
, but you can workaround it by using MapMoveListener
and checking zoom
value, for instance:
map.addMapMoveListener(event -> {
if (map.getZoom() != lastZoom) {
// do something
...
lastZoom = map.getZoom();
}
});
Ok Got It
Thanks, for your explanation