-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update map search to use autosuggest and geocoding (#140)
In the previous version of the map search, the crossings visible on the map would simply be filtered out by the search query. This update changes that so: * Setting focus on the search bar replaces the nearby crossings with suggestions * These suggestions include Crossings, Communities, and Geocoded locations * Selecting a suggested crossing: * Centers the map and zooms in on the crossing * Shows the crossing details in the sidebar * Selecting a suggested community: * Filters the map to only show crossings in that community * Sets the map bounds to fit the community * Selecting a geocoded location * Centers the map and zooms in on the location Libraries used: * [react-autosuggest](https://github.com/moroshko/react-autosuggest) * [mapbox-sdk-js](https://github.com/mapbox/mapbox-sdk-js) (for geocoding)
- Loading branch information
Brian Smith
committed
Feb 28, 2018
1 parent
ed65213
commit 206035d
Showing
18 changed files
with
744 additions
and
220 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.