Closed joekaram closed 3 years ago
Hello @joekaram ,
such dynamic styling can be made more easy with style function.
Take a look at this demo https://jsfiddle.net/ghettovoice/ud91komb/.
I append field to the newly drawing feature inside onDrawStart callback, then this flag is used to resolve feature style inside style function.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi,
I am trying to draw two polygons with two different colors based on a certain condition. I am able to do so but after closing the polygon, it disappears. Any idea how to keep the two polygons each with its color after drawing them?
I tried adding conditions inside the
vl-layer-vector
, as mentioned here, but it didn't work.Thanks in advance!