[OpenLayers-Users] select multiple features with a click

Jim White jbw2003 at earthlink.net
Thu Feb 23 17:03:33 EST 2012


I have a vector layer of points with images. I want to click on the map 
and select one or more features if several points are close together.

   var select_control = new OpenLayers.Control.SelectFeature(vector_layer,
             {"onSelect": test,
                "multiple": true});

This doesn't seem to work. It selects one feature, but not two if two 
points are close together. How to do this?

Jim White


More information about the Users mailing list