OpenLayers OpenLayers

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  
    179179        this.layer = layer; 
    180180        this.vertices = []; 
    181181        this.virtualVertices = []; 
    182         this.styleVirtual = OpenLayers.Util.extend({}, 
     182        this.virtualStyle = OpenLayers.Util.extend({}, 
    183183            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; 
    186186        this.deleteCodes = [46, 100]; 
    187187        this.mode = OpenLayers.Control.ModifyFeature.RESHAPE; 
    188188        OpenLayers.Control.prototype.initialize.apply(this, [options]); 
     
    564564                            var y = (prevVertex.y + nextVertex.y) / 2; 
    565565                            var point = new OpenLayers.Feature.Vector( 
    566566                                new OpenLayers.Geometry.Point(x, y), 
    567                                 null, control.styleVirtual 
     567                                null, control.virtualStyle 
    568568                            ); 
    569569                            // set the virtual parent and intended index 
    570570                            point.geometry.parent = geometry;