Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var getLocation = function(){
- if ("geolocation" in navigator){
- const pos = navigator.geolocation.getCurrentPosition();
- let x = pos.coords.latitude;
- let y = pos.coords.longitude;
- return [x,y];
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement