Class IndoorRouteStyle

java.lang.Object
com.here.NativeBase
com.here.sdk.venue.routing.IndoorRouteStyle

public final class IndoorRouteStyle extends NativeBase

Represents a style of the indoor route. Contains information about route colors, widths, and markers. Markers set through this style override the SDK's built-in defaults. Any marker left unset will automatically use the SDK's default icon when the route is rendered.

  • Constructor Details

    • IndoorRouteStyle

      public IndoorRouteStyle()

      Creates a new instance of this class.

  • Method Details

    • getIndoorMarkerFor

      @Nullable public MapMarker getIndoorMarkerFor(@NonNull IndoorLevelChangeFeatures feature, int deltaZ)

      Returns a MapMarker for a given indoor feature and direction. If no custom marker has been set for the given feature and direction, returns null. When null, the SDK uses a built-in default icon during route rendering.

      Parameters:
      feature -

      An indoor feature.

      deltaZ -

      A number of levels to change, positive for up, negative for down. In the case of 0, the method returns an exit map marker.

      Returns:

      The custom MapMarker if set, or null if the SDK default should be used.

    • setIndoorMarkersFor

      public void setIndoorMarkersFor(@NonNull IndoorLevelChangeFeatures feature, @Nullable MapMarker upMarker, @Nullable MapMarker downMarker, @Nullable MapMarker exitMarker)

      Sets custom map markers for the given indoor feature. Pass null for any direction to let the SDK use its built-in default icon for that direction. Each direction (up, down, exit) is resolved independently — you can override only the ones you need.

      Parameters:
      feature -

      An indoor feature.

      upMarker -

      A MapMarker to go up. Pass null to use SDK default.

      downMarker -

      A MapMarker to go down. Pass null to use SDK default.

      exitMarker -

      A MapMarker to exit the indoor feature. Pass null to use SDK default.

    • getIndoorPolylineWidth

      public double getIndoorPolylineWidth()

      The width in pixels of polylines for indoor route sections.

      Returns:

      The width in pixels. Default value is 15 pixels.

    • setIndoorPolylineWidth

      public void setIndoorPolylineWidth(double value)

      The width in pixels of polylines for indoor route sections.

      Parameters:
      value -

      The width in pixels. Default value is 15 pixels.

    • getIndoorPolylineColor

      @NonNull public Color getIndoorPolylineColor()

      The color of polylines for indoor route sections.

      Returns:

      The color value. The default color is #48DAD0.

    • setIndoorPolylineColor

      public void setIndoorPolylineColor(@NonNull Color value)

      The color of polylines for indoor route sections.

      Parameters:
      value -

      The color value. The default color is #48DAD0.

    • getStartMarker

      @Nullable public MapMarker getStartMarker()

      The start map marker of the resulting route.

      Returns:

      A MapMarker instance representing the start of the route. If not set, the SDK displays a built-in default start marker.

    • setStartMarker

      public void setStartMarker(@Nullable MapMarker value)

      The start map marker of the resulting route.

      Parameters:
      value -

      A MapMarker instance representing the start of the route. If not set, the SDK displays a built-in default start marker.

    • getDestinationMarker

      @Nullable public MapMarker getDestinationMarker()

      The destination map marker of the resulting route.

      Returns:

      A MapMarker instance representing the destination of the route. If not set, the SDK displays a built-in default destination marker.

    • setDestinationMarker

      public void setDestinationMarker(@Nullable MapMarker value)

      The destination map marker of the resulting route.

      Parameters:
      value -

      A MapMarker instance representing the destination of the route. If not set, the SDK displays a built-in default destination marker.

    • getWalkMarker

      @Nullable public MapMarker getWalkMarker()

      The walk map marker of the resulting route. It signals that a user should leave their transport vehicle and continue on foot.

      Returns:

      A MapMarker instance representing the walk point of the route. If not set, the SDK displays a built-in default walk marker.

    • setWalkMarker

      public void setWalkMarker(@Nullable MapMarker value)

      The walk map marker of the resulting route. It signals that a user should leave their transport vehicle and continue on foot.

      Parameters:
      value -

      A MapMarker instance representing the walk point of the route. If not set, the SDK displays a built-in default walk marker.

    • getDriveMarker

      @Nullable public MapMarker getDriveMarker()

      The drive map marker of the resulting route. It signals that a user should take a transport vehicle.

      Returns:

      A MapMarker instance representing the drive point of the route. If not set, the SDK displays a built-in default drive marker.

    • setDriveMarker

      public void setDriveMarker(@Nullable MapMarker value)

      The drive map marker of the resulting route. It signals that a user should take a transport vehicle.

      Parameters:
      value -

      A MapMarker instance representing the drive point of the route. If not set, the SDK displays a built-in default drive marker.