Displaying locations with identical coordinates together

Created on 28 July 2025, 7 days ago

Problem/Motivation

I'm attempting to create a map of many different nodes. Each location that may be used will have several different associated nodes. Neither spiderfy, nor clustering is appropriate for my use case. I'm expecting that when I don't use either of those, that when I click on a marker on the map, it should list each of the results that take place at that location in the pop-up. However, it only shows one result when I click on each location, despite seeing in the total result count that all relevant results have been found by the view.

Steps to reproduce

1. Create a content type that uses a Geofield coordinates field.
2. Generate some content of this type and populate some of them with identical coordinates.
3. Create a map of this content type, setting the Geofield as the source in the settings for the view.
4. Disable spiderfying and do not use clustering in the settings. Show the total results for the view.
4. Save and load the map.
5. Click on one of the locations and see that only one of each locations actually displays on the map. The others are not shown, but when you look at the total result count, you will see the correct count of all the content you created.

Proposed resolution

I have to assume that this functionality is present as this seems like a common way to use maps. I propose improving documentation.

🐛 Bug report
Status

Active

Version

11.0

Component

User interface

Created by

🇺🇸United States tclark62

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @tclark62
  • 🇮🇹Italy itamair

    Marking this as Support Request, as this clearly doesn't report any Bug,
    but just a lack of awareness (or documentation, but still on a very specific use case).

    If you have multiple entities with a geofield that store the exact same (lat & lng) coordinates.
    it is pretty obvious that you would end up on a bunch of different location entities that share the exact same coordinates.
    Clicking on the Geofield Map, without markeclustering & spiderfying, of course it will open only the Popup of the Marker that is at highest level (Z-Index), and only render - list the Entity that is linked to that Marker.

    The proper way to accomplish your needs should be to extend your data model and split it into 2 entities:
    - location(s) entities, that embed the Geofield (and eventually the same Address), with unique (don't ever duplicate)
    - content(s) entity that have an entity reference field to a location (entity). Eventually you could create both the new Content and new Location at the same insert time, if the Location (Address) is not yet created.

    With this data model, architecture you can then create a Geofield Map of your defined Locations (and may be filter only those that have at least one Content referring to ... ) and then make each Marker Popup list all the Contents that refer to that Location (such an embedded reverse View: list all the Contents that refer to this Location).

    This is a common (and smart approach) and you could eventually have a look to the "Geo Entity" module for some inspiration (or even exact reference) on what kind of Location Entity you might create and rely to ...

    Hope (and very confident) this helps and points you to the proper approach.

Production build 0.71.5 2024