Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello.
Suppose we have a map with nodes of a content type being marked upon it. When we click a marker it's node is being displayed in overlay with title and body appearing.
Would it be easy to have the imagefield picture of each node displayed in it's overlay too?
If this needs coding, could you indicate me where(in code) to look for so that I can begin to try?
Thanks
Comments
Comment #1
zzolo CreditAttribution: zzolo commentedHey @chefarov. You'll need to use a computed field in Views, or rewrite a field that adds the other. Overal, you have to use Views to push multiple fields into one.
Comment #2
chefarov CreditAttribution: chefarov commentedHi zzolo.
Thanks for your reply
When I choose Style: " OpenLayers Map " in my view I get no option to add any fields at all. So I guess it is handled by the module someway, therefore I don't know how to use computed field(how to insert it in view). As regards multiple fields in one, I can't find and understand what exactly is it ... :P Do I have to do it through database?
Comment #3
zzolo CreditAttribution: zzolo commentedI think you are missing a couple key concepts. Check this out:
http://drupal.org/node/627816
Basically you need to create Views Data Layers for the map, and then use another View to display it on a page or block.
Comment #4
ken-g CreditAttribution: ken-g as a volunteer and commented