Skip Navigation

[Resolved] Start view empty map

This thread is resolved. Here is a description of the problem and solution.

Problem:

I have two post types which both have a google address field and I try to show a google map with taxonomy filters and pagination on.

When I go to the page, the view's list is full of records, but the map is empty (well, actually it shows some Africa continent area without markers. All the addresses are in Finland). Only after I EITHER choose some taxonomy OR click some page in the pagination the map gets rendered properly. After that it works perfectly.

Solution:

It is fixed by by using DIVI page builder, see details here:
https://toolset.com/forums/topic/start-view-empty-map/#post-1077311

Relevant Documentation:

This support ticket is created 6 years, 3 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 12 replies, has 2 voices.

Last updated by Luo Yang 6 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1074248

I have two post types which both have a google address field and I try to show a google map with taxonomy filters and pagination on.

Link to a page where the issue can be seen: hidden link

When I go to the page, the view's list is full of records, but the map is empty (well, actually it shows some Africa continent area without markers. All the addresses are in Finland). Only after I EITHER choose some taxonomy OR click some page in the pagination the map gets rendered properly. After that it works perfectly.

#1074755
map-1-1.JPG

Hello,

I have checked it in your website, When I go to the page, the google map ID is "map-1-1", see screenshot map-1-1.JPG, after choose some taxonomy, it is changed to ""map-1", the problem is abnormal, please check these:
1) In case it is a compatibility problem, please deactivate other plugins, and switch to wordpress default theme 2017, and test again
2) If the problem still persists, please provide database dump file(ZIP file) of your website, also point out the problem page URL and view URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1075003

Thank you Luo,

It seems to be another compatibility problem with Divi theme.
What would you suggest I do to get this solved?

#1075205

Since it is a compatibility problem with DIVI theme, please provide a copy of your website in below private message box, also point out the problem page URL and view URL, I need to test and debug it in my localhost, thanks

https://toolset.com/faq/provide-supporters-copy-site/

#1076147

I have tried the duplicator package URL, but get 400 error, please check it, you can update it in your own private message box:
https://toolset.com/forums/topic/start-view-empty-map/#post-1076136

#1076152

OK, I can download the duplicator package, but it 4G size, it is too big to download, I suggest you provide the credentials of your website in below private message box, I just need to debug it in a live website.

#1076209

Thanks for the details, I have done below modification in your website:
1)Edit the view "Jälleenmyyjät ja asennusliikkeet":
hidden link
in section "Loop Editor", move the marker shortcode from section "Loop Editor" to content template "Loop item in Jälleenmyyjät ja asennusliikkeet", and modify the marker shortcode attribute from:

marker_id='marker-1'

To:

marker_id='marker-[wpv-post-id]'

2) Move map shortcode [wpv-map-render] to the page:
hidden link
as below:

<div class="palsta">[wpv-view name="jalleenmyyjat-ja-asennusliikkeet" cached="off"]</div>
<div class="palsta">
  [wpv-map-render map_id="map-1" map_height="600px" fitbounds="on" cluster="on" spiderfy="on" cluster_min_size="5"][/wpv-map-render]
  <button class="js-wpv-addon-maps-restore-map" data-map="map-1">Näytä koko Suomi</button>
</div>

Please test again, check if it is fixed or not, thanks

#1076234

Thank you. Looks at first glance better, but actually now the map view doesn't change at all when choosing other page or taxonomy.

#1076237

Thanks for the details, I am downloading the your website database dump file, trying to duplicate the same problem, will update this thread if there is any found

#1077177

I have been able to duplicate the same problem using your database dump file + DIVI theme, and have escalated this thread to our 2nd tier supporters, will update here if there is anything news.

#1077311

I have done below modification in your website, edit the problem page:
hidden link

Click the button "Käytä Divi-rakentajaa", and save the post, please test again, check if it is fixed or not. thanks

#1077328

Thank you! Now it seems to work ok. It was some compatibility with Divi?

#1077703

It seems to be a compatibility problem, the DIVI theme has changed the map ID.