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

添加图标marker 点在地图上 #1948

Closed
qq9321 opened this issue Oct 24, 2023 · 4 comments
Closed

添加图标marker 点在地图上 #1948

qq9321 opened this issue Oct 24, 2023 · 4 comments
Assignees

Comments

@qq9321
Copy link

qq9321 commented Oct 24, 2023

当在的地图上添加marker 点(用的是img标签添加的小图标)多的时候,大概100多个点,地图会变得很卡。

@github-actions
Copy link
Contributor

Hi @qq9321, Please star this repo if you find it useful! Thanks ⭐!
你好 @qq9321。如果该仓库对你有用,可以 star 一下,感谢你的 ⭐!

@lzxue
Copy link
Contributor

lzxue commented Oct 24, 2023

多个点采用 PointLayer https://l7.antv.antgroup.com/examples/point/image/#image

@qq9321
Copy link
Author

qq9321 commented Oct 24, 2023

多个点采用 PointLayer https://l7.antv.antgroup.com/examples/point/image/#image

但是我想加载本地的png 图标,用PointLayer 怎么实现呢

@lzxue
Copy link
Contributor

lzxue commented Nov 3, 2023

多个点采用 PointLayer https://l7.antv.antgroup.com/examples/point/image/#image

但是我想加载本地的png 图标,用PointLayer 怎么实现呢

实例化一个 image 对象,作为图像输入

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

No branches or pull requests

3 participants