Use the spatial filter. Here a example:
var f = selectedFeature;
var bounds = f.geometry.getBounds();
var oFilter = new OpenLayers.Filter.Spatial({
type: OpenLayers.Filter.Spatial.BBOX,
value: bounds,
projection: "EPSG:900913" // my projection, maybe not your
});
yourlayer.filter = oFilter;
yourlayer.refresh({force: true});
There is also a possibility with a spatial filter based on a polygon, but I
have not valid it.
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Selecting-one-or-more-markers-using-a-bounding-box-tp5636618p5649976.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