Skip Navigation

[Resolved] Toolset Map in taps

This support ticket is created 3 years, 9 months ago. 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.

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 4 replies, has 2 voices.

Last updated by garenM 3 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#1940467

Hey I found the below javascript code to working for the tabs but doesnt work. Can you let me know what I have to include on WPViews.view_addon_maps.reload_map().

jQuery(document).ready(function(){
jQuery(document).on('click', '.сontact-us__adress li > a', function () {
var timeoutID = window.setTimeout( function(){
WPViews.view_addon_maps.reload_map('js-wpv-addon-maps-render-map-170');
}, 200 );
});
});

Also in the tab content in view i used the below

<div id="location[wpv-post-id]" class="tab-pane fade">
<div class="сontact-us__image">[wpv-map-render map_id="map-[wpv-post-id]" map_width="100%" map_height="561px" single_zoom="18" map_type_control="off" zoom_control="off" street_view_control="off" style_json="//wordpress-446656-1748993.cloudwaysapps.com/wp-content/plugins/toolset-maps/resources/json/Night.json"][wpv-map-marker map_id='map-[wpv-post-id]' marker_id='marker-[wpv-post-id]' marker_field='wpcf-location-address'][/wpv-map-marker][/wpv-map-render]</div>
</div>

#1940713

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

In general, you should pass the map-id to the reload_map() function but based on the code you shared, I can see that you have a dynamic map ID: map_id="map-[wpv-post-id]"

Can you please share problem URL where you added the map as well as admin access details so I can see what the map is not get rendered.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) 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.

#1941931

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check now: hidden link

There was a theme conflict as your theme also having a CSS class namely fade and it was affecting the output.

I just removed the fade class from your following view's Loop Editor section and content template and I can see map is just displayed as expected.
=> hidden link

I've also comment out the custom JS you added.

#1941953

Oh Thank you its worked

#2006055

hey the problem is back again. can youi please advise

New threads created by Minesh and linked to this one are listed below:

https://toolset.com/forums/topic/split-toolset-map-in-taps/