Hello everybody,
I’m looking for a good package for Meteor and React for use Google Map, Places API with the autocomplete. Which is the best one for do that please ?
Thank You!
Hello everybody,
I’m looking for a good package for Meteor and React for use Google Map, Places API with the autocomplete. Which is the best one for do that please ?
Thank You!
I use react-geosuggest (npm). The ‘for Meteor’ is irrelevant unless you need one that looks into Meteor’s MongoDB geolocations.
What I do is to dynamically add the Goole Maps API to the client right before the component that loads the geosuggest is loaded.
+1 for react-geosuggest. It just slides right into a form:
<Geosuggest
ref={(el) => (this._geoSuggest = el)} // eslint-disable-line
inputClassName="form-control"
placeholder="Search for location"
country="us"
onSuggestSelect={handleLocSelect}
/>
Thanks very much guys!