diff --git a/static/style.css b/static/style.css
index 34c0d08..fdb2cb8 100644
--- a/static/style.css
+++ b/static/style.css
@@ -329,7 +329,7 @@ header {
padding: 20px;
align-items: center;
justify-content: left;
- max-width: 400;
+ max-width: 300;
}
.recent-Articles {
diff --git a/templates/index.html b/templates/index.html
index 71105a9..9a3b1df 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -11,6 +11,9 @@
.select2-selection__arrow {
display: block !important;
}
+ .custom-popup {
+ font-size: 8px; /* Atur ukuran sesuai kebutuhan */
+ }
@@ -316,7 +319,7 @@
KOPERASI - ${provKoperasiHTML}
`;
- layer.bindPopup(popupContent).openPopup(e.latlng);
+ layer.bindPopup(popupContent, {className: 'custom-popup'}).openPopup(e.latlng);
} else if (currentLevel === 'kabupatenkota') {
const province_code = localStorage.getItem('kode_provinsi');
@@ -359,7 +362,7 @@
KOPERASI - ${kabkoperasiHTML}
`;
- layer.bindPopup(popupContent).openPopup(e.latlng);
+ layer.bindPopup(popupContent, {className:'custom-popup'}).openPopup(e.latlng);
} else if (currentLevel === 'kecamatan'){
const province_code = localStorage.getItem('kode_provinsi')
@@ -405,7 +408,7 @@
SERAPAN - ${kecdanadesaHTML}
KOPERASI - ${keckoperasiHTML}
`
- layer.bindPopup(popupContent).openPopup(e.latlng);
+ layer.bindPopup(popupContent, {className:'custom-popup'}).openPopup(e.latlng);
}else {
// Desa
const province_code = localStorage.getItem('kode_provinsi')
@@ -451,14 +454,14 @@
KOPERASI - ${koperasiHTML}
`;
- layer.bindPopup(popupContent).openPopup(e.latlng);
+ layer.bindPopup(popupContent,{className:'custom-popup'}).openPopup(e.latlng);
}
}, 250);
- layer.bindPopup(feature.properties.nama);
+ layer.bindPopup(feature.properties.nama, {className:'custom-popup'});
}
console.log(currentLevel)
});
- layer.bindPopup(feature.properties.nama);
+ layer.bindPopup(feature.properties.nama, {className: 'custom-popup'});
}
}).addTo(map);
diff --git a/templates/map.html b/templates/map.html
index 9be0e83..7b50271 100644
--- a/templates/map.html
+++ b/templates/map.html
@@ -120,11 +120,7 @@