Skip to content

Research spike: inventory impact of removing leaflet from OHM #828

Closed

Description

@jeffreyameyer

What's your idea for a cool feature that would help you use OHM better.
For a variety of reasons documented in #651 , we will eventually migrate off of leaflet.

Given that there is no upstream solution on the visible horizon, we should get a more detailed understanding of the work entailed with doing this work on our own.

We should assess:

  • Everywhere leaflet plays a role in the codebase
  • Which functionality we would want to focus on migrating
    • Routing, for example, should be out of scope, as it is not something of primary use on OHM.

Activity

  1. 1ec5 commented on Jun 13, 2024

    @1ec5
    Member

    Here’s a preliminary assessment from #651 (comment), but it’s entirely possible that I’m overlooking something, so we’ll need to examine the codebase more closely:

    This upgrade will require us to rewrite the site’s Leaflet integration, which consists of several custom controls and some external plugins such as leaflet-osm. Some of this code has readily available replacements, either built into GL JS or as plugins. As far as I can tell, the impact to the custom time slider and inspector code should be minimal.

    I don’t know of a direct replacement for leaflet-osm, but Overpass turbo and Overpass Ultra both use osmtogeojson to convert OSM XML or OSM JSON data into GeoJSON, which GL JS understands natively. This would also resolve some prominent, longstanding bugs like openstreetmap/leaflet-osm#32.

  2. assigned and unassigned on Jan 9, 2025
  3. added theissue type on Mar 16, 2025
  4. 1ec5 commented on Jan 3, 2026

    @1ec5
    Member
  5. moved this from Todo - Known Path to Ready for Staging in OpenHistoricalMap Dev Planningon Jan 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

UXperformancewebsite

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions