Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ngOnInit() {
- const mapOptions = {
- center: {lat: 0, lng: -180},
- zoom: 5,
- mapTypeId: google.maps.MapTypeId.ROADMAP
- };
- const myMap = new google.maps.Map(document.getElementById("my-map"), mapOptions);
- const flightPlanCoordinates = [
- {lat: 37.772, lng: -122.214},
- {lat: 21.291, lng: -157.821},
- {lat: -18.142, lng: 178.431},
- {lat: -27.467, lng: 153.027}
- ];
- const flightPath = new google.maps.Polyline({
- path: flightPlanCoordinates,
- geodesic: true,
- strokeColor: '#FF0000',
- strokeOpacity: 1.0,
- strokeWeight: 2
- });
- flightPath.setMap(myMap);
Add Comment
Please, Sign In to add comment