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, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.

  • style Style for the layer.

Implementation

void setStyle(Style style);