温红权 3 yıl önce
ebeveyn
işleme
252245b4e6
1 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. 3 2
      ruoyi-ui/src/components/map/index.vue

+ 3 - 2
ruoyi-ui/src/components/map/index.vue

@@ -827,7 +827,7 @@ export default {
 
     },
 
-    addpoint: function (addrArry, data, img, type, rotation = 0) {
+    addpoint: function (addrArry, data, img, type, rotation = 0,zindex=2) {
       var lnglat = this.transpoints(addrArry, 0)[0];
       var lnglats = null;
 
@@ -862,7 +862,8 @@ export default {
       var markerta = new LayerVec({
         source: new SourceVec({
           features: [tamarker] //这里放的就是之前的那个点,如果要放置多个点直接push到这里面就行了
-        })
+        }),
+        zIndex:zindex
       });
 
       this.map.addLayer(markerta); //这里是执行,执行之后点就出来了