1
shuishen
2022-11-07 de57446005a88eb745f5af1b225b7f8558fb92c7
1
1 files modified
6 ■■■■ changed files
src/components/map/index.vue 6 ●●●● patch | view | raw | blame | history
src/components/map/index.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-08-18 17:00:30
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2022-11-03 10:47:23
 * @LastEditTime: 2022-11-07 10:21:15
 * @FilePath: \srs-police-affairs\src\components\map\index.vue
 * @Description: 公用地图组件
 * 
@@ -370,12 +370,12 @@
         * @param {*} params 添加的点位参数(内容、详情)
         * @param {*} incident 添加的点位事件
         */
        layerPointAdd (layerName, type, params, distanceDisplayCondition = {
        layerPointAdd (layerName, layerType = 'VectorLayer', type, params, distanceDisplayCondition = {
            near: 0, //最近距离
            far: Number.MAX_VALUE //最远距离
        }, incident = (e) => { }) {
            if (!layersObjcect[layerName] || layersObjcect[layerName] == null) {
                this.mapAddLayer(layerName, 'VectorLayer')
                this.mapAddLayer(layerName, layerType)
            }
            let pointElement