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

🐛 图标图层不支持动态注册图标 #90

Closed
lvisei opened this issue Nov 29, 2023 · 1 comment
Closed

🐛 图标图层不支持动态注册图标 #90

lvisei opened this issue Nov 29, 2023 · 1 comment

Comments

@lvisei
Copy link
Member

lvisei commented Nov 29, 2023

🐛 图标图层不支持动态注册图标

现在新增图标需要全部一次性注册进去,更新时需要支持动态添加,再更新渲染

https://github.com/antvis/L7Plot/blob/main/packages/composite-layers/src/composite-layers/icon-layer/icon-image.ts#L35

iconAtlas: {
	landmark_park:
              'https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*JZf9T6psSzkAAAAAAAAAAAAADmJ7AQ/original',
	unknown_icon:
              'https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*EcQZS6JM69EAAAAAAAAAAAAADmJ7AQ/original',
},
@lvisei
Copy link
Member Author

lvisei commented Dec 14, 2023

@lvisei lvisei closed this as completed Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant