raintee-maputils 1.0.32 → 1.0.34
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 +29 -26
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6990,40 +6990,43 @@ 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)
|
|
7000
7000
|
this._layerListContainer = document.createElement('div');
|
|
7001
7001
|
this._layerListContainer.style.cssText = `
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
|
|
7002
|
+
width: 100%;
|
|
7003
|
+
max-height: 60vh;
|
|
7004
|
+
display: flex;
|
|
7005
|
+
flex-direction: column;
|
|
7006
|
+
gap: 4px;
|
|
7007
|
+
overflow-y: auto;
|
|
7008
|
+
overflow-x: hidden;
|
|
7009
|
+
`;
|
|
7007
7010
|
this._dialog.appendChild(this._layerListContainer);
|
|
7008
7011
|
|
|
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);
|
|
7012
|
+
// // 关闭按钮(可选增强)
|
|
7013
|
+
// const closeButton = document.createElement('button');
|
|
7014
|
+
// closeButton.textContent = '✅ 关闭';
|
|
7015
|
+
// closeButton.style.cssText = `
|
|
7016
|
+
// margin-left: auto;
|
|
7017
|
+
// margin-right: auto;
|
|
7018
|
+
// margin-top: 15px;
|
|
7019
|
+
// padding: 6px 12px;
|
|
7020
|
+
// background: #6c757d;
|
|
7021
|
+
// color: white;
|
|
7022
|
+
// border: none;
|
|
7023
|
+
// border-radius: 4px;
|
|
7024
|
+
// cursor: pointer;
|
|
7025
|
+
// `;
|
|
7026
|
+
// closeButton.addEventListener('click', () => {
|
|
7027
|
+
// this._closePanel();
|
|
7028
|
+
// });
|
|
7029
|
+
// this._dialog.appendChild(closeButton);
|
|
7027
7030
|
|
|
7028
7031
|
this._panel.appendChild(this._dialog);
|
|
7029
7032
|
document.body.appendChild(this._panel);
|