Hello,
I'm trying to find information on how to create a "show on map" link with Geofield.

Here my use case:

I have a list of nodes (places in France), with a map on top of the listing, displaying all the locations of the nodes.

I'd like to add a link next to each row ("show on map") that link to the point on the map, so that when I click on this link the map would "focus" on the point referencing this node. A link like an anchor link to the place on the map.

Is this possible with geofield ? I saw that I can output GeoJSON so maybe if I use this info in a link href via js, it could do the trick... Do not know enough json and gmap to achieve this alone.

I'm sorry if this has been already asked, but unfortunately I didn't find the answer.
Thanks for the module.
David

Comments

muschpusch’s picture

Category: support » feature

i found this sandbox which creates a field formatter. I have the same usecase and think it's a nice to have feature