Created
February 26, 2014 19:04
-
-
Save mikevalstar/9236187 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var lat = parseFloat($('#coords latitude').html()); | |
var lon = parseFloat($('#coords longitude').html()); | |
var url = "https://maps.google.com/maps?q=" + $('#coords latitude').html() + "," + $('#coords longitude').html(); | |
var myLatlng = new google.maps.LatLng(lat, lon); | |
var mapOptions = { | |
zoom: 14, | |
center: myLatlng | |
}; | |
var map = new google.maps.Map(document.getElementById('map-contactus'), mapOptions); | |
//var marker = | |
new google.maps.Marker({ | |
position: myLatlng, | |
map: map, | |
icon: 'http://maps.google.com/mapfiles/ms/icons/green-dot.png' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment