Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. navigator.geolocation.getCurrentPosition(function (position) {
  2. pos = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);
  3. map.setCenter(pos);
  4. var curMark = new google.maps.Marker({
  5. position: pos,
  6. map: map,
  7. });
  8. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement