Don't overwrite params, and use params in Layer.ArcGISCache
This commit is contained in:
@@ -452,7 +452,9 @@ OpenLayers.Layer.ArcGISCache = OpenLayers.Class(OpenLayers.Layer.XYZ, {
|
||||
// Write the values into our formatted url
|
||||
url = OpenLayers.String.format(url, {'x': x, 'y': y, 'z': z});
|
||||
|
||||
return url;
|
||||
return OpenLayers.Util.urlAppend(
|
||||
url, OpenLayers.Util.getParameterString(this.params)
|
||||
);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -60,7 +60,9 @@ OpenLayers.Layer.HTTPRequest = OpenLayers.Class(OpenLayers.Layer, {
|
||||
initialize: function(name, url, params, options) {
|
||||
OpenLayers.Layer.prototype.initialize.apply(this, [name, options]);
|
||||
this.url = url;
|
||||
this.params = OpenLayers.Util.extend( {}, params);
|
||||
if (!this.params) {
|
||||
this.params = OpenLayers.Util.extend({}, params);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user