Closed larsen closed 6 months ago
leaflet/leaflet-gpx-viewer currently requires to specify a point to center the map.
leaflet/leaflet-gpx-viewer
(clerk/with-viewer leaflet/leaflet-gpx-viewer {:gpx "https://stefanorodighiero.net/misc/VG-2024_400k_lake_provvis.gpx" ;; :gpx-content gpx-content :center [45.478431 11.439041] :markers (plan/points-at-daily-kilometers gpx-resource plan-start-19) :zoom 9})
It should not be a task of the user
Reference: https://math.stackexchange.com/questions/256694/how-to-calculate-center-point-in-geographic-coordinates
https://github.com/larsen/rando-planner/commit/8591ee56ffb94694b2e9cc7fa6e2a30d9f2e9c94
leaflet/leaflet-gpx-viewer
currently requires to specify a point to center the map.It should not be a task of the user