javascript - Detect if overlay is in view -


how can detect if overlay element visible / not visible?

i think there possibility information on bounding boxes of dom-elements, doesn't seem solution me.

is there way find out using openlayers api?

you can check if ol.overlay position inside ol.view extent with:

var overlay_position = overlay.getposition(); var view_extent = map.getview().calculateextent(map.getsize()); console.info(ol.extent.containscoordinate(view_extent, overlay_position)); 

Comments

Popular posts from this blog

Lists in Python -

android - can not access to progress bar in an other activity -

java - Vaadin 7 Pass Data Between Views -