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

Faster rendering with WebGL #19

Open
markusstraub opened this issue Aug 21, 2023 · 3 comments
Open

Faster rendering with WebGL #19

markusstraub opened this issue Aug 21, 2023 · 3 comments

Comments

@markusstraub
Copy link
Owner

Rendering the routes is quite sluggish, especially in Firefox.
Can we use https://github.com/robertleeplummerjr/Leaflet.glify to improve rendering speeds?

@yyxcv
Copy link
Collaborator

yyxcv commented Sep 9, 2024

As far as I can see, Leaflet.glify only supports solid lines and points. That mean no dashed lines (or even decorated lines with arrows etc.).

The package https://github.com/manubb/Leaflet.PixiOverlay looks a bit more promising in that regard. Is a quite heavy dependency but would allow for webGL overlays and seems to have more features.

I'd like to look into it, but would like to do so from the refactored version of PR #50 (if we want to use that)...

@markusstraub
Copy link
Owner Author

markusstraub commented Sep 10, 2024

In the meantime I had a short look at other libraries and think that we should ditch Leaflet altogether and maybe switch to https://maplibre.org/ MapLibre GL JS.

So let's explore libraries a bit, my requirements would be

  • Open GL accelerated (or magically fast :)
  • well supported (so we can keep it for years to come)
  • supports drawing lines, dashes, arrows, points
  • supports popups (on hover)
  • supports OSM raster background maps

@markusstraub
Copy link
Owner Author

check out if OpenLayers is an option?

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

2 participants