Changeset 7589 for trunk/openlayers/examples
- Timestamp:
- 07/29/08 14:20:19 (4 months ago)
- Files:
-
- trunk/openlayers/examples/select-feature.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/examples/select-feature.html
r7095 r7589 42 42 multiple: false, hover: false, 43 43 toggleKey: "ctrlKey", // ctrl key removes from selection 44 multipleKey: "shiftKey" // shift key adds to selection 44 multipleKey: "shiftKey", // shift key adds to selection 45 box: true 45 46 } 46 47 ) … … 70 71 var hover = document.getElementById("hover").checked; 71 72 drawControls.select.hover = hover; 72 if(hover && drawControls.select.active) {73 // turn on/off to clear feature property of handler73 drawControls.select.box = document.getElementById("box").checked; 74 if(drawControls.select.active) { 74 75 drawControls.select.deactivate(); 75 76 drawControls.select.activate(); … … 112 113 <ul> 113 114 <li> 115 <input id="box" type="checkbox" checked="checked" 116 name="box" onchange="update()" /> 117 <label for="box">select features in a box</label> 118 </li> 119 <li> 114 120 <input id="clickout" type="checkbox" 115 121 name="clickout" onchange="update()" />
