I'm using a GeoField Map display in views to display some contact nodes. Trouble is, sometimes there are multiple contacts at the same address, and it's only possible to click the single visible pin and see one node.
Would it be possible to add a grouping field setting, as we have in list views, so that multiple results could be displayed in a single pop-up?
Alternatively, would it be possible to disable pop-ups entirely, so that the map is simply a visual aid and details could be listed below?
Comments
Comment #1
ceepeebee commentedHave a look at #7 at #1335264: Addressfield & geofield in views: How-To display multiple addresses stored in the same (multi-dimensional) field. (You have quite a similar problem - overlapping markers covering the rest)
There you can find a description how to write your own small module (I think it's 4 lines of code or so) to tweak the results returned from the database before they are rendered for display. In this way you could get multiple contacts into the topmost marker at one location.
Alternatively, you wouldn't have to disable pop-ups. Instead you would use javascript (jQuery) to reposition the pop-ups , for example below the map, or even better: spreading out.
Comment #2
ceepeebee commentedComment #3
ceepeebee commentedMy last post wasn't totally correct, e.g. there is only one instance of InfoWindow which is reused...
I just tried to set it up as explained, but it isn't as easy as described. So I'll do a follow up some time soon. sorry for the inconvenience. --> active again.
Comment #4
ceepeebee commentedHave a look at #1982588: Combine markers with identical locations as well
Comment #5
wrd commentedThanks for the updates -- the project this was for got backburnered, but I'm certain I'll still need it, so I'll take a look.