保安服务企业管理项目备份
zhongrj
2024-05-24 f2a74b0b28b74dc29be85ec8e6328bdd262f84b9
src/views/check/components/OlMapBox.vue
@@ -134,7 +134,7 @@
                layers: [],
                view: new OlView({
                    // 初始化中心点坐标,经纬度一会自己换一下
                    center: [114.89844546788195, 25.861142035590277],
                   center: [112.85857823133, 35.496284586473],
                    zoom: 18,
                    projection: "EPSG:4326"
                }),
@@ -255,11 +255,11 @@
            }
            if (params.url) {
              styleOptions.image = new Icon({
                scale: params.scale || 1,
                imgSize: params.imgSize || [32, 32],
                src: params.url,
              })
                styleOptions.image = new Icon({
                    scale: params.scale || 1,
                    imgSize: params.imgSize || [32, 32],
                    src: params.url,
                })
            }
            if (params.text) {
@@ -325,7 +325,7 @@
        // 添加聚合图层的新模式,水库点分布
        mapAddClusterLayer (layerName, imgUrl, positionData, incident = (e) => { }, type = '') {
            const that = this
            console.log(layersObjcect,layerName,positionData,"+++++++++++++")
            console.log(layersObjcect, layerName, positionData, "+++++++++++++")
            if (!layersObjcect[layerName]) {
                if (type == 'cluster') {
                    let source = new VectorSource()
@@ -466,8 +466,8 @@
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    bottom: 130px;
    left: -114px;
    bottom: 34px;
    left: -46px;
    min-width: 300px;
}