Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- navigator.geolocation.getCurrentPosition(function (position) {
- pos = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);
- map.setCenter(pos);
- var curMark = new google.maps.Marker({
- position: pos,
- map: map,
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement