Created
October 18, 2013 08:37
-
-
Save fieke/7038462 to your computer and use it in GitHub Desktop.
Add Google maps markers
This file contains hidden or 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
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&language=nl"></script> | |
<script type="text/javascript"> | |
function LoadGmaps() { | |
var iconBase = '/sites/rijschoolmerelbeke/themes/autorijschool/custom-marker-icon.png'; | |
var myLatlng = new google.maps.LatLng(50.9955690,3.7455221); | |
var myLatlng2 = new google.maps.LatLng(51.0568298,3.7092637); | |
var myOptions = { | |
zoom: 10, | |
center: myLatlng2, | |
disableDefaultUI: true, | |
navigationControl: false, | |
mapTypeControl: false, | |
streetViewControl: false, | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
} | |
var map = new google.maps.Map(document.getElementById("MyGmaps"), myOptions); | |
var marker = new google.maps.Marker({ | |
position: myLatlng, | |
map: map, | |
icon: iconBase, | |
title:"Zwijnaardsesteenweg 59 9820 Merelbeke" | |
}); | |
var marker2 = new google.maps.Marker({ | |
position: myLatlng2, | |
map: map, | |
icon: iconBase, | |
title:"Noordstraat 5 9000 Gent" | |
}); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment