Skip Navigation

[Résolu] Keep all markers on a map when a filter is selected

This support ticket is created Il y a 3 années et 6 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.

Ce sujet contient 1 réponse, a 1 voix.

Dernière mise à jour par marioD-5 Il y a 3 années et 6 mois.

Auteur
Publications
#2063573

Hello,

I have a CPT with a country field, a view with a search box filter, and a map that displays markers on the countries where there are CPTs

I also used custom JS so that when a marker is clicked, the value of the 'country' is copied to a search text box, and the results query is updated.
When I click on a marker, the search result updates correctly, and the map view refreshes so only one marker is shown. I'd like to change that so all markers are shown all the time.

PS: The source of the markers is the view block. I was thinking if it was possible to change the source to another view or custom query that only retrieves existing countries.

#2063589

My issue is resolved now. Thank you!