@zhangdali1996/lr-map-viewer 0.0.106 → 0.0.108
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/README.md +6 -4
- package/dist/lr-map-viewer.css +1 -1
- package/dist/lr-map-viewer.js +4462 -4127
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -312,9 +312,10 @@ createApp(App).use(LrMapViewerPlugin).mount('#app')
|
|
|
312
312
|
|
|
313
313
|
监测点模块 expose:
|
|
314
314
|
|
|
315
|
-
- `initMonitorPoints()`
|
|
316
|
-
- `queryMonitorPointList()`
|
|
315
|
+
- `initMonitorPoints()`
|
|
316
|
+
- `queryMonitorPointList()`
|
|
317
317
|
- `reloadMonitorPoints()`
|
|
318
|
+
- `enterScene(sceneId)`
|
|
318
319
|
- `focusMonitorPoint(target)`
|
|
319
320
|
- `focusPerson(target)`
|
|
320
321
|
- `movePerson(target)`
|
|
@@ -328,9 +329,10 @@ createApp(App).use(LrMapViewerPlugin).mount('#app')
|
|
|
328
329
|
|
|
329
330
|
说明:
|
|
330
331
|
|
|
331
|
-
- `initMonitorPoints()` 用于初始化监测点,组件会查询监测点数据并加载显示到三维场景中。
|
|
332
|
-
- `queryMonitorPointList()` 会重新查询最新监测点数据,并返回列表结果,但不会把结果重新加载到地图上。
|
|
332
|
+
- `initMonitorPoints()` 用于初始化监测点,组件会查询监测点数据并加载显示到三维场景中。
|
|
333
|
+
- `queryMonitorPointList()` 会重新查询最新监测点数据,并返回列表结果,但不会把结果重新加载到地图上。
|
|
333
334
|
- `reloadMonitorPoints()` 会先清空当前场景中已加载的监测点,再重新查询并加载,避免重复添加。
|
|
335
|
+
- `enterScene(sceneId)` 用于按场景 `id` 切换到指定场景;内部会复用现有场景进入流程,执行视角切换、监测点刷新和场景开始通知。
|
|
334
336
|
- `focusMonitorPoint(target)` 会将视口移动到指定监测点,并打开该监测点的信息弹窗;`target` 支持传监测点 `id` 或监测点对象。
|
|
335
337
|
- `focusPerson(target)` 用于聚焦指定人员定位对象;`target` 支持传人员 `sceneId`、人员名称或人员对象,不传时默认聚焦第一名人员。
|
|
336
338
|
- `movePerson(target)` 用于查询并开始播放指定人员轨迹;`target` 的传参规则与 `focusPerson(target)` 保持一致。
|