function myMap() {
var myCenter = new google.maps.LatLng(-7.769826,110.377955);
var mapCanvas = document.getElementById(“map”);
var mapOptions = {center: myCenter, zoom: 15};
var map = new google.maps.Map(mapCanvas, mapOptions);

var Geografi = new google.maps.LatLng(-7.766274, 110.377837);
var Geografi = new google.maps.Marker({
position:Geografi,
animation:google.maps.Animation.BOUNCE
});

Geografi.setMap(map);

var Balairung = new google.maps.LatLng(-7.767965, 110.378561);
var Balairung = new google.maps.Marker({position:Balairung});
Balairung.setMap(map);

var infowindow = new google.maps.InfoWindow({
content:”Hello World!”
});

google.maps.event.addListener(Balairung, ‘click’, function() {
infowindow.open(map,Balairung);
});

var Jalan1 = new google.maps.LatLng(-7.766264, 110.386366);
var Jalan2 = new google.maps.LatLng(-7.767445, 110.385951);
var Jalan3 = new google.maps.LatLng(-7.766828, 110.384218);
var Jalan4 = new google.maps.LatLng(-7.767062, 110.382727);
var Jalan5 = new google.maps.LatLng(-7.765877, 110.378505);
var Jalan6 = new google.maps.LatLng(-7.767052, 110.378054);
var Jalan7 = new google.maps.LatLng(-7.766754, 110.377153);

var flightPath = new google.maps.Polyline({
path: [Jalan1, Jalan2, Jalan3, Jalan4, Jalan5, Jalan6, Jalan7],
strokeColor: “#0000FF”,
strokeOpacity: 0.8,
strokeWeight: 2
});
flightPath.setMap(map);

var Jalan1 = new google.maps.LatLng(-7.768432, 110.377500);
var Jalan2 = new google.maps.LatLng(-7.769665, 110.381663);
var Jalan3 = new google.maps.LatLng(-7.772833, 110.380558);
var Jalan4 = new google.maps.LatLng(-7.771653, 110.376148);

var flightPath = new google.maps.Polygon({
path: [Jalan1, Jalan2, Jalan3, Jalan4, ],
strokeColor: “#0000FF”,
strokeOpacity: 0.8,
strokeWeight: 2
});
flightPath.setMap(map);
}

https://maps.googleapis.com/maps/api/js?key=AIzaSyAba2IFf5sQILXijRnmocOJ2OOigvM2Wso&callback=myMap

Iklan



%d blogger menyukai ini: