Ticket #1495: 1495-r6797-A0.patch
| File 1495-r6797-A0.patch, 1.4 kB (added by ahocevar, 9 months ago) |
|---|
-
lib/OpenLayers/Control/ModifyFeature.js
old new 179 179 this.layer = layer; 180 180 this.vertices = []; 181 181 this.virtualVertices = []; 182 this. styleVirtual= OpenLayers.Util.extend({},182 this.virtualStyle = OpenLayers.Util.extend({}, 183 183 this.layer.style || this.layer.styleMap.createSymbolizer()); 184 this. styleVirtual.fillOpacity = 0.3;185 this. styleVirtual.strokeOpacity = 0.3;184 this.virtualStyle.fillOpacity = 0.3; 185 this.virtualStyle.strokeOpacity = 0.3; 186 186 this.deleteCodes = [46, 100]; 187 187 this.mode = OpenLayers.Control.ModifyFeature.RESHAPE; 188 188 OpenLayers.Control.prototype.initialize.apply(this, [options]); … … 564 564 var y = (prevVertex.y + nextVertex.y) / 2; 565 565 var point = new OpenLayers.Feature.Vector( 566 566 new OpenLayers.Geometry.Point(x, y), 567 null, control. styleVirtual567 null, control.virtualStyle 568 568 ); 569 569 // set the virtual parent and intended index 570 570 point.geometry.parent = geometry;
