raintee-maputils 1.0.50 → 1.0.51
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 +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6505,7 +6505,7 @@ class RulerControl {
|
|
|
6505
6505
|
this.removeDragEvents = null;
|
|
6506
6506
|
if (!this.options.invisible) {
|
|
6507
6507
|
this.button = controlButton({
|
|
6508
|
-
title: 'Ruler',
|
|
6508
|
+
title: this.options.title || 'Ruler',
|
|
6509
6509
|
icon: icons.ruler(),
|
|
6510
6510
|
onClick: () => this.onControlButtonClick(),
|
|
6511
6511
|
});
|
|
@@ -7340,6 +7340,7 @@ class CustomSearchSelectControl {
|
|
|
7340
7340
|
onCancel: () => { },
|
|
7341
7341
|
placeholder: '搜索...',
|
|
7342
7342
|
title: '选择',
|
|
7343
|
+
cancelButtonText: '取消',
|
|
7343
7344
|
showSearch: true,
|
|
7344
7345
|
compactMode: true, // 新增:紧凑模式
|
|
7345
7346
|
maxHeight: '100vh', // 新增:最大高度
|
|
@@ -7642,7 +7643,7 @@ class CustomSearchSelectControl {
|
|
|
7642
7643
|
`;
|
|
7643
7644
|
|
|
7644
7645
|
const cancelBtn = document.createElement('button');
|
|
7645
|
-
cancelBtn.textContent =
|
|
7646
|
+
cancelBtn.textContent = this.options.cancelButtonText;
|
|
7646
7647
|
cancelBtn.className = 'vector-layer-cancel';
|
|
7647
7648
|
cancelBtn.style.cssText = `
|
|
7648
7649
|
padding: ${this._isMobile ? '6px 12px' : '6px 16px'};
|