Is there a way to fiter and update an openlayers map in a block via ajax using an exposed views filter? I've set up my map and created an exposed filter, and when I submit the filter form I can see in Firebug that the map's wrapper element's html is getting updated, however the map doesn't seem to reinitialize/update with the filtered data.
(I know that the filter is set up properly on the views side, because if I go to the/node/path?nid=4, say, I get the map as expected.)
Can someone point me in the right direction for how to pull this off? I assume that there is a javascript function (or two) I need to call to reinit the map properly...
Comments
Comment #1
tmcw CreditAttribution: tmcw commentedCurrently, this is not possible, given the way that Drupal handles views and javascript additions to the page. Work related to this issues is happening in #889190: Implement GeoJSON output as a standard.
Comment #3
jasonn1234 CreditAttribution: jasonn1234 commentedThank you!
Comment #4
light9 CreditAttribution: light9 commentedsubscribe
Comment #5
dgastudio CreditAttribution: dgastudio commentedsubscribe
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedHello,
I subscribe to that post too. I would like to know how to update an openlayers map with points filtered from an ajax exposed filter.
Thanks.
Comment #7
acbramley CreditAttribution: acbramley commented@michee.advances this used to work in beta1 version of openlayers, I have an issue open #1993172: AJAX responses for views exposed filters broken (worked in beta3) where I'm trying to figure out what's causing it to no longer work. This issue has been closed for a long time, maybe join the discussion over on my issue