Closed (works as designed)
Project:
Openlayers
Version:
6.x-2.0-beta1
Component:
OL API
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Aug 2011 at 16:53 UTC
Updated:
26 Nov 2011 at 01:57 UTC
Comments
Comment #1
zzolo commentedYou should be able to add fields in your View and have them available in the feature data, then they should be available.
Comment #2
neorg commentedI didn't understand what zzolo meant It took me some hours before I realized how to use this solution.
1. Add all the fields you want to showup in your OpenLayer popup in the views. Add them by fields.
2. The last flied you have to add is a Global: Custom text field. In this field you can ( in the Text ) you can combine all the field in one field.
Here is an example:
3. Still in views, select "Settings" at the display -> Style: OpenLayers Data (click the gear)
and select the Custom text field at Description Field ( the field with all the combined fields.)
Have fun.
Comment #3
zzolo commentedThanks @neorg. I am sorry I did not express myself good enough.
Yeah, this is the best way to do this now. In theory you could do JS level theming for the popup if you wanted to. We chose this method because it is more efficient to not have to send over all that markup to JS when we can create it on the fly.
I am hoping to update tutorials in the docs soon.