保安服务企业管理项目备份
guanqb
2023-12-23 e43de80667d5474cbe2185887be55bf693a54ecf
保安图标弹窗位置调整
1 files modified
16 ■■■■ changed files
src/views/check/components/OlMapBox.vue 16 ●●●● patch | view | raw | blame | history
src/views/check/components/OlMapBox.vue
@@ -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;
}