소스 검색

问题管理地图修改

master
huxinglu 4 년 전
부모
커밋
c5f6bf2e89
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. BIN
      src/assets/img/marker-img.png
  2. +3
    -3
      src/views/problem/detailDialog.vue

BIN
src/assets/img/marker-img.png 파일 보기

Before After
Width: 32  |  Height: 32  |  Size: 455B Width: 18  |  Height: 31  |  Size: 782B

+ 3
- 3
src/views/problem/detailDialog.vue 파일 보기

@@ -126,16 +126,16 @@ export default {
);
let icon = new AMap.Icon({
// 图标尺寸
size: new AMap.Size(25, 25),
size: new AMap.Size(25, 35),
// 图标的取图地址
image: require("../../assets/img/marker-img.png"),
// 图标所用图片大小
imageSize: new AMap.Size(25, 25)
imageSize: new AMap.Size(25, 35)
});
let marker = new AMap.Marker({
position: point,
icon: icon,
offset: new AMap.Pixel(-12, -12)
offset: new AMap.Pixel(-12, -17)
});
marker.setDraggable(true);
marker.setMap(me.map);

Loading…
취소
저장