Zoom Changed Event For Nokia Here Maps
I'm confused on how to handle zoom events with Nokia Here maps. Usually for example map.addEventListener('dragend', function(){....}) why cant the same signature work for somethi
Solution 1:
The supported map events are documented here , i think simplest way to achieve your requirement would be to check the map zoom level in the mapviewchangeend listener.
var oldZoom=map.getZoom();
map.addEventListener('mapviewchangeend', function(){
var newZoom=map.getZoom();
if(newZoom > oldZoom){
// zoomed in
}else{
// zoomed out
}
oldZoom=newZoom;
})
Post a Comment for "Zoom Changed Event For Nokia Here Maps"