For example:
ctrlSelectFeature = new OpenLayers.Control.SelectFeature();
layers.features.forEach(function(feature) {
feature["types"].forEach(function(type) {
if (type == selectedType) {
ctrlSelectFeature.select(feature)
}
})
})
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/grouping-points-by-types-tp6005631p6008271.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users