raintee-maputils 1.0.11 → 1.0.13
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/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { CustomOptionsControl } from './src/CustomOptionsControl.js';
|
|
2
|
+
import { ToggleControl } from './src/CustomToggleControl.js';
|
|
3
3
|
import * as RainteeConstants from './src/RainteeConstants.js';
|
|
4
4
|
import * as RainteeGISUtil from './src/RainteeGISUtil.js';
|
|
5
5
|
import * as RainteeSourceMapTool from './src/RainteeSourceMapTool.js';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
import { RasterLayerController } from './src/RasterLayerController.js';
|
|
7
|
+
import { TerrainToggleControl } from './src/TerrainToggleControl.js';
|
|
8
|
+
import { useDrawCache } from './src/useDrawCache.js';
|
|
9
9
|
|
|
10
10
|
export {
|
|
11
11
|
RainteeConstants,
|
|
12
12
|
RainteeGISUtil,
|
|
13
13
|
RainteeSourceMapTool,
|
|
14
14
|
CustomOptionsControl,
|
|
15
|
-
CustomToggleControl,
|
|
15
|
+
ToggleControl as CustomToggleControl,
|
|
16
16
|
RasterLayerController,
|
|
17
17
|
TerrainToggleControl,
|
|
18
18
|
useDrawCache
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
class CustomOptionsControl {
|
|
2
2
|
constructor(args) {
|
|
3
3
|
const { options, onConfirm } = args;
|
|
4
4
|
|
|
@@ -165,4 +165,5 @@ export class CustomOptionsControl {
|
|
|
165
165
|
this._container.parentNode.removeChild(this._container);
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
}
|
|
168
|
+
}
|
|
169
|
+
export { CustomOptionsControl };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// 自定义控件类:ToggleControl
|
|
2
|
-
|
|
2
|
+
class ToggleControl {
|
|
3
3
|
/**
|
|
4
4
|
* 构造函数
|
|
5
5
|
* @param {Object} options
|
|
@@ -123,3 +123,4 @@ export class ToggleControl {
|
|
|
123
123
|
this.onToggle?.(newValue); // 安全调用,仅当函数存在时才执行
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
+
export { ToggleControl };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// RasterLayerController.js
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
class RasterLayerController {
|
|
4
4
|
constructor() {
|
|
5
5
|
this._panel = null;
|
|
6
6
|
this._isOpen = false;
|
|
@@ -259,3 +259,4 @@ export class RasterLayerController {
|
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
+
export { RasterLayerController };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// terrain-toggle-control.js
|
|
2
2
|
|
|
3
3
|
// 自定义控件类
|
|
4
|
-
|
|
4
|
+
class TerrainToggleControl {
|
|
5
5
|
constructor() {
|
|
6
6
|
// 创建外层容器
|
|
7
7
|
this._container = document.createElement('div');
|
|
@@ -124,4 +124,4 @@ export class TerrainToggleControl {
|
|
|
124
124
|
this._map = null;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
|
|
127
|
+
export { TerrainToggleControl };
|