raintee-maputils 1.0.10 → 1.0.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raintee-maputils",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Raintee的GIS开发工具包",
5
5
  "source": "index.js",
6
6
  "main": "index.js",
@@ -1,4 +1,4 @@
1
- export default class CustomOptionsControl {
1
+ export class CustomOptionsControl {
2
2
  constructor(args) {
3
3
  const { options, onConfirm } = args;
4
4
 
@@ -1,5 +1,5 @@
1
1
  // 自定义控件类:ToggleControl
2
- export default class ToggleControl {
2
+ export class ToggleControl {
3
3
  /**
4
4
  * 构造函数
5
5
  * @param {Object} options
@@ -1,6 +1,6 @@
1
1
  // RasterLayerController.js
2
2
 
3
- export default class RasterLayerController {
3
+ export class RasterLayerController {
4
4
  constructor() {
5
5
  this._panel = null;
6
6
  this._isOpen = false;
@@ -1,7 +1,7 @@
1
1
  // terrain-toggle-control.js
2
2
 
3
3
  // 自定义控件类
4
- export default class TerrainToggleControl {
4
+ export class TerrainToggleControl {
5
5
  constructor() {
6
6
  // 创建外层容器
7
7
  this._container = document.createElement('div');
@@ -50,9 +50,12 @@ const clearDrawCache = () => {
50
50
  })
51
51
  localStorage.removeItem('drawCacheIndex')
52
52
  }
53
- export {
54
- addFeature,
55
- removeFeature,
56
- getDrawCache,
57
- clearDrawCache
58
- }
53
+ const useDrawCache = () => {
54
+ return {
55
+ addFeature,
56
+ removeFeature,
57
+ getDrawCache,
58
+ clearDrawCache
59
+ }
60
+ }
61
+ export { useDrawCache }