Skip to content

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

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就不行

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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