@eox/layercontrol 1.5.0 → 1.6.0
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/dist/eox-layercontrol.js +6 -6
- package/dist/eox-layercontrol.umd.cjs +1 -1
- package/package.json +1 -1
- package/src/main.js +3 -3
- package/types/main.d.ts +3 -3
package/dist/eox-layercontrol.js
CHANGED
|
@@ -5862,8 +5862,11 @@ var ll = class extends k {
|
|
|
5862
5862
|
attribute: "show-layer-zoom-state",
|
|
5863
5863
|
type: Boolean
|
|
5864
5864
|
},
|
|
5865
|
-
tools: {
|
|
5866
|
-
addExternalLayers: {
|
|
5865
|
+
tools: { type: Array },
|
|
5866
|
+
addExternalLayers: {
|
|
5867
|
+
attribute: "add-external-layers",
|
|
5868
|
+
type: Boolean
|
|
5869
|
+
},
|
|
5867
5870
|
unstyled: { type: Boolean },
|
|
5868
5871
|
styleOverride: { type: String },
|
|
5869
5872
|
toolsAsList: { type: Boolean },
|
|
@@ -5875,10 +5878,7 @@ var ll = class extends k {
|
|
|
5875
5878
|
attribute: "tools-auto-expand",
|
|
5876
5879
|
type: Boolean
|
|
5877
5880
|
},
|
|
5878
|
-
customEditorInterfaces: {
|
|
5879
|
-
attribute: !1,
|
|
5880
|
-
type: Array
|
|
5881
|
-
}
|
|
5881
|
+
customEditorInterfaces: { type: Array }
|
|
5882
5882
|
};
|
|
5883
5883
|
#e;
|
|
5884
5884
|
constructor() {
|
|
@@ -969,7 +969,7 @@
|
|
|
969
969
|
letter-spacing: .0313rem;
|
|
970
970
|
}
|
|
971
971
|
${n}
|
|
972
|
-
`,document.head.appendChild(r)}},cl=e=>{let t;if(typeof e==`string`){let n=t=>t.querySelector(e);if(t=n(document),!t){let e=document.querySelectorAll(`html *`);for(let r=0;r<e.length&&!(e[r].shadowRoot&&(t=n(e[r].shadowRoot),t));r++);}}else t=e;return t},ll=e=>{let t=cl(e.for);return t&&t.map!==e.map&&(e.map=t.map),t};sl();var ul=class extends k{static properties={for:{type:String},idProperty:{attribute:`id-property`},map:{attribute:!1,state:!0},titleProperty:{attribute:`title-property`,type:String},showLayerZoomState:{attribute:`show-layer-zoom-state`,type:Boolean},tools:{
|
|
972
|
+
`,document.head.appendChild(r)}},cl=e=>{let t;if(typeof e==`string`){let n=t=>t.querySelector(e);if(t=n(document),!t){let e=document.querySelectorAll(`html *`);for(let r=0;r<e.length&&!(e[r].shadowRoot&&(t=n(e[r].shadowRoot),t));r++);}}else t=e;return t},ll=e=>{let t=cl(e.for);return t&&t.map!==e.map&&(e.map=t.map),t};sl();var ul=class extends k{static properties={for:{type:String},idProperty:{attribute:`id-property`},map:{attribute:!1,state:!0},titleProperty:{attribute:`title-property`,type:String},showLayerZoomState:{attribute:`show-layer-zoom-state`,type:Boolean},tools:{type:Array},addExternalLayers:{attribute:`add-external-layers`,type:Boolean},unstyled:{type:Boolean},styleOverride:{type:String},toolsAsList:{type:Boolean},globallyExclusiveLayers:{attribute:`globally-exclusive-layers`,type:Boolean},toolsAutoExpand:{attribute:`tools-auto-expand`,type:Boolean},customEditorInterfaces:{type:Array}};#e;constructor(){super(),this.for=`eox-map`,this.idProperty=`id`,this.map=null,this.titleProperty=`title`,this.showLayerZoomState=!1,this.tools=[`info`,`opacity`,`datetime`,`config`,`remove`,`sort`],this.addExternalLayers=!1,this.unstyled=!1,this.styleOverride=``,this.toolsAsList=!1,this.globallyExclusiveLayers=!1,this.toolsAutoExpand=!1,this.customEditorInterfaces=[]}firstUpdated(){this.eoxMap=ll(this)}updated(e){e.has(`for`)&&(this.eoxMap=ll(this))}get eoxMap(){return this.#e}set eoxMap(e){let t=this.#e;this.#e=e,this.requestUpdate(`eoxMap`,t)}#t(e){ol(e,this),this.dispatchEvent(new CustomEvent(`layerchange`,{detail:e.detail}))}#n(e){this.dispatchEvent(new CustomEvent(`layerConfig:change`,{detail:e.detail}))}render(){let e=this.map?.getLayers().getArray(),t=e&&Pi(e,`layerControlOptional`,!0)?.length>0;return D`
|
|
973
973
|
<style>
|
|
974
974
|
${!this.unstyled&&this.#r}
|
|
975
975
|
${this.styleOverride}
|
package/package.json
CHANGED
package/src/main.js
CHANGED
|
@@ -46,8 +46,8 @@ export class EOxLayerControl extends LitElement {
|
|
|
46
46
|
map: { attribute: false, state: true },
|
|
47
47
|
titleProperty: { attribute: "title-property", type: String },
|
|
48
48
|
showLayerZoomState: { attribute: "show-layer-zoom-state", type: Boolean },
|
|
49
|
-
tools: {
|
|
50
|
-
addExternalLayers: { attribute:
|
|
49
|
+
tools: { type: Array },
|
|
50
|
+
addExternalLayers: { attribute: "add-external-layers", type: Boolean },
|
|
51
51
|
unstyled: { type: Boolean },
|
|
52
52
|
styleOverride: { type: String },
|
|
53
53
|
toolsAsList: { type: Boolean },
|
|
@@ -59,7 +59,7 @@ export class EOxLayerControl extends LitElement {
|
|
|
59
59
|
attribute: "tools-auto-expand",
|
|
60
60
|
type: Boolean,
|
|
61
61
|
},
|
|
62
|
-
customEditorInterfaces: {
|
|
62
|
+
customEditorInterfaces: { type: Array },
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
/**
|
package/types/main.d.ts
CHANGED
|
@@ -44,10 +44,11 @@ export class EOxLayerControl extends LitElement {
|
|
|
44
44
|
type: BooleanConstructor;
|
|
45
45
|
};
|
|
46
46
|
tools: {
|
|
47
|
-
|
|
47
|
+
type: ArrayConstructor;
|
|
48
48
|
};
|
|
49
49
|
addExternalLayers: {
|
|
50
|
-
attribute:
|
|
50
|
+
attribute: string;
|
|
51
|
+
type: BooleanConstructor;
|
|
51
52
|
};
|
|
52
53
|
unstyled: {
|
|
53
54
|
type: BooleanConstructor;
|
|
@@ -67,7 +68,6 @@ export class EOxLayerControl extends LitElement {
|
|
|
67
68
|
type: BooleanConstructor;
|
|
68
69
|
};
|
|
69
70
|
customEditorInterfaces: {
|
|
70
|
-
attribute: boolean;
|
|
71
71
|
type: ArrayConstructor;
|
|
72
72
|
};
|
|
73
73
|
};
|