I would like to implement a "behavior" to my openalayers map to load/display locations depending on the zoom level and map area. You can see an example here:
http://yellow.local.ch/en/q/Z%C3%BCrich/Restaurant.html
If you zoom in, the map as well the list of restaurants gets updated.
Such a behavior (at least for the map) was also implemented in Drupal with gmap and views at opengreenmap.org: http://www.opengreenmap.org/greenmap/ by tom_o_t.
I contacted Tom and he replied: "It's probably possible in OpenLayers, but either way it's going to require some pretty advanced custom js & php code."
So, as I'm absolutely not able to get this done on my own I am looking for some help to get that realized.
Is there anybody skilled to do such a customization? How much work would that be?
Looking forward for any tips and offers.
Comments
How was it done with gmap?
I posted on your other thread about having both map and list views on the same page. One feature my site (which uses gmap) does not have is dynamic loading. Until I saw this link to opengreenmap.org I assumed it couldn't be done with GMap for Drupal. Did he explain how he did it?
-nirad
Was done with custom javascript
tom_o_t didn't explain in detail how it was done but here his statement: "That is all done with some custom javascript that an intern at Green Map wrote. You can see pretty much how it works by viewing source and looking at some of the custom javascript files."
gmaps utility library
Main scripts from OGM are to be found here
Examples of what you asking can be find here, sources and docs here :
Without a doubt, this set of scripts should find a privileged places in OpenLayers as add-ons or library.
--
JcD