first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* Created by ignace on 29-9-15.
|
||||
*/
|
||||
function addMarker(map, latlong, text) {
|
||||
var ll = latlong.split(',');
|
||||
var myLatlng = new google.maps.LatLng(ll[0],ll[1]);
|
||||
var marker = new google.maps.Marker({
|
||||
position: myLatlng,
|
||||
title: text
|
||||
});
|
||||
marker.setMap(map);
|
||||
}
|
||||
function makeGoogleMap() {
|
||||
|
||||
var mapOptions = {
|
||||
center: new google.maps.LatLng(50,0),
|
||||
zoom: 1,
|
||||
mapTypeId: google.maps.MapTypeId.ROADMAP
|
||||
};
|
||||
var map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions);
|
||||
addAllMarkers(map);
|
||||
}
|
||||
Reference in New Issue
Block a user