LineDataBuilder
public class LineDataBuilder
extension LineDataBuilder: NativeBase
extension LineDataBuilder: Hashable
Builder of LineData instances.
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 builder instance.
Declaration
Swift
public init() -
Configures the builder with geometry for line to be created.
Declaration
Swift
public func withGeometry(_ geometry: GeoPolyline) -> LineDataBuilderParameters
geometryGeometry of the polyline. Each vertex defines two line segments: one with a previous vertex and one with a next vertex. First and last vertices don’t have resp. previous and next vertices and thus belong to single line segments. Altitude of polyline vertices is ignored.
Return Value
The builder.
-
Configures the builder with custom attributes for line to be created.
Declaration
Swift
public func withAttributes(_ attributes: DataAttributes) -> LineDataBuilderParameters
attributesCustom data attributes to be associated with the line.
Return Value
The builder.