Active
Project:
Openlayers
Version:
7.x-2.x-dev
Component:
OL Views
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Jan 2013 at 19:20 UTC
Updated:
15 Mar 2013 at 09:35 UTC
Jump to comment: Most recent
Please head over to this question here at the Drupal Stack Exchange for details about this feature request.
Comments
Comment #1
FranciscoLuz commentedThis issue here #1609130: Exposed filters from Openlayers Data -> Page display view -> Attachment view - Not attaching addresses a similar need.
Comment #2
polHello,
Could you give us a practical use case on this ?
FYI: The OpenLayers Data views returns KML, a standardized geo format.
Thanks.
Comment #3
FranciscoLuz commentedMy use case is a website that sells bus and airfare tickets.
On a top view display the user selects origin and destination and a table of results containing some itinerary info + price and a "book now" button is presented.
Right below that table lies the Openlayers map display which contains the origin and destination markers for the filtered results.
This is quite easy to accomplish by placing the same exposed filters at both the block table display and at the OpenLayers Data Overlay display, so when the filters are applied in the block table display the map data overlay gets updated.
Nonetheless, that won't work if the filter form is submitted by AJAX, unless the table display could be attached to the Data Overlay display.
Comment #4
polSorry bad idea ;-)
Comment #5
polI just committed some changes, could you check if it's ok for you ?
http://drupalcode.org/project/openlayers.git/commit/5dc73dd
Comment #6
FranciscoLuz commentedHi Pol,
I haven't checked your changes as yet but after playing around with it a bit more in depth I figured that I perhaps have been doing it wrong.
Actually it works just fine if I attach the Block table display to the OpenLayers Map display ( which can either be a page or a block ). I really don't know how I missed that out.
I am sorry and embarrassed to say that the attachment to the OpenLayer Data Overlay may not be necessary. I am going to check out your changes now anyway. Thank you heaps!!!
Comment #7
FranciscoLuz commentedI am closing this as it is perfectly possible to produce the desired result ( See thread #3 ) without having to attach the extra data view display to the OpenLayers Data Overlay but to the OpenLayers Map Display instead.
I am going to test the commit on #5 and will open a new issue in case it breaks something.
Comment #8
Anonymous (not verified) commentedSorry to reopen,
I am very interresting by the way how to update the map via ajax and an exposed filter.
I tried to do as you said but the map disappears after the ajax call.
How did you do, please ?
Thanks.
Comment #9
Anonymous (not verified) commentedSorry to reopen,
I am very interresting by the way how to update the map via ajax and an exposed filter.
I tried to do as you said but the map disappears after the ajax call.
How did you do, please ?
Thanks.