Sha256: e383f0f9f8d4fabe9e2890fe358ccf055e030aaf3518175c9b99135e1e4accae

Contents?: true

Size: 666 Bytes

Versions: 28

Compression:

Stored size: 666 Bytes

Contents

/**
 * UrlParams
 *
 * parse URL parameters
 *
 * tiledWms=<1|0>: force tiled/untiled WMS
 */

var UrlParams = {};

// URL parameters
UrlParams.params = {};

// parse URL parameters
UrlParams.parse = function() {
  var  urlString = "";
  if (document.documentURI) {
    // all browsers except older IE
    urlString = document.documentURI;
  }
  else {
    // older IE
    urlString = window.location.href;
  }

  var urlArray = urlString.split('?');
  if (urlArray.length > 1) {
    var kvPairs = urlArray[1].split('&');
    for (var i=0; i<kvPairs.length; i++) {
      var kvPair = kvPairs[i].split('=');
      UrlParams.params[kvPair[0]] = kvPair[1];
    }
  }
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
gb_mapfish_appserver-0.8.5 test/dummy/public/apps/myviewer/src/url_params.js
gb_mapfish_appserver-0.8.4 test/dummy/public/apps/myviewer/src/url_params.js
gb_mapfish_appserver-0.8.3 test/dummy/public/apps/myviewer/src/url_params.js
gb_mapfish_appserver-0.8.2 test/dummy/public/apps/myviewer/src/url_params.js
gb_mapfish_appserver-0.8.1 test/dummy/public/apps/myviewer/src/url_params.js
gb_mapfish_appserver-0.8.0 test/dummy/public/apps/myviewer/src/url_params.js
gb_mapfish_appserver-0.0.7 test/dummy/public/apps/myviewer/src/url_params.js
gb_mapfish_appserver-0.0.6 test/dummy/public/apps/myviewer/src/url_params.js