Google Maps API Showing Blank Map When Given LatLng Cords From HTML5 Geolocation
I'm trying to use HTML5's geolocation features. I have a function to get the coordinates and then another to use those coordinates in a call to the Google Maps API. If I manually s
Solution 1:
The LatLng constructor takes 2 arguments(and an optional third) both numeric one latitude and the other longitude, not both concatenated together as a string .
center: new google.maps.LatLng(position.coords.latitude, position.coords.longitude),
Post a Comment for "Google Maps API Showing Blank Map When Given LatLng Cords From HTML5 Geolocation"