hello @all How could I accomplish this map filter with views? http://www.iea.org/policiesandmeasures/renewableenergy/
It filters counties in a list based on which country was clicked on the map. It is kinda like an exposed filter as a map.
Making it work with Ajax would be a MAJOR PLUS!!!

Comments

john_b’s picture

The questions was discussed here http://drupal.org/node/362450

In theory it should be possible to pass actual coordinates back into a Views exposed proximity filter.
Google documentation on getting lat and long from clicks on a map is here http://drupal.org/node/362450.

The map you linked uses the simpler idea of responding to a polygon on the map when it is clicked. There are some discussions on the net on clickable polygons, for example http://groups.drupal.org/node/13224 and one Drupal contributor published a Drupal module here http://linuxdev.dk/blog/openlayers-making-polygons-interactive-drupal-7

How you draw an accurate polygon on a zoomable map is beyond me, but as I happen to be listening to the MongoDB presentation on encoding non-planar mapping data, I will link it in case it is interesting http://www.10gen.com/presentations/webinar-mongodb-24-feature-demo-and-q...

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors