[OpenLayers-Users] SelectFeature Control

djud djud at bas.ac.uk
Tue Mar 31 09:14:21 EDT 2009


I've fixed this one, I needed to add the 'selectStyle' to the SelectFeature:

ctrlHover = new OpenLayers.Control.SelectFeature(surveyLayer,
   {
   multiple: false,
   hover: true,
   toggleKey: "ctrlKey", // ctrl key removes from selection
   multipleKey: "shiftKey", // shift key adds to selection
   selectStyle: {strokeColor: "#ff0000", strokeWidth: 2}
   });


-- 
View this message in context: http://n2.nabble.com/SelectFeature-Control-tp2562414p2562871.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list