소스 검색

点击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',