setStyle abstract method

void setStyle(
  1. Style style
)

Sets the style to be used by the layer.

For more details see Custom Layer Style Reference in the documentation.

Note: This is a beta release of this feature and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change without a deprecation process.

  • style Style for the layer.

Implementation

void setStyle(Style style);