From d9821260ae3d98e89745bc60c8d77c0df2f62bda Mon Sep 17 00:00:00 2001 From: euzuro Date: Fri, 12 Oct 2007 18:26:52 +0000 Subject: [PATCH] update ND and function declarations for getFullRequestString() in WFS/WMS to match the original in their superclass, HTTPRequest. git-svn-id: http://svn.openlayers.org/trunk/openlayers@4930 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/WFS.js | 3 ++- lib/OpenLayers/Layer/WMS.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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;