Professional Documents
Culture Documents
Sig
Sig
SIMPLE POLYLINES
function initMap() {
zoom: 15,
mapTypeId: 'terrain'
});
var flightPlanCoordinates = [
];
path: flightPlanCoordinates,
geodesic: true,
strokeColor: '#000000',
strokeOpacity: 1.0,
strokeWeight: 2
});
flightPath.setMap(map);
2. REMOVING POLYLINES
// This example adds a UI control allowing users to remove the polyline from the
// map.
var flightPath;
var map;
function initMap() {
zoom: 15,
mapTypeId: 'terrain'
});
var flightPathCoordinates = [
];
path: flightPathCoordinates,
strokeColor: '#000000',
strokeOpacity: 1.0,
strokeWeight: 2
});
addLine();
function addLine() {
flightPath.setMap(map);
function removeLine() {
flightPath.setMap(null);