Class LineDataAccessor

java.lang.Object
com.here.NativeBase
com.here.sdk.mapview.datasource.LineDataAccessor

public final class LineDataAccessor extends NativeBase

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.

  • Method Details

    • getGeometry

      @NonNull public GeoPolyline getGeometry()

      Gets polyline geometry.

      Returns:

      The line geometry.

    • getAttributes

      @NonNull public DataAttributesAccessor getAttributes()

      Gets polyline attributes accessor.

      Returns:

      The polyline attributes accessor.

    • setGeometry

      public void setGeometry(@NonNull GeoPolyline geometry)

      Replaces polyline geometry. Altitude of the vertices is ignored.

      Parameters:
      geometry -

      The geometry.

    • setAttributes

      public void setAttributes(@NonNull DataAttributes attributes)

      Replaces polyline attributes.

      Parameters:
      attributes -

      The attributes.