I cannot link to a specific map, like est.mit.edu//. Instead, I can only link to a tab est.mit.edu/, and it will always load the first map on that tab.
Solution
Add an optional map-id to the path est.mit.edu/:tab-id/:map-id, and load that specific map in that tab if it exists. Change the map selection inputs to links that alter the map-id in the url. If no map-id exists in the url, load the default map in that tab instead.
Progress so far
I started working on the map-routes branch (TEMP).
I need to figure out two things:
1) how to link to a map route without appending the /<map-id> to the current url (even if it already has a map id on the end of it)
2) how to prevent the state from breaking when a url with a map-id in it is loaded directly, before the website has a chance to load the necessary map_visualization to understand what start_date, end_date, and source to use for that map id.
Problem
I cannot link to a specific map, like est.mit.edu//. Instead, I can only link to a tab est.mit.edu/, and it will always load the first map on that tab.
Solution
Add an optional map-id to the path est.mit.edu/:tab-id/:map-id, and load that specific map in that tab if it exists. Change the map selection inputs to links that alter the map-id in the url. If no map-id exists in the url, load the default map in that tab instead.
Progress so far
I started working on the
map-routes
branch (TEMP).I need to figure out two things:
1) how to link to a map route without appending the
/<map-id>
to the current url (even if it already has a map id on the end of it) 2) how to prevent the state from breaking when a url with a map-id in it is loaded directly, before the website has a chance to load the necessarymap_visualization
to understand whatstart_date
,end_date
, andsource
to use for that map id.