Skip Navigation

[Resolved] Split: filtrable map not working

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 8.03 hours from now. Thank you for your understanding.

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/Karachi (GMT+05:00)

Author
Posts
#2647005

Hi ! Thx for the image radius !

For my filtrable map, it's for this page : hidden link

With the Modèle de contenu > "annuaire" (id 3578) where i have a map with a data source for markers. 🙁

Thx

#2647113

Hi,

I noticed that the page 'Annuaire des Professionnels' is set to use the view named 'Filtre annuaire des Professionnels'.
( this view is created in the content template 'annuaire' )

On single 'Annuaires des professionnels' post pages, the map was showing with the current post's address field, because this content template also included a map block.

But on the page 'Annuaire des Professionnels', only this view was being called without any map block or shortcode.

To show a map on this page, I followed these steps:

1. In the content of the page 'Annuaire des Professionnels', I included a text editor module above the Toolset View module with the map's shortcode 'wpv-map-render':
https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-render
( screenshot: hidden link )


[wpv-map-render map_id="map-1" map_height="450px"][/wpv-map-render]

2. And in the view 'Filtre annuaire des Professionnels', I included a 'Fields and Text' block to load the 'wpv-map-marker' shortcode:
https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-marker
( screenshot: hidden link )


[wpv-map-marker map_id='map-1' marker_id='marker-[wpv-post-id]' marker_field='wpcf-adresse'][/wpv-map-marker]

As a result, the first shortcode generates a map and the second shortcode tells which map markers should be placed on this map, for the page 'Annuaire des Professionnels'.
( screenshot: hidden link )

I hope this helps and please let me know if you need further assistance.

regards,
Waqar

#2647161

Hi Waqar !

Thank you very much ! And i don't find how to have a popup on each marker when user click on it ? (with a link to the professional). And is it possible with toolset, to actualize the list behind the map dynamically when we zoom on the map ?

Thx

#2647943

Glad I could help.

I've checked the view 'Filtre annuaire des Professionnels' and noticed that the 'Fields and Text' block that contained the shortcode for the map markers was removed from it.

I've added it back with some changes:


[wpv-map-marker map_id='map-1' marker_id='marker-[wpv-post-id]' marker_field='wpcf-adresse' marker_title='[wpv-post-title]'][wpv-post-link][/wpv-map-marker]

The shortcode '[wpv-post-link]' between the opening and closing shortcode tags of the map marker shortcode will show the individual post's link with the title in the map marker popup.

You can see this in action on the 'Annuaire des professionnels' page.

> And is it possible with toolset, to actualize the list behind the map dynamically when we zoom on the map ?
- No, I'm afraid, this feature is not available in the Toolset plugins.