Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function initialize() {
- var mapOptions = {
- zoom: 7
- };
- var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
- navigator.geolocation.getCurrentPosition(function (position) {
- var pos = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);
- map.setCenter(pos);
- var curMark = new google.maps.Marker({
- position: pos,
- map: map,
- });
- });
- }
- $(document).on('pagecreate','#math', initialize);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement