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

Use maplibre leaflet binding to help Leaflet integration #121

Open
Bluesmile82 opened this issue May 31, 2021 · 1 comment
Open

Use maplibre leaflet binding to help Leaflet integration #121

Bluesmile82 opened this issue May 31, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@Bluesmile82
Copy link
Contributor

We could use https://github.com/maplibre/maplibre-gl-leaflet (the Mapbox version is not maintained) to be able to use Layer Manager with leaflet. Maybe create a plugin for this use.

Just be aware of these caveats:

  • No rotation / bearing / pitch support

  • Slower performances: When using maplibre-gl-leaflet, maplibre-gl-js is set as not interactive. Leaflet receives the touch/mouse events and updates the maplibre-gl-js map behind the scenes. Because maplibre-gl-js doesn't redraw as fast as Leaflet, the map can seem slower.

Apart from that, this might be the best option to maintain leaflet projects

@Bluesmile82 Bluesmile82 added the enhancement New feature or request label May 31, 2021
@Bluesmile82
Copy link
Contributor Author

I'm thinking that maybe we don't even need a plugin. Just using Leaflet with the binding could be enough. We will have to check the integration with react or have an example of vanilla Layer Manager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant