@teeechina/teee-map 0.0.27 → 0.0.29

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.d.ts CHANGED
@@ -232,6 +232,21 @@ export declare class DrawTool {
232
232
  clearFeatures(): void;
233
233
  }
234
234
 
235
+ // ─────────────────────────────────────────────
236
+ // 测量工具
237
+ // ─────────────────────────────────────────────
238
+
239
+ export declare class MeasureTool {
240
+ constructor(map: MaplibreMap);
241
+
242
+ /** 开始距离测量模式 */
243
+ startDistance(): void;
244
+ /** 开始面积测量模式 */
245
+ startArea(): void;
246
+ /** 清除所有测量图层、数据源和 DOM 元素 */
247
+ clear(): void;
248
+ }
249
+
235
250
  // ─────────────────────────────────────────────
236
251
  // 联锁协议 & 可视化
237
252
  // ─────────────────────────────────────────────
@@ -376,6 +391,8 @@ export declare class TeeeMap {
376
391
  public layerFeaturesCache: Map<string, GeoJSONFeature[]>;
377
392
  /** 绘图工具(地图 load 事件后可用) */
378
393
  public drawTool: DrawTool;
394
+ /** 测量工具(地图 load 事件后可用) */
395
+ public measureTool?: MeasureTool;
379
396
 
380
397
  constructor(container: string | HTMLElement, mbtileDBClient?: any);
381
398
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teeechina/teee-map",
3
- "version": "0.0.27",
3
+ "version": "0.0.29",
4
4
  "description": "",
5
5
  "main": "dist/teee-map.umd.js",
6
6
  "module": "dist/teee-map.mjs",