Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use alternate Mapbox error fix #1296

Merged
merged 4 commits into from
Mar 20, 2024
Merged

Use alternate Mapbox error fix #1296

merged 4 commits into from
Mar 20, 2024

Conversation

mddilley
Copy link
Collaborator

@mddilley mddilley commented Mar 15, 2024

Associated issues

cityofaustin/atd-data-tech#16245

When we first added react-map-gl v7 during the project components overhaul, there was a error that was fixed using the workaround described in the code here. This implements the recommended fix, and it is the same one used map upgrade in cityofaustin/vision-zero#1398.

Testing

URL to test:

https://deploy-preview-1296--atd-moped-main.netlify.app/moped/

Steps to test:

  1. Go to a project and makes sure the map loads and shows the components related to the project. Test the street/satellite layer toggle, the zoom controls, and that scrolling the page doesn't zoom the map.
  2. Go to the Map tab
    • Test the map zoom controls and layer toggle
    • Test the geocoder by entering a street or location in Austin and navigate to it by selecting an option
    • Test creating a new component by selecting from the selectable layers and by drawing
    • Test editing an existing component by selecting from the selectable layers and by drawing
    • Test deleting a component
    • Test the clicking the magnifier icon in the side bar component list to zoom to an existing component' features

Ship list

  • Code reviewed
  • Product manager approved
  • Added to QA test script if applicable

@mddilley mddilley added the WIP Work in progress label Mar 15, 2024
@@ -53,7 +53,7 @@ const ProjectSummaryMap = ({ data }) => {
ref={mapRef}
initialViewState={initialViewState}
style={{ width: "100%", height: "60vh" }}
mapStyle={basemaps.streets.mapStyle}
mapStyle={basemaps[basemapKey].mapStyle}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a small fix that I snuck it. The satellite layer in the summary map is working just like in the components map in production, but, in the deploy preview, the layer wouldn't toggle to satellite.

@mddilley mddilley removed the WIP Work in progress label Mar 15, 2024
Comment on lines -31 to +41
"not ie 11",
">0.2%",
"not dead",
"not op_mini all"
"not op_mini all",
"not safari < 10",
"not chrome < 51",
"not android < 5",
"not ie < 12"
],
"development": [
">0.3%",
"not ie 11",
"not dead",
"not op_mini all"
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you

Copy link
Member

@frankhereford frankhereford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great and tests out perfect. 🚢🚢🚢

Thanks Mike!

Copy link
Contributor

@amenity amenity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 👏🏻 🔎 🗺️

Copy link
Member

@chiaberry chiaberry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@mddilley
Copy link
Collaborator Author

thanks y'all!

@mddilley mddilley merged commit 141e12a into main Mar 20, 2024
4 checks passed
@mddilley mddilley deleted the md-16245-mapbox-fix branch March 20, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants