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

[Map] Leaflet vector layers #2445

Open
dannyvw opened this issue Dec 11, 2024 · 1 comment
Open

[Map] Leaflet vector layers #2445

dannyvw opened this issue Dec 11, 2024 · 1 comment

Comments

@dannyvw
Copy link

dannyvw commented Dec 11, 2024

Is it possible to use vector layers like https://github.com/Esri/esri-leaflet-vector? What is the best way to implement this?

@dannyvw dannyvw added the RFC label Dec 11, 2024
@carsonbot carsonbot added the Map label Dec 11, 2024
@Kocal
Copy link
Member

Kocal commented Dec 12, 2024

Hi, I think yes, see https://symfony.com/bundles/ux-map/current/index.html#interact-with-the-map

  1. create your own Stimulus Controller and use-it to render the map (configure data-controller)
  2. in this controller, import esri-leaflet
  3. in this controller, listen to the event ux:map:connect, access L and map instances from event.details

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