raintee-maputils 1.0.17 → 1.0.19

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
@@ -3,10 +3,12 @@ import * as RainteeConstants from './src/RainteeConstants.js';
3
3
  import * as RainteeGISUtil from './src/RainteeGISUtil.js';
4
4
  import * as RainteeSourceMapTool from './src/RainteeSourceMapTool.js';
5
5
  // 以下是地图相关的工具类
6
+ import RulerControl from '@mapbox-controls/ruler'
6
7
  import { CustomOptionsControl } from './src/mapbox/CustomOptionsControl.js';
7
8
  import { CustomToggleControl } from './src/mapbox/CustomToggleControl.js';
8
9
  import { RasterLayerControl } from './src/mapbox/RasterLayerController.js';
9
10
  import { TerrainToggleControl } from './src/mapbox/TerrainToggleControl.js';
11
+ import { DrawCacheFeatureManager } from './src/mapbox/DrawCacheFeatureManager.js';
10
12
  // 以下是通用的工具类
11
13
  import { useDrawCache } from './src/common/useDrawCache.js';
12
14
 
@@ -14,9 +16,11 @@ export {
14
16
  RainteeConstants,
15
17
  RainteeGISUtil,
16
18
  RainteeSourceMapTool,
19
+ RulerControl,
17
20
  CustomOptionsControl,
18
21
  CustomToggleControl,
19
22
  RasterLayerControl,
20
23
  TerrainToggleControl,
24
+ DrawCacheFeatureManager,
21
25
  useDrawCache
22
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raintee-maputils",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "Raintee的GIS开发工具包",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -16,7 +16,8 @@
16
16
  "publish": "npm publish --access public"
17
17
  },
18
18
  "dependencies": {
19
- "@turf/turf": "^7.2.0"
19
+ "@turf/turf": "^7.2.0",
20
+ "@mapbox-controls/ruler": "^3.0.0"
20
21
  },
21
22
  "keywords": [
22
23
  "maputils",