@opengeoweb/webmap 4.6.1 → 4.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -5432,7 +5432,7 @@ var WMJSMap = /*#__PURE__*/function () {
5432
5432
  }
5433
5433
 
5434
5434
  if (_typeof(animationList) === 'object') {
5435
- if (animationList !== {}) {
5435
+ if (JSON.stringify(animationList) !== '{}') {
5436
5436
  this._animationList = animationList;
5437
5437
  }
5438
5438
  }
@@ -5835,11 +5835,13 @@ var WMJSMap = /*#__PURE__*/function () {
5835
5835
  key: "getWMSGetFeatureInfoRequestURL",
5836
5836
  value: function getWMSGetFeatureInfoRequestURL(layer, x, y) {
5837
5837
  var format = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'text/html';
5838
+
5839
+ /* For invalid layers we cannot build an url */
5840
+ if (!layer.name) return '';
5838
5841
  var request = WMJScheckURL(layer.service);
5839
5842
  request += "&SERVICE=WMS&REQUEST=GetFeatureInfo&VERSION=".concat(layer.version);
5840
5843
  request += "&LAYERS=".concat(URLEncode(layer.name));
5841
- var baseLayers = layer.name.split(',');
5842
- request += "&QUERY_LAYERS=".concat(URLEncode(baseLayers[baseLayers.length - 1]));
5844
+ request += "&QUERY_LAYERS=".concat(URLEncode(layer.name));
5843
5845
  request += "&".concat(getBBOXandProjString(this, layer));
5844
5846
  request += "WIDTH=".concat(this.width);
5845
5847
  request += "&HEIGHT=".concat(this.height);
package/index.umd.js CHANGED
@@ -5433,7 +5433,7 @@
5433
5433
  }
5434
5434
 
5435
5435
  if (_typeof(animationList) === 'object') {
5436
- if (animationList !== {}) {
5436
+ if (JSON.stringify(animationList) !== '{}') {
5437
5437
  this._animationList = animationList;
5438
5438
  }
5439
5439
  }
@@ -5819,12 +5819,14 @@
5819
5819
  if (format === void 0) {
5820
5820
  format = 'text/html';
5821
5821
  }
5822
+ /* For invalid layers we cannot build an url */
5822
5823
 
5824
+
5825
+ if (!layer.name) return '';
5823
5826
  var request = WMJScheckURL(layer.service);
5824
5827
  request += "&SERVICE=WMS&REQUEST=GetFeatureInfo&VERSION=" + layer.version;
5825
5828
  request += "&LAYERS=" + URLEncode(layer.name);
5826
- var baseLayers = layer.name.split(',');
5827
- request += "&QUERY_LAYERS=" + URLEncode(baseLayers[baseLayers.length - 1]);
5829
+ request += "&QUERY_LAYERS=" + URLEncode(layer.name);
5828
5830
  request += "&" + getBBOXandProjString(this, layer);
5829
5831
  request += "WIDTH=" + this.width;
5830
5832
  request += "&HEIGHT=" + this.height;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/webmap",
3
- "version": "4.6.1",
3
+ "version": "4.7.1",
4
4
  "description": "GeoWeb webmap library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {