Browse Source

点击marker置顶

wangcc 2 years ago
parent
commit
cbb763ec69
1 changed files with 2 additions and 1 deletions
  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',