fix width dashboard outside sy system and loading when load maps pariwisata, backup localdb
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user