liskin / strava-map-switcher

Map switcher for Strava website
GNU General Public License v3.0
71 stars 20 forks source link

Google maps are not available in Route planner #21

Open Karql opened 1 year ago

Karql commented 1 year ago

Hi!

At the beginging thanks for the great extension 😉

It is possible to add option to choose Google maps in Route planner (like in activity view)?

image

image

Best regards, Mateusz

liskin commented 1 year ago

Possible – theoretically yes, practically not easily. Older parts of the Strava website (activity view, segment explorer) use the Leaflet.js library and the map switcher uses the https://gitlab.com/IvanSanchez/Leaflet.GridLayer.GoogleMutant plugin to add Google Maps to it. But there doesn't seem to be any such plugin for Mapbox GL, which is a different map library that is used in the route builder and heatmaps. It's almost certainly possible to create such an extension for Mapbox GL, but it'd likely take a day or more of effort, and I already have way too much projects on my plate, so tackling such a piece of work is unlikely in the near future. :-(