withStyle abstract method

MapLayerBuilder withStyle(
  1. Style style
)

Configures the builder to use a style.

Providing a style during layer creation is not mandatory. The style can also be set/updated after the layer creation. 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.

Returns MapLayerBuilder. This class instance.

Implementation

MapLayerBuilder withStyle(Style style);