withDataSource abstract method

MapLayerBuilder withDataSource(
  1. String dataSourceName,
  2. MapContentType contentType
)

Configures the builder to use a data source with the given name as the source of data for the layer.

The datasource name and content type are mandatory layer creation parameters.

  • dataSourceName Name of the data source.

  • contentType The renderable content type supplied by the data source.

Returns MapLayerBuilder. This class instance.

Implementation

MapLayerBuilder withDataSource(String dataSourceName, MapContentType contentType);