performant-software / react-components

A library of shared React components
https://performant-software.github.io/react-components/
MIT License
1 stars 1 forks source link

CDC #121 - Geocoding #273

Closed dleadbetter closed 4 months ago

dleadbetter commented 4 months ago

This pull request adds the GeocodingControl component and the geocoding prop to the MapDraw component. When set to "point" or "polygon", the map will render a search input that uses Map Tiler's geocoding API to lookup geometries by the entered place name. A value of "point" will add a lat/lng point to the map. A value of "polygon" will add a polygon outline of the location to the map.

Search Input

Screenshot 2024-04-11 at 7 26 08 AM

Point Selection

Screenshot 2024-04-11 at 7 26 17 AM

Polygon Selection

Screenshot 2024-04-11 at 7 26 33 AM