Skip Navigation

[Closed] Map view not loading with Modal

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.

Our next available supporter will start replying to tickets in about 2.08 hours from now. Thank you for your understanding.

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)

This topic contains 5 replies, has 3 voices.

Last updated by Minesh 1 year, 8 months ago.

Assisted by: Minesh.

Author
Posts
#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?
hidden link

#2574197

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: 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

Languages: English (English )

Timezone: 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

Languages: English (English )

Timezone: 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.

The topic ‘[Closed] Map view not loading with Modal’ is closed to new replies.