0
Q:

add geolocation to website


 function showPosition(position) {
  var latlon = position.coords.latitude + "," + position.coords.longitude;

  var img_url = "https://maps.googleapis.com/maps/api/staticmap?center=

   "+latlon+"&zoom=14&size=400x300&sensor=false&key=YOUR_KEY";


   document.getElementById("mapholder").innerHTML = "<img src='"+img_url+"'>";

 }
 
-1

New to Communities?

Join the community