maplibre-gl-layer-control-tidop 0.0.11 → 0.0.12
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/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -814,10 +814,6 @@ class LayerControl {
|
|
|
814
814
|
}
|
|
815
815
|
this.buildLayerItems();
|
|
816
816
|
}
|
|
817
|
-
const actionButtons = this.createActionButtons();
|
|
818
|
-
this.panel.insertBefore(actionButtons, this.panel.firstChild);
|
|
819
|
-
const header = this.createPanelHeader();
|
|
820
|
-
this.panel.insertBefore(header, this.panel.firstChild);
|
|
821
817
|
if (!this.state.collapsed) {
|
|
822
818
|
requestAnimationFrame(() => {
|
|
823
819
|
this.updatePanelPosition();
|
|
@@ -1172,6 +1168,10 @@ class LayerControl {
|
|
|
1172
1168
|
if (!this.state.collapsed) {
|
|
1173
1169
|
panel.classList.add("expanded");
|
|
1174
1170
|
}
|
|
1171
|
+
const header = this.createPanelHeader();
|
|
1172
|
+
panel.appendChild(header);
|
|
1173
|
+
const actionButtons = this.createActionButtons();
|
|
1174
|
+
panel.appendChild(actionButtons);
|
|
1175
1175
|
return panel;
|
|
1176
1176
|
}
|
|
1177
1177
|
/**
|