Class IndoorRouteStyle
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe destination map marker of the resulting route.The drive map marker of the resulting route.getIndoorMarkerFor(IndoorLevelChangeFeatures feature, int deltaZ) Returns aMapMarkerfor a given indoor feature and direction.The color of polylines for indoor route sections.doubleThe width in pixels of polylines for indoor route sections.The start map marker of the resulting route.The walk map marker of the resulting route.voidsetDestinationMarker(MapMarker value) The destination map marker of the resulting route.voidsetDriveMarker(MapMarker value) The drive map marker of the resulting route.voidsetIndoorMarkersFor(IndoorLevelChangeFeatures feature, MapMarker upMarker, MapMarker downMarker, MapMarker exitMarker) Sets custom map markers for the given indoor feature.voidsetIndoorPolylineColor(Color value) The color of polylines for indoor route sections.voidsetIndoorPolylineWidth(double value) The width in pixels of polylines for indoor route sections.voidsetStartMarker(MapMarker value) The start map marker of the resulting route.voidsetWalkMarker(MapMarker value) The walk map marker of the resulting route.
-
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
MapMarkerfor 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
MapMarkerif 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.
-
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
The color of polylines for indoor route sections.
- Returns:
The color value. The default color is #48DAD0.
-
setIndoorPolylineColor
The color of polylines for indoor route sections.
- Parameters:
value-The color value. The default color is #48DAD0.
-
getStartMarker
The start map marker of the resulting route.
- Returns:
A
MapMarkerinstance representing the start of the route. If not set, the SDK displays a built-in default start marker.
-
setStartMarker
The start map marker of the resulting route.
- Parameters:
value-A
MapMarkerinstance representing the start of the route. If not set, the SDK displays a built-in default start marker.
-
getDestinationMarker
The destination map marker of the resulting route.
- Returns:
A
MapMarkerinstance representing the destination of the route. If not set, the SDK displays a built-in default destination marker.
-
setDestinationMarker
The destination map marker of the resulting route.
- Parameters:
value-A
MapMarkerinstance representing the destination of the route. If not set, the SDK displays a built-in default destination marker.
-
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
MapMarkerinstance representing the walk point of the route. If not set, the SDK displays a built-in default walk marker.
-
setWalkMarker
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
MapMarkerinstance representing the walk point of the route. If not set, the SDK displays a built-in default walk marker.
-
getDriveMarker
The drive map marker of the resulting route. It signals that a user should take a transport vehicle.
- Returns:
A
MapMarkerinstance representing the drive point of the route. If not set, the SDK displays a built-in default drive marker.
-
setDriveMarker
The drive map marker of the resulting route. It signals that a user should take a transport vehicle.
- Parameters:
value-A
MapMarkerinstance representing the drive point of the route. If not set, the SDK displays a built-in default drive marker.
-