javascript - Open Layers 3 Zoom map event handler -



javascript - Open Layers 3 Zoom map event handler -

i need handle zoom event in open layers 3.

the next code:

map_object = new ol.map({ target: 'map', controls: controls_list, interactions: interactions_list, overlays: [overlay], layers: [osm_raster, wfs_layer], view: view }); map_object.on("zoom", function() { console.log('zooming...'); });

this code runs no errors , shows map, there no output console, suggesting function isn't firing.

i have tried:

map_object.on("drag", function() { console.log('dragging...'); });

and nothing.

any help how handle map command events in ol3 much appreciated (particularly zooming!). note have tried 'zoom' 'zoom' type field of on method.

try moveend event. (see http://openlayers.org/en/master/apidoc/ol.map.html , & don’t forget uncheck «stable only» in topbar see it).

javascript openlayers openlayers-3

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -