reajust css

This commit is contained in:
Luiz Costa 2024-06-07 12:33:35 +01:00
parent d044d0a28a
commit e206833d85

View File

@ -24,6 +24,7 @@ function create_dialog_and_init_map(frm) {
modalContent.css("width", "80vw");
modalContent.css("height", "80vh");
modalContent.css("max-width", "none"); // Ensure no max-width restrictions
modalContent.css("margin", "auto"); // Center the modal
// Add hide event to reload the page when the dialog is closed
dialog.onhide = function () {
@ -46,7 +47,7 @@ function create_dialog_and_init_map(frm) {
var currentMap = null;
function init_map(frm) {
console.table(window.L);
//console.table(window.L);
console.log("Initializing map with MyLeaflet...");
if (currentMap !== null) {
currentMap.remove(); // Remove the previous map if it exists