I'm building a single-page application using Angular 2 that makes heavy use of maps. One of the requirements is that when an point is clicked on the map, the URL updates so that when the page is refreshed, the map is zoomed into that point (and also to support deep-linking to points on the map).
I was wondering what the best to achieve this in Angular 2 would be? At a high level, a Router seems like the obvious choice, but I'm not sure if it really fits the requirements.
For one, the selected point on the map will need to update a few different components on the map (e.g. the point on the map, highlight the point in a seperate list component, etc). As such, I don't think the router-outlet makes much sense - all views are always visible at the same time - there's no need to switch views out based on selected view.
I'm also not sure if I want any actions to trigger based on the URL change when using the application. i.e. if you click on a point on the map, everything already updates as expected - the only reason I want the URL to update is so that the point is still selected on reload.
Any guidance will be appreciated.