Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have created a map of users that seems to be working well. I would like to have a text list on the side of the map with links to the markers on the map. Is it possible? And of course, have the list change depending on the map changes. I have the map filtering by Country and WKT field locations both working.
If so can someone point me to some info on how?
Comments
Comment #1
samgreco CreditAttribution: samgreco commentedSo I got proximity working. I created a block with the data, and a page for the map in Views. Proximity works great on the map page. But the block with text does not change with the filter.
Anyone have any clues on how to get there?
Comment #2
samgreco CreditAttribution: samgreco commentedFor anyone that might want to know in the future:
Create an Attachment in views and under the Attachment settings, set the Inherit Exposed Filters to Yes.
Comment #3
knalstaaf CreditAttribution: knalstaaf commentedAdditionally make sure you have the same (exposed) filter (and its settings) in both your displays, and make sure the form settings are set to "input required".
Eventhough your attachment is set to inherit the exposed filter of the display it's attached to, it still needs that very same filter in its own display for some reason.
I'm using it with leaflet in which Leaflet is a page, and the list of dealers is a Bootstrap table. It should work in both ways though. So your case must have been very similar of the exposed filters not being inherited.
Just adding this in case it may be useful to someone else running into this.