fix width dashboard outside sy system and loading when load maps pariwisata, backup localdb

This commit is contained in:
arifal
2025-03-07 18:00:30 +07:00
parent 755720bac9
commit bf55eb228e
4 changed files with 335 additions and 64 deletions

View File

@@ -152,6 +152,9 @@ document.addEventListener("DOMContentLoaded", () => {
var modalInstance = new bootstrap.Modal(modal);
modalInstance.show();
const loading = document.getElementById("loading");
loading.style.display = "block";
setTimeout(() => {
if (!map) {
map = L.map("map").setView([lat, long], 14);
@@ -235,9 +238,11 @@ document.addEventListener("DOMContentLoaded", () => {
},
}).addTo(map);
map.fitBounds(geoLayer.getBounds());
loading.style.display = "none";
})
.catch((error) => {
console.error("Error loading GeoJSON:", error);
loading.style.display = "none";
});
}, 500);
}