[OpenLayers-Users] Style of line which geometry is being changed

Max Weidemann max.weidemann at freenet.de
Wed Feb 3 04:18:08 EST 2010


Hello Poul,

I can you try this Code. I think you confuses "s" with "z" in initialize and
":" with"=". 

    drawControls["modify_wfs_layer"].initialize = function(zielona_wfs) {
        this.layer = zielona_wfs;
        this.vertices = [];
        this.virtualVertices = [];
        this.virtualStyle = OpenLayers.Util.extend({},
            this.layer.style || this.layer.styleMap.createSymbolizer());
        this.virtualStyle.fillOpacity = 1;
        this.virtualStyle.strokeOpacity = 1;
        this.deleteCodes = [46, 68];
        this.mode = OpenLayers.Control.ModifyFeature.RESHAPE;
        OpenLayers.Control.prototype.initialize.apply(this, []);
        if(!(this.deleteCodes instanceof Array)) {
            this.deleteCodes = [this.deleteCodes];
        } 

cheers
Max
-- 
View this message in context: http://n2.nabble.com/Style-of-line-which-geometry-is-being-changed-tp4469289p4506211.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list