Changeset 6992
- Timestamp:
- 04/22/08 08:19:11 (9 months ago)
- Files:
-
- sandbox/bartvde/cursor/examples/cursor.html (added)
- sandbox/bartvde/cursor/lib/OpenLayers/Control.js (modified) (2 diffs)
- sandbox/bartvde/cursor/lib/OpenLayers/Handler/Box.js (modified) (2 diffs)
- sandbox/bartvde/cursor/lib/OpenLayers/Handler/Drag.js (modified) (3 diffs)
- sandbox/bartvde/cursor/theme/default/img/icn-drag.png (added)
- sandbox/bartvde/cursor/theme/default/img/icn-zoomin.png (added)
- sandbox/bartvde/cursor/theme/default/img/icn-zoomout.png (added)
- sandbox/bartvde/cursor/theme/default/img/zoomin.cur (added)
- sandbox/bartvde/cursor/theme/default/img/zoomout.cur (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/bartvde/cursor/lib/OpenLayers/Control.js
r6833 r6992 115 115 116 116 /** 117 * APIProperty: cursor 118 * {String} cursor which will be set on the map div upon activation. 119 */ 120 cursor: null, 121 122 /** 117 123 * APIProperty: eventListeners 118 124 * {Object} If set as an option at construction, the eventListeners … … 292 298 */ 293 299 activate: function () { 300 if (this.cursor) { 301 this.map.div.style.cursor = this.cursor; 302 } else { 303 this.map.div.style.cursor = 'default'; 304 } 294 305 if (this.active) { 295 306 return false; sandbox/bartvde/cursor/lib/OpenLayers/Handler/Box.js
r5614 r6992 78 78 79 79 // TBD: use CSS classes instead 80 this.map.div.style.cursor = "crosshair";81 80 }, 82 81 … … 114 113 } 115 114 this.removeBox(); 116 117 // TBD: use CSS classes instead118 this.map.div.style.cursor = "";119 115 120 116 this.callback("done", [result]); sandbox/bartvde/cursor/lib/OpenLayers/Handler/Drag.js
r5911 r6992 161 161 this.start = evt.xy; 162 162 this.last = evt.xy; 163 // TBD replace with CSS classes164 this.map.div.style.cursor = "move";165 163 this.down(evt); 166 164 this.callback("down", [evt.xy]); … … 222 220 this.started = false; 223 221 this.dragging = false; 224 // TBD replace with CSS classes225 this.map.div.style.cursor = "";226 222 this.up(evt); 227 223 this.callback("up", [evt.xy]); … … 249 245 this.started = false; 250 246 this.dragging = false; 251 // TBD replace with CSS classes252 this.map.div.style.cursor = "";253 247 this.out(evt); 254 248 this.callback("out", []);
