[openstreetmap/openstreetmap-website] Migrate new vector layers from maplibre-gl-leaflet to “unwrapped” maplibre-gl-js (Issue #6234)
Luke Deen Taylor
notifications at github.com
Wed Jul 23 17:06:08 UTC 2025
controversial created an issue (openstreetmap/openstreetmap-website#6234)
### Problem
It’s really exciting to have vector tiles hosted for the first time on openstreetmap.org!
Currently, vector tiles are displayed using `maplibre-gl-leaflet`, which wraps `maplibre-gl-js` in the same Leaflet API that we use to display raster maps like Carto.
Using the leaflet wrapper for the vector maps holds the vector maps back from user experience improvements that vector maps are designed to enable—for example “smooth zooming” between integer zoom levels—and that users of other vector maps (google / apple / etc) are accustomed to.
### Description
It would be great to drop the leaflet wrapper when displaying the new vector layers. There are several pieces that would need to be migrated to not depend on the leaflet API, some of which are documented by @tordans in https://github.com/gravitystorm/openstreetmap-website/issues/289.
I’m happy to edit this issue with a more comprehensive list of which features depend on Leaflet APIs that would need to be adjusted for compatibility with the mapbox-gl-js API when it isn’t wrapped in Leaflet!
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6234
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/6234 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250723/fd083b3c/attachment-0001.htm>
More information about the rails-dev
mailing list