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
When a new capital project is selected and reflected in the route path params, the map should pan and zoom to center on the selected project
The entire project should be visible, so pan and zoom should be based on a bounding box around the entire project.
Note "visibility" should be in reference to the device screen, without regard to the content panels. Accounting for the content panels is non-trivial. We're simplifying this first implementation by ignoring the content panels
The logic for updating viewState is connected to the router such that if a user clicks between several projects and then uses the browser "back" button, the map will navigate through the projects in the browser history.
The capital project geojson should be displayed on the map via a newly added GeoJsonLayer that is displayed on top of the tile layers. The geojson returned by the API can be passed to the data prop of the layer.
Use the GeoJsonLayer to show the selected color for the selected project (this is currently handled in getFillColor of the tile layer)
See this example for guidance on how to fit the viewState to bound of a layer
Should use FlyToInterpolator to transition the view state smoothly
Acceptance Criteria
viewState
is connected to the router such that if a user clicks between several projects and then uses the browser "back" button, the map will navigate through the projects in the browser history.Technical Notes
findCapitalProjectGeoJsonByManagingCodeCapitalProjectId
endpoint to be added in this Issue. It will likely make sense to replace the call tofindCapitalProjectByManagingCodeCapitalProjectId
added in Add capital project detail panel and connect it to route for single project #41 with a call to this new API.data
prop of the layer.getFillColor
of the tile layer)viewState
to bound of a layerFlyToInterpolator
to transition the view state smoothlyBlocked by
* NYCPlanning/ae-zoning-api#342The text was updated successfully, but these errors were encountered: