Skip Navigation

[Cerrado] Map view not loading with Modal

This support ticket is created hace 1 año, 8 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Este tema contiene 5 respuestas, tiene 3 mensajes.

Última actualización por Minesh hace 1 año, 8 meses.

Asistido por: Minesh.

Autor
Mensajes
#2574107

Tell us what you are trying to do?
Hi on the footer i have a modal that opens when clicking open address, the modal load but doesn't load the view.
I have tried the code on the other tickets directly in the views JS but it doesn't fire at all.

jQuery('#mapModal').on('shown.bs.modal', function (e) {
WPViews.view_map_view.init_maps();
});

Is there any documentation that you are following?
Went through previous cases on the support forum but no success

What is the link to your site?
enlace oculto

#2574197

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

When I visited your link and used the dev tools to check the event listeners, I didn't find a "shown.bs.modal" event.

So I searched the source code for the page and didn't find the JS code above you shared.

Where and how did you add it? It doesn't look like it is actually included in the page (or run, if you included it in some file).

#2574243

When checking events that fire the button does indeed change the bs.modal visible to true i can see the event firing off the show address button if you drill down. The code is placed in the JS section of the Toolset view as suggested by support. basically what I'm looking for is a way to load the map on the modal showing as its just blank when it shows.

#2574937

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

I can see that map is loaded when I click on the "Open Address" link. The map is loaded with popup bit delayed.

#2574971

No I created a google multiple location map on their platform that i am using for now.
I would be better to use the toolset map as i would have more control, but it doesnt know how to preform a reload on view

#2575029

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Can you please share test page with test example where you added the map and where its not working and share that problem URL and admin access details and I'm happy to look at it.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

El debate ‘[Cerrado] Map view not loading with Modal’ está cerrado y no admite más respuestas.