Pemetaan Hasil Produksi Budidaya
Visualisasi yang menunjukkan lokasi budidaya di Kabupaten Purbalingga berdasar jumlah produksinya
', , ],
];
function setMarkers(map, locations) {
var globalPin = 'img/marker.png';
for (var i = 0; i < locations.length; i++) {
var office = locations[i];
var myLatLng = new google.maps.LatLng(office[4], office[3]);
var infowindow = new google.maps.InfoWindow({
content: contentString
});
var contentString =
'
' +
'
' +
'
' +
'
' + office[1] + '
' +
'
' +
'
';
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
title: office[1],
icon: 'img/kuning.png'
});
google.maps.event.addListener(marker, 'click', getInfoCallback(map, contentString));
}
}
function getInfoCallback(map, content) {
var infowindow = new google.maps.InfoWindow({
content: content
});
return function() {
infowindow.setContent(content);
infowindow.open(map, this);
};
}
initialize();