Template:Team:Aachen/MeetupMap1.js
From 2014.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
- | + | var myLatlng = new google.maps.LatLng(-25.363882,131.044922); | |
+ | var mapOptions = { | ||
+ | zoom: 4, | ||
+ | center: myLatlng | ||
+ | } | ||
+ | var map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions); | ||
- | + | var marker = new google.maps.Marker({ | |
- | + | position: myLatlng, | |
- | + | title:"Hello World!" | |
- | + | }); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | // To add the marker to the map, call setMap(); | |
- | + | marker.setMap(map); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + |
Revision as of 21:02, 5 September 2014
var myLatlng = new google.maps.LatLng(-25.363882,131.044922); var mapOptions = {
zoom: 4, center: myLatlng
} var map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions);
var marker = new google.maps.Marker({
position: myLatlng, title:"Hello World!"
});
// To add the marker to the map, call setMap(); marker.setMap(map);