@corpsmap/corpsmap 4.1.26 → 4.1.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corpsmap/corpsmap",
3
- "version": "4.1.26",
3
+ "version": "4.1.27",
4
4
  "main": "dist/corpsmap.umd.js",
5
5
  "module": "dist/corpsmap.es.js",
6
6
  "type": "module",
@@ -64,6 +64,7 @@ const createNode = (options, map) => {
64
64
  groupTag: options.groupTag,
65
65
  layerFunction: options.layerFunction,
66
66
  layerParams: options.layerParams,
67
+ params: options.params,
67
68
  };
68
69
  return node;
69
70
  };
@@ -79,6 +79,11 @@ export default {
79
79
  const layerList = visibleLayer.layerList;
80
80
  params["layers"] = `all:${layerList}`;
81
81
  const p = Object.assign({}, params, { root: visibleLayer.url });
82
+ if (visibleLayer.params && visibleLayer.params.layerDefs) {
83
+ p.layerDefs = encodeURIComponent(
84
+ decodeURIComponent(visibleLayer.params.layerDefs)
85
+ );
86
+ }
82
87
  const url = formatUrl(p);
83
88
 
84
89
  queries.push((cb) => {
@@ -84,6 +84,11 @@ export default {
84
84
  const layerList = visibleLayer.layerList;
85
85
  params["layers"] = `all:${layerList}`;
86
86
  const p = Object.assign({}, params, { root: root });
87
+ if (visibleLayer.params && visibleLayer.params.layerDefs) {
88
+ p.layerDefs = encodeURIComponent(
89
+ decodeURIComponent(visibleLayer.params.layerDefs)
90
+ );
91
+ }
87
92
 
88
93
  const url = formatUrl(p);
89
94
  queries.push((cb) => {