Skip to main content
Question

Colorize polygons based on attribute value for writing/visualizing HTML

  • September 18, 2024
  • 0 replies
  • 45 views

albjoh
Contributor
Forum|alt.badge.img+5

Hi, 

I’m looknig for a way to colorize polygons based on attribute value for writing to HTML and further use in data streaming service with workspace app. Each polygon have attributes with unique name and color.

I want to apply these colors to based on the values in the “name” attribute. I know it’s possible to replace text in the “html_content” using the string replacer but how can I make use of my existing attributes when adding eg. a javaScript function? I guess I need to populate the feature properties dynamically from name attribute:

However my edits seem to be omitted when written to final html…Any examples/ideas on this

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings