Skip to content

217 add city bounds to map - #228

Open
LeahBragg wants to merge 5 commits into
mainfrom
217-add-city-bounds-to-map
Open

217 add city bounds to map#228
LeahBragg wants to merge 5 commits into
mainfrom
217-add-city-bounds-to-map

Conversation

@LeahBragg

Copy link
Copy Markdown
Collaborator

issue #217

Files Added:

  • mobile/assets/shapes/stl_boundary_inverted.json - geojson file of the stl city boundary

Filed Modified:

  • mobile/src/contexts/LocationContext.tsx - added inBounds and setInBounds fields to store whether user is in service area
  • mobile/src/screens/IssueCreation/CameraScreen.tsx - added warning message that shows when user is outside service area
  • mobile/src/screens/IssueCreation/IssueCreationScreen.tsx - added warning message that shows when user is outside service area, prevents user from submitting issue
    • uses photo location if available
  • mobile/src/screens/Landing/LandingScreen.tsx - added warning message that shows when user is outside service
  • mobile/src/screens/Landing/MapViewScreen.tsx - added stl city boundary, shades everywhere else, calculates if user is within boundary

Packages Added:

  • @types/geojson
  • geolib

To Test:
Open app as usual and view boundary on map.
To test warning messages, I had to manually set the location/coordinate values within the code. Theoretically a vpn that lets you change your location should also work.

Screenshot_20260810_163525_Expo Go Screenshot_20260810_163742_Expo Go Screenshot_20260810_163749_Expo Go Screenshot_20260810_163813_Expo Go

@LeahBragg LeahBragg linked an issue Aug 10, 2026 that may be closed by this pull request
4 tasks
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.

Add city bounds to map

1 participant