react-instantsearch icon indicating copy to clipboard operation
react-instantsearch copied to clipboard

GeoSearch Widget error : not a LatLng or LatLngLiteral: in property lat: not a number

Open abathellier opened this issue 8 years ago • 3 comments

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",

abathellier avatar Jul 31 '18 16:07 abathellier

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

Haroenv avatar Aug 01 '18 09:08 Haroenv

The solution provided by @Haroenv should solve the issue. In case it's not please open a new issue with a reproducible example. Thanks!

samouss avatar Aug 06 '18 10:08 samouss

Im having the same problem here, even when copying and pasting the above codepen with my own API key.

SavageWilliam avatar Nov 18 '20 10:11 SavageWilliam