瀏覽代碼

点击marker置顶

wangcc 2 年之前
父節點
當前提交
cbb763ec69
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/components/amapnow.vue

+ 2 - 1
src/components/amapnow.vue

@@ -955,7 +955,8 @@ export default {
                 position: lnglat,
                 offset: new AMap.Pixel(0, -30),
                 icon: infoIcon,
-                zIndex: 999
+                zIndex: 999,
+                topWhenClick: true
               });
               projectMarker.setLabel({
                 direction: 'top',