replace the deprecated OpenLayers.Util.getArgs with OpenLayers.Util.getParameters
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10445 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@
|
|||||||
function runMVS() {
|
function runMVS() {
|
||||||
OpenLayers.ProxyHost = '/proxy/?url=';
|
OpenLayers.ProxyHost = '/proxy/?url=';
|
||||||
if (document.location.protocol != "file:") {
|
if (document.location.protocol != "file:") {
|
||||||
theArgs = OpenLayers.Util.getArgs();
|
theArgs = OpenLayers.Util.getParameters();
|
||||||
} else {
|
} else {
|
||||||
theArgs = {};
|
theArgs = {};
|
||||||
theArgs.center = "0,0";
|
theArgs.center = "0,0";
|
||||||
|
|||||||
@@ -353,7 +353,7 @@ OpenLayers.Layer.MapGuide = OpenLayers.Class(OpenLayers.Layer.Grid, {
|
|||||||
allParams = OpenLayers.Util.extend(allParams, newParams);
|
allParams = OpenLayers.Util.extend(allParams, newParams);
|
||||||
// ignore parameters that are already in the url search string
|
// ignore parameters that are already in the url search string
|
||||||
var urlParams = OpenLayers.Util.upperCaseObject(
|
var urlParams = OpenLayers.Util.upperCaseObject(
|
||||||
OpenLayers.Util.getArgs(url));
|
OpenLayers.Util.getParameters(url));
|
||||||
for(var key in allParams) {
|
for(var key in allParams) {
|
||||||
if(key.toUpperCase() in urlParams) {
|
if(key.toUpperCase() in urlParams) {
|
||||||
delete allParams[key];
|
delete allParams[key];
|
||||||
|
|||||||
Reference in New Issue
Block a user