Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tvsj opened this issue Oct 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tvsj
Copy link

tvsj commented Oct 10, 2024

代码如下

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

@lvisei lvisei added the bug Something isn't working label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants