mirror of
https://github.com/itsdave-de/fusionpbx_connect.git
synced 2025-05-06 15:45:15 +02:00
try fix show map
This commit is contained in:
parent
b33a81c3bf
commit
d044d0a28a
@ -21,8 +21,8 @@ function create_dialog_and_init_map(frm) {
|
||||
|
||||
// Adjust the size of the dialog dynamically to 80% of the browser window
|
||||
const modalContent = dialog.$wrapper.find('.modal-content');
|
||||
modalContent.css("width", "80%");
|
||||
modalContent.css("height", "80%");
|
||||
modalContent.css("width", "80vw");
|
||||
modalContent.css("height", "80vh");
|
||||
modalContent.css("max-width", "none"); // Ensure no max-width restrictions
|
||||
|
||||
// Add hide event to reload the page when the dialog is closed
|
||||
@ -93,7 +93,7 @@ function init_map(frm) {
|
||||
},
|
||||
callback: function (r) {
|
||||
if (r.message) {
|
||||
console.table(r.message);
|
||||
//console.table(r.message);
|
||||
const data = r.message;
|
||||
const routeCoordinates = data.map(entry => [entry.latitude, entry.longitude]);
|
||||
const polyline = window.L.polyline(routeCoordinates, { color: 'red' }).addTo(map);
|
||||
|
Loading…
x
Reference in New Issue
Block a user