Open jeffreyameyer opened 5 months ago
Here’s a preliminary assessment from https://github.com/OpenHistoricalMap/issues/issues/651#issue-2034002429, 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.
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: