LineDataAccessor

public class LineDataAccessor
extension LineDataAccessor: NativeBase
extension LineDataAccessor: Hashable

Line data accessor used for manipulating polylines that are part of a LineDataSource.

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.

  • Gets polyline geometry.

    Declaration

    Swift

    public func getGeometry() -> GeoPolyline

    Return Value

    The line geometry.

  • Gets polyline attributes accessor.

    Declaration

    Swift

    public func getAttributes() -> DataAttributesAccessor

    Return Value

    The polyline attributes accessor.

  • Replaces polyline geometry. Altitude of the vertices is ignored.

    Declaration

    Swift

    public func setGeometry(_ geometry: GeoPolyline)

    Parameters

    geometry

    The geometry.

  • Replaces polyline attributes.

    Declaration

    Swift

    public func setAttributes(_ attributes: DataAttributes)

    Parameters

    attributes

    The attributes.