Changeset 2166
- Timestamp:
- 01/20/07 11:49:52 (2 years ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Control/OverviewMap.js (modified) (2 diffs)
- trunk/openlayers/theme/default/style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Control/OverviewMap.js
r2165 r2166 134 134 }); 135 135 this.rectEvents = new OpenLayers.Events(this, this.extentRectangle); 136 this.rectEvents.register('mouseover', this, this.rectMouseOver);137 136 this.rectEvents.register('mouseout', this, this.rectMouseOut); 138 137 this.rectEvents.register('mousedown', this, this.rectMouseDown); … … 201 200 * @param {OpenLayers.Event} evt 202 201 */ 203 rectMouseOver: function (evt) {204 this.extentRectangle.style.cursor = 'move';205 },206 207 /**208 * @param {OpenLayers.Event} evt209 */210 202 rectMouseOut: function (evt) { 211 this.extentRectangle.style.cursor = 'default';212 203 if(this.rectDragStart != null) { 213 204 if(this.performedRectDrag) { 214 this.updateMapToRect(); 215 } 205 this.rectMouseMove(evt); 206 var rectPxBounds = this.getRectPxBounds(); 207 // if we're off of the overview map, update the main map 208 // otherwise, keep moving the rect 209 if((rectPxBounds.top <= 0) || (rectPxBounds.left <= 0) || 210 (rectPxBounds.bottom >= this.size.h - this.hComp) || 211 (rectPxBounds.right >= this.size.w - this.wComp)) { 212 this.updateMapToRect(); 213 } else { 214 return; 215 } 216 } 216 217 document.onselectstart = null; 217 218 this.rectDragStart = null; trunk/openlayers/theme/default/style.css
r1695 r2166 57 57 58 58 .olControlOverviewMapExtentRectangle { 59 cursor: move; 59 60 border: 2px dotted red; 60 61 }
