Hi All,<br><br>I'm trying to figure out a solution to a problem, but unfortunately I'm not having much luck so I was wondering if anyone had any ideas.<br><br>I have two Vector layers that each have their own features. I need all features to be selectable, but each layer should have it's own select rules eg:<br>
<br>Layer1 = multi-select: false<br>Layer2 = multi-select: true<br><br>The example below means Layer1 & Layer2 have multi-select, however that's not what I need.<br><br>Any help would be greatly appreciated.<br><br>
<br> selectControl = {<br><br> select: new OpenLayers.Control.SelectFeature(<br> [Layer1,Layer2],<br> {<br> clickout: false, toggle: true,<br>
multiple: true, hover: false,<br> toggleKey: "ctrlKey", // ctrl key removes from selection<br> multipleKey: "shiftKey", // shift key adds to selection<br>
onSelect: onFeatureSelect,<br> onUnselect: onFeatureUnselect<br> }<br> ),<br> navigate: new OpenLayers.Control.Navigation()<br>
}<br><br><br>-- <br>Regards,<br>Richard Ive.<br>