Skip Navigation

[Résolu] maps markers don't show up if view is inside a wp-template

This support ticket is created Il y a 5 années et 9 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 7 réponses, a 3 voix.

Dernière mise à jour par alexanderL-2 Il y a 5 années et 9 mois.

Assisté par: Minesh.

Auteur
Publications
#1201034

I am trying to:
display a map with all markers. It works if the view is in post but not if the view is inside a template.

I expected to see:
lien caché (view is as shortcode in classic page editor)

Instead, I got:
lien caché (view is as shortcode in template, which is set for the page as templae)

#1201053

Diego Pereira
Supporter

Hello @alexanderL-2, welcome to the WPML support Forum!

Please send us access to your WordPress dashboard (website URL, login and password), we need to check how these views are set. - Please use the private field to send the sensitive data - do not post if you do not see it.

It would be better if you give me a test site rather than the live site.

IMPORTANT Please backup a working copy of site files and database before.

All the best,
Diego

#1201788

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello alexanderL - This is Minesh here and I'll take care of this ticket and try to help you further. Hope this is OK.

Well - I checked the view you ask us to check:
=> lien caché

But I do not see any content template is assigned to view. And I see with the content template there are number of view's added to it.
-=> lien caché

Can you please tell me which marker is not displaying exactly where.

#1201798
Screen Shot 2019-02-18 at 15.17.11.png
Screen Shot 2019-02-18 at 15.17.26.png

Hi Minesh,

we changed the home site in the meantime. However the issue persists on other parts of the webiste where we are using wp-types template to display views.

Like here: lien caché

This is template "Stadt-Template" (id: 1050) displaying view "Stadt-View" (id: 1048).

The map displays west africa, gulf of guinea instead of the part with markers. Only if you click on a filter like "casino" to filter markers, the map shows the markers right. That only happens if the view is in a template. Without template (only using the view-shortcode), the map is working.

Thanks, Alex

#1202329

I created two new pages to show the issue in a better way.

page 1 (Site-View in post w/o template) = lien caché
page 2 (Site-View within template) = lien caché

template = testtemplate (id:1291)
view = test-view (id:1292)

page 1 works great. The view is in default page editor and markers are shown in the map
page 2 doesnt work. The view is in template and the page refers to this template. So map is showing but without markers.

I dont get any js-errors or any other kind of error messages. What can it be?

Thanks, Alex

#1203255

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Well - thank you for those links but the thing is that when I checked with the minimum installation only Toolet plugins installed and with the default theme, I do not able to reproduce the issue. Again, I checked with one of my colleague even he is not able to reproduce the issue.

I found that when I visit this page: lien caché
The generated map's ID is "js-wpv-addon-maps-render-map-8-1" that is incorrect but the correct map Id is "js-wpv-addon-maps-render-map-8"

Where as if you visit this page: lien caché
The map ID generated is correctly that is "js-wpv-addon-maps-render-map-8".

So steps to follow now is:
- Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?

If above step does not help, I need copy of your site to check whats going wrong there.
More info:
=> https://toolset.com/faq/provide-supporters-copy-site/

#1203261

You were right, it works without third-party plugins. I also found the bad one. It is "YOAST SEO".
Do you have any idea why toolset maps is not working with yoast?

Is there any compatibility setting which i oversee to check?

#1203276

Never mind, i replaced "yoast seo" with "all in one seo". Now it works fine.

Thanks!