var line;
function initialize() {
var mapDiv = document.getEle
var map = new google.maps.Ma
center: new google.maps.LatL
zoom: 2,
mapTypeId: google.maps.MapTy
});
var path = [new google.maps.
new google.maps.LatLng(21.
new google.maps.LatLng(-18.
new google.maps.LatLng(-27.
line = new google.maps.Polyl
strokeColor: '#ff0000',
strokeOpacity: 1.0,
strokeWeight: 2
});
line.setMap(map);
google.maps.event.addListene
}
function addNewPoint(e) {
var path = line.getPath();
path.push(e.latLng);
}
No comments:
Post a Comment