riku
5 天以前 f19e5267cc23b1c714dc746239864f33ed715dd9
src/utils/map/marks.js
@@ -145,7 +145,7 @@
    return layer;
  },
  createMarker({ position, img, label = '', extData }) {
  createMarker({ position, img, title, content, label = '', extData }) {
    //创建 AMap.Icon 实例:
    const icon = new AMap.Icon({
      size: new AMap.Size(30, 30), //图标尺寸
@@ -157,7 +157,8 @@
      position: position,
      // offset: new AMap.Pixel(-13, -30),
      icon: icon, //添加 icon 图标 URL
      title: label,
      content: content,
      title: title,
      label: {
        content: label,
        direction: 'bottom'