@zhangdali1996/lr-map-viewer 0.0.99 → 0.0.103
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 +22 -8
- package/dist/lr-map-viewer.css +1 -1
- package/dist/lr-map-viewer.js +8796 -7796
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -314,19 +314,33 @@ createApp(App).use(LrMapViewerPlugin).mount('#app')
|
|
|
314
314
|
|
|
315
315
|
- `initMonitorPoints()`
|
|
316
316
|
- `queryMonitorPointList()`
|
|
317
|
-
- `reloadMonitorPoints()`
|
|
318
|
-
- `focusMonitorPoint(target)`
|
|
319
|
-
- `focusPerson(target)`
|
|
320
|
-
- `movePerson(target)`
|
|
317
|
+
- `reloadMonitorPoints()`
|
|
318
|
+
- `focusMonitorPoint(target)`
|
|
319
|
+
- `focusPerson(target)`
|
|
320
|
+
- `movePerson(target)`
|
|
321
|
+
- `moveCar(target)`
|
|
322
|
+
- `stopPersonTrackPlayback(target)`
|
|
323
|
+
- `stopCarTrackPlayback(target)`
|
|
324
|
+
- `followPersonTrack(target)`
|
|
325
|
+
- `stopPersonTrackFollow(target)`
|
|
326
|
+
- `followCarTrack(target)`
|
|
327
|
+
- `stopCarTrackFollow(target)`
|
|
321
328
|
|
|
322
329
|
说明:
|
|
323
330
|
|
|
324
331
|
- `initMonitorPoints()` 用于初始化监测点,组件会查询监测点数据并加载显示到三维场景中。
|
|
325
332
|
- `queryMonitorPointList()` 会重新查询最新监测点数据,并返回列表结果,但不会把结果重新加载到地图上。
|
|
326
|
-
- `reloadMonitorPoints()` 会先清空当前场景中已加载的监测点,再重新查询并加载,避免重复添加。
|
|
327
|
-
- `focusMonitorPoint(target)` 会将视口移动到指定监测点,并打开该监测点的信息弹窗;`target` 支持传监测点 `id` 或监测点对象。
|
|
328
|
-
- `focusPerson(target)` 用于聚焦指定人员定位对象;`target` 支持传人员 `sceneId`、人员名称或人员对象,不传时默认聚焦第一名人员。
|
|
329
|
-
- `movePerson(target)`
|
|
333
|
+
- `reloadMonitorPoints()` 会先清空当前场景中已加载的监测点,再重新查询并加载,避免重复添加。
|
|
334
|
+
- `focusMonitorPoint(target)` 会将视口移动到指定监测点,并打开该监测点的信息弹窗;`target` 支持传监测点 `id` 或监测点对象。
|
|
335
|
+
- `focusPerson(target)` 用于聚焦指定人员定位对象;`target` 支持传人员 `sceneId`、人员名称或人员对象,不传时默认聚焦第一名人员。
|
|
336
|
+
- `movePerson(target)` 用于查询并开始播放指定人员轨迹;`target` 的传参规则与 `focusPerson(target)` 保持一致。
|
|
337
|
+
- `moveCar(target)` 用于查询并开始播放指定车辆轨迹;`target` 支持传车辆 `sceneId`、带 `car_` 前缀的人员卡号、车辆名称或车辆对象。
|
|
338
|
+
- `stopPersonTrackPlayback(target)` 用于停止指定人员轨迹播放,并恢复到当前实时定位位置;`target` 的传参规则与 `focusPerson(target)` 保持一致。
|
|
339
|
+
- `stopCarTrackPlayback(target)` 用于停止指定车辆轨迹播放,并恢复到当前实时定位位置;`target` 支持传车辆 `sceneId`、带 `car_` 前缀的人员卡号、车辆名称或车辆对象。
|
|
340
|
+
- `followPersonTrack(target)` 用于开启指定人员的视角跟随,不会自动启动轨迹播放。
|
|
341
|
+
- `stopPersonTrackFollow(target)` 用于停止指定人员的视角跟随,不会停止轨迹播放。
|
|
342
|
+
- `followCarTrack(target)` 用于开启指定车辆的视角跟随,不会自动启动轨迹播放。
|
|
343
|
+
- `stopCarTrackFollow(target)` 用于停止指定车辆的视角跟随,不会停止轨迹播放。
|
|
330
344
|
|
|
331
345
|
## 视角控制模块
|
|
332
346
|
|