Getting zoom level of maps using HERE Maps -


we want retrieve visible markers of map section rendered. here maps api offers method requestmarkers() layers. here code snippet how realize it:

    //get rendered map section     var viewbounds = heremap.map.getviewbounds();     //get current zoom level     var mapzoom = heremap.map.getzoom();      heremap.allvismarkers = [];      //retrieve visible markers on map section     heremap.allvismarkers = heremap.layer.requestmarkers(viewbounds,mapzoom); 

unfortunately getzoom() method of map not return actual zoom level, zoom level defined when creating map.

is there way "actualize" zoom level when mouse wheel turned (getzoom() method didn't work standard zoom control either), or using wrong method?

thanks in advance, team dg7

we found solution our problem: using sap fpm framework in combination free-style guibb show map. error created map every framework loop.

to sum up: getzoom() method works fine.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -