Open nrenner opened 5 years ago
URL hash parsing currently can't handle a hash without a map parameter, but that would sometimes be needed, e.g. for abrensch/brouter#188:
http://brouter.de/brouter-web/#lonlats=9.272386,47.693804;9.176143,47.663689
Additional parameters are only parsed if mapsArgs are set.
The map position could be set by calling Map.fitBounds with the bounds of the passed route lonlats (L.latLngBounds + extend or L.polyline(latlngs) + getBounds).
lonlats
Similarly or related, but you cannot reload URL if base layer is not present, eg:
We should fallback to default layer in the second case.
URL hash parsing currently can't handle a hash without a map parameter, but that would sometimes be needed, e.g. for abrensch/brouter#188:
http://brouter.de/brouter-web/#lonlats=9.272386,47.693804;9.176143,47.663689
Additional parameters are only parsed if mapsArgs are set.
The map position could be set by calling Map.fitBounds with the bounds of the passed route
lonlats
(L.latLngBounds + extend or L.polyline(latlngs) + getBounds).