I have a few locations in the same node and I'm trying to display them on the same map with views.
I want to display the address of the location in the tooltip, but instead, the last entered location address is printed out for all locations.

Attached is an example of what's happening - the left tooltip should show the address in Netherlands, not the Italian one.

CommentFileSizeAuthor
map-same-locations-01.jpg852.05 KBSimiS
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RdeBoer’s picture

Pretty sure module IPGV&M can help.
You can keep your current Leaflet & Views set-up. Just enable http://drupal.org/project/ip_geoloc and you'll have more display options at your disposal.

See #1824538: Issues with multivalues addressfield

But maybe this even works without IPGV&M:

In the View, the AddressField field must have "Display all values in the same row" (in the MULTIPLE FIELD SETTINGS" fieldset) UNTICKED, while the Geofield field (and all other fields, where applicable) must have it TICKED.

SimiS’s picture

Already tried that and it didn't fix it.
Also installed ip_geoloc before, but the problem didn't go away.

Thanks for help anyway.

RdeBoer’s picture

Bummer.
Have you tried getting your Views output right in a table first?
Then when you have to ok, switch the Table format to Map format and it should reflect what you have in the table correctly.
Rik

SimiS’s picture

Solved it by adding ip_geoloc module again and tweaking the view settings from scratch and now everything works.
Thanks for suggestions!

SimiS’s picture

Status: Active » Closed (fixed)
RdeBoer’s picture

Yay!
Thanks for confirming SimiS
Rik

MrPeanut’s picture

Status: Closed (fixed) » Active

IPGV&M can resolve this issue for views, but isn't this still a bug on individual node displays? That is, multiple-value addressfields and multiple-value geofields. The multiple-value geofield shows individual pins on the map, but the tooltip (popup) for each individual pin shows every value of the addressfield.

charly71’s picture

Any solutions for Drupal 8-9.x?

Anybody’s picture