Show location in Google Maps

From , 5 Years ago, written in JavaScript, viewed 66 times.
URL https://pastebin.vip/view/34306d99
  1. function showPosition(position)
  2. {
  3. var latlon=position.coords.latitude+","+position.coords.longitude;
  4.  
  5. var img_url="http://maps.googleapis.com/maps/api/staticmap?center="
  6. +latlon+"&zoom=14&size=400x300&sensor=false";
  7.  
  8. document.getElementById("mapholder").innerHTML="<img src='"+img_url+"' />";
  9. }

Reply to "Show location in Google Maps"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website