Skip Navigation

[Resolved] How to show multiple map markers for locations added via a Post CRED form

This support ticket is created 5 years, 2 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by Alex W 5 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#1398635

I have a map, and a custom post type of Locations. People add new locations to the map using the Toolset CRED Post form. I need to be able to show more than one marker and popup per address, as a single address is used for more than one thing. The markers cluster just fine, but when clicked don't do anything.

Is there a way to get the map to show two markers very close to each other, that are for the same address, so they can still be clicked on to see their popups?

Here's the map, but at the moment we have removed any duplicate addresses hidden link

Let me know if I need to supply any more information

Thanks

Alex

#1398899

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Alex,

Thank you for getting in touch.

What you can do is to use the spiderfy feature for the items with the same address.
https://toolset.com/documentation/user-guides/display-on-google-maps/displaying-markers-on-google-maps/#grouping-close-markers-into-clusters

Here is an example of how the spiderfy works.
hidden link

It essentially groups all the markers with the same address.

Please let me know if this helps.

Thanks,
Shane

#1398933

Hi Shane

I did try spiderify combined with clustering, but it won't let two markers at the same location spiderify. I have enabled this on the map so you can see what I mean: hidden link

Here's my shortcode. I tried changing the cluster grid size, but it makes no difference

[wpv-map-render map_id="map-jazzsouthlocations" map_height="650px" cluster="on" spiderfy="on" cluster_grid_size="50"][/wpv-map-render]

Any ideas how I can get spiderify and clustering to work together?

Thanks

Alex

#1399115

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Alex,

I see the issue now.

Because the items are the same address the cluster is overwriting the spiderfy. So in your case you will need to disable the clusters and just use the spiderfy in order to get your desired results.

They are not able to work together in your case.

Thanks,
Shane

#1399395

My issue is resolved now. Thank you!