user12538529
user12538529

Reputation: 101

Change selected layer style in Openlayers

I need to change the style so that when I select a polygon from my layer it doesn't have the blue line as it is in this image. Does anyone know where I make this change with Openlayers? enter image description here

Upvotes: 0

Views: 1337

Answers (1)

Criminal_Affair_At_SO
Criminal_Affair_At_SO

Reputation: 3463

I assume you are using the Select interaction - it has a style parameter as described in the docs:

https://openlayers.org/en/latest/apidoc/module-ol_interaction_Select-Select.html

There is also an example for this:

https://openlayers.org/en/latest/examples/select-features.html

Upvotes: 1

Related Questions