diff --git a/resources/views/bank-data/index.blade.php b/resources/views/bank-data/index.blade.php index 15d718b..39733c7 100644 --- a/resources/views/bank-data/index.blade.php +++ b/resources/views/bank-data/index.blade.php @@ -16,6 +16,16 @@
+ +
+ + +
+ + Sumber + + Jenis Aset @@ -236,11 +250,18 @@ [lat, lng] = item.location.map(coord => parseFloat(coord)); } + const markerColors = { + data_pembanding: 'http://maps.google.com/mapfiles/ms/icons/red-dot.png', + penilaian: 'http://maps.google.com/mapfiles/ms/icons/blue-dot.png', + input_manual: 'http://maps.google.com/mapfiles/ms/icons/yellow-dot.png' + }; + if (lat && lng) { const marker = new google.maps.Marker({ position: {lat: lat, lng: lng}, map: map, - title: item.jenis_aset + title: item.jenis_aset, + icon: markerColors[item.kategori] || 'http://maps.google.com/mapfiles/ms/icons/red-dot.png' // Default to red if category is not recognized }); // Create info window content @@ -443,6 +464,9 @@ return checkbox.outerHTML.trim(); }, }, + sumber: { + title: 'Sumber' + }, jenis_aset: { title: 'Jenis Aset' },