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.
How do I change the strokecolor dymanically passed on a taxonomy term?
Process:
1. Taxonomy term has a field - marker_color
2. Views -> OL Overlay has field (term)marker_color
3. Views preview shows variable ${field_marker_color} and in the code of arrays 'field_marker_color' => '#EDE02D',
4. OL -> styles -> Red Marker (copy of Default) -> I replaced the #hex number for strokeColor with ${field_marker_color}
5. OL -> my map -> layers -> my overlay map configured to Red Marker
6. Query map = marker is gray, js says stroke is 'undefined'.
How do I do this correctly?
Comments
Comment #1
PolSee https://www.drupal.org/node/2249165#comment-8723627