raintee-maputils 1.0.31 → 1.0.33
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.js +23 -23
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5763,7 +5763,7 @@ const treeDataAdapter = (data) => {
|
|
|
5763
5763
|
let currentNode = treeData;
|
|
5764
5764
|
let currentNodeKey = '';
|
|
5765
5765
|
groups.forEach((group, index) => {
|
|
5766
|
-
currentNode.find(item => item.label === group) || (() => { currentNodeKey += group
|
|
5766
|
+
currentNode.find(item => item.label === group) || (() => { currentNodeKey += `${group}/`; })();
|
|
5767
5767
|
currentNode.find(item => item.label === group) || currentNode.push({
|
|
5768
5768
|
id: currentNodeKey,
|
|
5769
5769
|
label: group,
|
|
@@ -5771,7 +5771,7 @@ const treeDataAdapter = (data) => {
|
|
|
5771
5771
|
});
|
|
5772
5772
|
currentNode = currentNode.find(item => item.label === group).children;
|
|
5773
5773
|
});
|
|
5774
|
-
currentNodeKey += layerName
|
|
5774
|
+
currentNodeKey += `${layerName}`;
|
|
5775
5775
|
currentNode.push({
|
|
5776
5776
|
id: currentNodeKey,
|
|
5777
5777
|
label: layerName,
|
|
@@ -6990,10 +6990,10 @@ class RasterLayerControl {
|
|
|
6990
6990
|
|
|
6991
6991
|
// 标题
|
|
6992
6992
|
const title = document.createElement('div');
|
|
6993
|
-
title.textContent = '🗂
|
|
6993
|
+
title.textContent = '🗂 点击切换底图(影像栅格瓦片图层)';
|
|
6994
6994
|
title.style.fontWeight = 'bold';
|
|
6995
|
-
title.style.marginBottom = '
|
|
6996
|
-
title.style.fontSize = '
|
|
6995
|
+
title.style.marginBottom = '0.5rem';
|
|
6996
|
+
title.style.fontSize = '1rem';
|
|
6997
6997
|
this._dialog.appendChild(title);
|
|
6998
6998
|
|
|
6999
6999
|
// 图层列表容器(原 _layerListContainer)
|
|
@@ -7006,24 +7006,24 @@ class RasterLayerControl {
|
|
|
7006
7006
|
`;
|
|
7007
7007
|
this._dialog.appendChild(this._layerListContainer);
|
|
7008
7008
|
|
|
7009
|
-
// 关闭按钮(可选增强)
|
|
7010
|
-
const closeButton = document.createElement('button');
|
|
7011
|
-
closeButton.textContent = '✅ 关闭';
|
|
7012
|
-
closeButton.style.cssText = `
|
|
7013
|
-
margin-left: auto;
|
|
7014
|
-
margin-right: auto;
|
|
7015
|
-
margin-top: 15px;
|
|
7016
|
-
padding: 6px 12px;
|
|
7017
|
-
background: #6c757d;
|
|
7018
|
-
color: white;
|
|
7019
|
-
border: none;
|
|
7020
|
-
border-radius: 4px;
|
|
7021
|
-
cursor: pointer;
|
|
7022
|
-
|
|
7023
|
-
closeButton.addEventListener('click', () => {
|
|
7024
|
-
|
|
7025
|
-
});
|
|
7026
|
-
this._dialog.appendChild(closeButton);
|
|
7009
|
+
// // 关闭按钮(可选增强)
|
|
7010
|
+
// const closeButton = document.createElement('button');
|
|
7011
|
+
// closeButton.textContent = '✅ 关闭';
|
|
7012
|
+
// closeButton.style.cssText = `
|
|
7013
|
+
// margin-left: auto;
|
|
7014
|
+
// margin-right: auto;
|
|
7015
|
+
// margin-top: 15px;
|
|
7016
|
+
// padding: 6px 12px;
|
|
7017
|
+
// background: #6c757d;
|
|
7018
|
+
// color: white;
|
|
7019
|
+
// border: none;
|
|
7020
|
+
// border-radius: 4px;
|
|
7021
|
+
// cursor: pointer;
|
|
7022
|
+
// `;
|
|
7023
|
+
// closeButton.addEventListener('click', () => {
|
|
7024
|
+
// this._closePanel();
|
|
7025
|
+
// });
|
|
7026
|
+
// this._dialog.appendChild(closeButton);
|
|
7027
7027
|
|
|
7028
7028
|
this._panel.appendChild(this._dialog);
|
|
7029
7029
|
document.body.appendChild(this._panel);
|