Skip to content

Upgrade GL JS #650

Closed
Closed

Description

@1ec5

ohm-website inherited a Leaflet-powered slippy map from openstreetmap-website, which was appropriate for displaying raster map tiles. However, these days, our map data is distributed as vector tiles, which necessitates a compatibility shim. The site is currently running Mapbox GL JS v0.53.1 with Mapbox GL Leaflet v0.0.4 to adapt GL JS output to a Leaflet layer.

This is a very old version of Mapbox GL JS from early 2019 that lacks the many performance and styling improvements Mapbox made in the v1.x series. Mapbox subsequently relicensed GL JS under a nonfree license in mapbox/mapbox-gl-js#10160, so if we were to upgrade this dependency to something more modern, we would need to migrate to an open-source fork, MapLibre GL JS, just to keep the site’s stack fully open-source.

Activity

  1. added
    website
    on Dec 9, 2023
  2. 1ec5 commented on Dec 9, 2023

    @1ec5
    MemberAuthor

    The outdated GL JS is probably the reason why upgrading Leaflet breaks the map and @erictheise had to comment out that part of the upstream code:

    https://github.com/OpenHistoricalMap/ohm-website/blob/a71a6b795dda0d9c908495cf8862fdb8e9bf02e3/Vendorfile#L6

  3. added 9 commits that reference this issue on Dec 21, 2023
  4. 1ec5 commented on Dec 31, 2023

    @1ec5
    MemberAuthor

    Overpass turbo is also using an old version of Mapbox GL JS:

    https://github.com/OpenHistoricalMap/overpass-turbo/blob/43d1d9aa7e8bbb7152c89354900fdd327f9f7ffe/package.json#L65

    This isn’t necessarily an immediate problem, but eventually the main OHM style might use something that only MapLibre GL JS supports but not Mapbox GL JS.

  5. added 3 commits that reference this issue on Jan 3, 2024
  6. added theissue type on Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

website

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions