This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set map view on facility contextually
When the user has arrived at the map by visiting a URL which contains an OAR ID, set the map view to center on the facility when the facility data returns. Otherwise, selecting a facility will not re-center the viewport. If the OAR ID encoded in a URL returns an error, switch off the setView behavior to ensure that the next manually selected facility does not incite a setView call. If a facility which is off-screen is selected (as may happen when selecting a facility from the list sidebar), center the map view on the facility when its data returns.
- Loading branch information
Kelly Innes
committed
Aug 28, 2019
1 parent
962ee4c
commit 50f4092
Showing
1 changed file
with
117 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters