You syays that your map contains two layers and sLayername is layer name. If
oMapControl.getLayersByName(slayername).length returns 2 it means that your
map contains two layers with the same names?

-----
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-tp6776147p6786919.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.
_______________________________________________
Dev mailing list
d...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-dev

Reply via email to