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

如何与vue2-leaftlet集成使用呢? #48

Open
p0mp0k0 opened this issue Nov 25, 2021 · 1 comment
Open

如何与vue2-leaftlet集成使用呢? #48

p0mp0k0 opened this issue Nov 25, 2021 · 1 comment

Comments

@p0mp0k0
Copy link

p0mp0k0 commented Nov 25, 2021

如何与vue2-leaftlet集成使用呢?

  1. l-tile-layer如何替换成chinatms?如果有多个图层,如何使用v-for加载?如果还需要layer-group,如何加载?
  2. l-control-layers能否直接识别出加载的tile-layers?
    谢谢。
@TechQuery
Copy link

这是 React 版示例:https://codesandbox.io/s/leaflet-react-china-map-q9l5qn?file=/src/App.tsx

关键:不使用地图组件库内置的 Tile Layer 标签,改为一个用 leaflet 核心库手动加载瓦片图的自定义组件。

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

2 participants