GeoSearch Widget error : not a LatLng or LatLngLiteral: in property lat: not a number
Bug
Impossible to use GeoSearch widget: the app is crashing with error
not a LatLng or LatLngLiteral: in property lat: not a number
Here a codesandbox with the very minimal setup from the doc : https://codesandbox.io/s/mm6wmz6moy?expanddevtools=1
Bug: What is the current behavior? app crashing
Bug: What is the expected behavior? GeoSearch widget shows a map
Bug: What browsers are impacted? Which versions? all
What is the version you are using? Always use the latest one before opening a bug issue. "react-instantsearch": "^5.2.2", "react-instantsearch-dom-maps": "^5.2.2",
I don't get that error, changed your code slightly to get the google object loaded correctly; as well as adding a tiny bit of style to make sure the height made it visible: https://codesandbox.io/s/52rvlk5jwk
The solution provided by @Haroenv should solve the issue. In case it's not please open a new issue with a reproducible example. Thanks!
Im having the same problem here, even when copying and pasting the above codepen with my own API key.