Skip Navigation

[Fermé] Map view not loading with Modal

This support ticket is created Il y a 1 année et 8 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

Ce sujet contient 5 réponses, a 3 voix.

Dernière mise à jour par Minesh Il y a 1 année et 8 mois.

Assisté par: Minesh.

Auteur
Publications
#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?
lien caché

#2574197

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: 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

Les langues: Anglais (English )

Fuseau horaire: 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

Les langues: Anglais (English )

Fuseau horaire: 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.

Le sujet ‘[Fermé] Map view not loading with Modal’ est fermé à de nouvelles réponses.