[OpenLayers-Dev] Re: Openlayers: Check the map content and tell if
the feature exists in the map bound
dr
rykovd at gmail.com
Sat Sep 10 08:32:37 EDT 2011
Hi! For example:
features = map.layers[1].features;
for (var i = 0; i<features.length; i++) {
if (features[i].geometry.getBounds().intersectsBounds(map.getExtent()))
{
console.log(features[i]);
}
}
-----
Denis Rykov
NextGIS
http://www.nextgis.org/
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Openlayers-Check-the-map-content-and-tell-if-the-feature-exists-in-the-map-bound-tp6776147p6778642.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.
More information about the Dev
mailing list