diff --git a/lib/OpenLayers/Layer/WFS.js b/lib/OpenLayers/Layer/WFS.js index f7bf2cdf4a..92365cfec7 100644 --- a/lib/OpenLayers/Layer/WFS.js +++ b/lib/OpenLayers/Layer/WFS.js @@ -373,8 +373,9 @@ OpenLayers.Layer.WFS = OpenLayers.Class( * * Parameters: * newParams - {Object} + * altUrl - {String} Use this as the url instead of the layer's url */ - getFullRequestString:function(newParams) { + getFullRequestString:function(newParams, altUrl) { var projection = this.map.getProjection(); this.params.SRS = (projection == "none") ? null : projection; diff --git a/lib/OpenLayers/Layer/WMS.js b/lib/OpenLayers/Layer/WMS.js index 518ab68284..ad90b723fc 100644 --- a/lib/OpenLayers/Layer/WMS.js +++ b/lib/OpenLayers/Layer/WMS.js @@ -202,11 +202,12 @@ OpenLayers.Layer.WMS = OpenLayers.Class(OpenLayers.Layer.Grid, { * * Parameters: * newParams - {Object} + * altUrl - {String} Use this as the url instead of the layer's url * * Returns: * {String} */ - getFullRequestString:function(newParams) { + getFullRequestString:function(newParams, altUrl) { var projection = this.map.getProjection(); this.params.SRS = (projection == "none") ? null : projection;