22 lines
572 B
JavaScript
22 lines
572 B
JavaScript
/**
|
|||
|
|
* 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);
|
||
|
|
}
|