Please head over to this question here at the Drupal Stack Exchange for details about this feature request.

Comments

FranciscoLuz’s picture

Pol’s picture

Hello,

Could you give us a practical use case on this ?

FYI: The OpenLayers Data views returns KML, a standardized geo format.

Thanks.

FranciscoLuz’s picture

My 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.

Pol’s picture

Sorry bad idea ;-)

Pol’s picture

I just committed some changes, could you check if it's ok for you ?

http://drupalcode.org/project/openlayers.git/commit/5dc73dd

FranciscoLuz’s picture

Hi 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!!!

FranciscoLuz’s picture

Status: Active » Closed (works as designed)

I 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.

Anonymous’s picture

Status: Closed (works as designed) » Active

Sorry 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.

Anonymous’s picture

Sorry 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.