Skip to content

🐛 [BUG]腾讯地图下Marker的点击事件不生效,高德跟百度的都行 #242

@tvsj

Description

@tvsj

代码如下

import type { LarkMapProps } from "@antv/larkmap";
import { LarkMap, Marker } from "@antv/larkmap";
import React from "react";

const larkmapOptions: LarkMapProps = {
  mapType: "Tencent",
  mapOptions: { center: [120.104735, 30.261121], zoom: 10 },
};

export default () => (
  <LarkMap {...larkmapOptions} style={{ height: "300px" }}>
    <Marker
      onClick={() => alert(88)}
      lngLat={{ lng: 120.104735, lat: 30.261121 }}
    ></Marker>
  </LarkMap>
);

mapType设置为Gaode或者Baidu都正常,但是设置成Tencent就不行

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions