OpenLayers OpenLayers

Ticket #1537: 1537.WFS-SRSparams.patch

File 1537.WFS-SRSparams.patch, 0.6 kB (added by edgemaster, 7 months ago)

One-line patch in getFullRequestString() to use layer.projection.getCode()

  • lib/OpenLayers/Layer/WFS.js

    old new  
    433433     * altUrl - {String} Use this as the url instead of the layer's url 
    434434     */ 
    435435    getFullRequestString:function(newParams, altUrl) { 
    436         var projectionCode = this.map.getProjection(); 
     436        var projectionCode = this.projection.getCode() || this.map.getProjection(); 
    437437        this.params.SRS = (projectionCode == "none") ? null : projectionCode; 
    438438 
    439439        return OpenLayers.Layer.Grid.prototype.getFullRequestString.apply(