Skip Navigation

[Resolved] Map featuring markers with exactly the same address

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

Problem:
A map displays markers for posts, many of which have other posts with the same address. How to differentiate them?

Solution:
We added the spiderify library to Maps to solve the problem of displaying markers with the same address, which is described in the linked documentation.

Relevant Documentation:
https://toolset.com/documentation/user-guides/display-on-google-maps/displaying-markers-on-google-maps/#displaying-multiple-markers-that-appear-on-the-same-location

This support ticket is created 6 years, 6 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by michaelM-32 6 years, 6 months ago.

Assisted by: Nigel.

Author
Posts
#950111

I have a client with a vast number of demolition projects across decades. They would like a projects page that shows their projects on a map. They would like to show that sometimes they demolish and rebuild in exactly the same location multiple times.

For example:
Project A was completed in 1995 at 123 fake st.
Project B was completed in 2010, also at 123 fake st.
Project C was completed in 2017, also at 123 fake st.

There are two possible solutions and I would like to achieve either:
Solution 1: the popup content of a marker that represents three projects shows a scrollable div featuring all of the projects that have been completed in that address.
Solution 2: the map is used as a sorting tool which shows all of the projects below the map

Are either of these possible?

I have found people have had the same issues over a year ago, and that requests to make this a feature of the plugin had been made around that time. So is it now a feature or has nothing happened?

Maybe it would be possible to create a custom loop that has some if-then functionality to determine if a marker already exists in that location, then append the popup content with content from the loop's current post. (would that work?)

Kind regards,
Mikey

#950209

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Mikey

We added the spiderify library to Maps to solve the problem of displaying markers with the same address, which is described here:

https://toolset.com/documentation/user-guides/display-on-google-maps/displaying-markers-on-google-maps/#displaying-multiple-markers-that-appear-on-the-same-location

There isn't really any alternative solution, so hopefully your client will be willing to go with that.

#950212

Awesome! Thanks!