217 add city bounds to map - #228
Open
LeahBragg wants to merge 5 commits into
Open
Conversation
4 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
issue #217
Files Added:
mobile/assets/shapes/stl_boundary_inverted.json- geojson file of the stl city boundaryFiled Modified:
mobile/src/contexts/LocationContext.tsx- addedinBoundsandsetInBoundsfields to store whether user is in service areamobile/src/screens/IssueCreation/CameraScreen.tsx- added warning message that shows when user is outside service areamobile/src/screens/IssueCreation/IssueCreationScreen.tsx- added warning message that shows when user is outside service area, prevents user from submitting issuemobile/src/screens/Landing/LandingScreen.tsx- added warning message that shows when user is outside servicemobile/src/screens/Landing/MapViewScreen.tsx- added stl city boundary, shades everywhere else, calculates if user is within boundaryPackages Added:
@types/geojsongeolibTo 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.