Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. navigator.geolocation.getCurrentPosition(function(position) {
  2. pos = {
  3. lat: position.coords.latitude,
  4. lng: position.coords.longitude
  5. };
  6. latt=pos.lat;
  7. lngg=pos.lng;
  8. console.log("point :"+latt+","+lngg);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement