@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/dist/.vite/license.md +46 -0
- package/dist/teee-map.mjs +2972 -2421
- package/dist/teee-map.umd.js +39 -14
- package/index.d.ts +17 -0
- package/package.json +1 -1
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
|
|