You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
#237 restores a text listing of facilities search results in a new "Facilities" tab in the sidebar. Each list item links to its details page.
In the legacy implementation, clicking on a facility to see its details would also cause the map to zoom in to its marker. We should restore that functionality.
We should also have the map zoom to the facility location in cases when the user has visited the facility route directly, arriving at the application via the /facilities/oar_id route. In this case, the facility location data loads after the component has loaded, so the zoom will need to happen when the facility data returns successfully from the API.
Describe the solution you'd like
On clicking the facility link in the sidebar's facilities tab, have the map zoom to the facility marker on the map.
On visiting the /facilities/oar_id route directly, the map should zoom to the facility marker when the facility data has returned from the API.
When clicking on a marker on the map to see facility data, the map should not zoom at all.
Overview
#237 restores a text listing of facilities search results in a new "Facilities" tab in the sidebar. Each list item links to its details page.
In the legacy implementation, clicking on a facility to see its details would also cause the map to zoom in to its marker. We should restore that functionality.
We should also have the map zoom to the facility location in cases when the user has visited the facility route directly, arriving at the application via the
/facilities/oar_id
route. In this case, the facility location data loads after the component has loaded, so the zoom will need to happen when the facility data returns successfully from the API.Describe the solution you'd like
On clicking the facility link in the sidebar's facilities tab, have the map zoom to the facility marker on the map.
On visiting the
/facilities/oar_id
route directly, the map should zoom to the facility marker when the facility data has returned from the API.When clicking on a marker on the map to see facility data, the map should not zoom at all.
Requires #209
Requires #264
The text was updated successfully, but these errors were encountered: