LineDataSourceBuilder

public class LineDataSourceBuilder
extension LineDataSourceBuilder: NativeBase
extension LineDataSourceBuilder: Hashable

Builder of lines data source.

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.

  • Creates a data source builder instance in the given context.

    Declaration

    Swift

    public init(_ context: MapContext)

    Parameters

    context

    Map context to associate the data source with.

  • Configures the builder to use the given name for data source.

    Declaration

    Swift

    public func withName(_ dataSourceName: String) -> LineDataSourceBuilder

    Parameters

    dataSourceName

    Name of the created data source. Must be unique.

    Return Value

    This data source builder instance.

  • Configures the builder to insert the given polyline in the data source.

    Declaration

    Swift

    public func withPolyline(_ polyline: LineData) -> LineDataSourceBuilder

    Parameters

    polyline

    Polyline to add.

    Return Value

    This data source builder instance.

  • Configures the builder to insert the given polylines in the data source.

    Declaration

    Swift

    public func withPolylines(_ polylines: [LineData]) -> LineDataSourceBuilder

    Parameters

    polylines

    Polylines to add.

    Return Value

    This data source builder instance.

  • Builds instance of LineDataSource.

    Declaration

    Swift

    public func build() -> LineDataSource

    Return Value

    Instance of the data source created with given polylines and attributes.