Hi all!
I have installed the current alpha on my Drupal 7.0 site. I have set up a map preset, added long/lat-fields to one of my content types, and created a block view with an openlayers-display.
The idea is that I want to have a map showing locations of nodes of my content-type on the map. Then, I want to display the map as a block inside all pages of the given content type.
Now, the yet to be solved problem I have is, how to I get the map zoom onto the location of the page-node that its block is displayed in? E.g. I would like to show the map zoomed on the surroundings of node A when displaying the page node A. Do I need to define map boundary fields in my content type? And can I still have a marker at one point inside this boundary?
Thanks, cheers,
Lars.
Comments
Comment #1
zzolo commentedHi @grobe. I have not actually used the D7 version, but I am sure there are not any huge changes in this area.
What you need to do is create an "invisible" data layer in Views that has an argument for that node. By invisible, I mean use a "display: none" style. This will allow you then to zoom to that layer, but without creating a new feature on the map.
Let me know if you need some more details.
Comment #2
zzolo commentedClosing. Let us know if there are still issues or areas we can help with.