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() -> GeoPolylineReturn Value
The line geometry.
-
Gets polyline attributes accessor.
Declaration
Swift
public func getAttributes() -> DataAttributesAccessorReturn Value
The polyline attributes accessor.
-
Replaces polyline geometry. Altitude of the vertices is ignored.
Declaration
Swift
public func setGeometry(_ geometry: GeoPolyline)Parameters
geometryThe geometry.
-
Replaces polyline attributes.
Declaration
Swift
public func setAttributes(_ attributes: DataAttributes)Parameters
attributesThe attributes.