Ticket #1070: box_handler_css.patch
| File box_handler_css.patch, 1.9 kB (added by crschmidt, 1 year ago) |
|---|
-
lib/OpenLayers/Handler/Box.js
old new 22 22 dragHandler: null, 23 23 24 24 /** 25 * APIProperty: boxDivClassName 26 * {String} The CSS class to use for drawing the box. Default is 27 * olHandlerBoxZoomBox 28 */ 29 boxDivClassName: 'olHandlerBoxZoomBox', 30 31 /** 25 32 * Constructor: OpenLayers.Handler.Box 26 33 * 27 34 * Parameters: … … 62 69 */ 63 70 startBox: function (xy) { 64 71 this.zoomBox = OpenLayers.Util.createDiv('zoomBox', 65 this.dragHandler.start, 66 null, 67 null, 68 "absolute", 69 "2px solid red"); 70 this.zoomBox.style.backgroundColor = "white"; 71 this.zoomBox.style.filter = "alpha(opacity=50)"; // IE 72 this.zoomBox.style.opacity = "0.50"; 73 this.zoomBox.style.fontSize = "1px"; 72 this.dragHandler.start); 73 this.zoomBox.className = this.boxDivClassName; 74 74 this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1; 75 75 this.map.viewPortDiv.appendChild(this.zoomBox); 76 76 -
theme/default/style.css
old new 159 159 background-image: url("img/draw_polygon_on.png"); 160 160 background-repeat: no-repeat; 161 161 } 162 163 .olHandlerBoxZoomBox { 164 border: 2px solid red; 165 position: absolute; 166 background-color: white; 167 opacity: 0.50; 168 font-size: 1px; 169 filter: alpha(opacity=50); 170 }
