leighhalliday / google-maps-react-2020

109 stars 114 forks source link

codebase not working with mock data #2

Open js08 opened 4 years ago

js08 commented 4 years ago

Hi,

I am testing your code with hard coded values I tried to hard code and do a search in my text box, but it's not working. I am getting an error, can you tell me how to fix it. I enabled all the API, but locations didn't work that's the reason I wanted to hard code

js?key=AIzaSyChvAoV4GcGa856ojaFyxDQ7Pr4U-qP5qg&v=weekly&libraries=places&callback=initMap:84 Uncaught oe {message: "not a LatLng or LatLngLiteral with finite coordinates: in property lat: not a number", name: "InvalidValueError", stack: "Error↵ at new oe (https://maps.googleapis.com/m…es/react-dom/cjs/react-dom.development.js:5881:3)"}

js08 commented 4 years ago

hey after I remove quotes before latitude and longitude its working, but still I don't know why locations API is not enabled

ahmcho commented 3 years ago

Hey, I just watched the video and stumbled upon this issue. Do you have any errors in console?