IndoorRouteStyle (API Reference)
Class IndoorRouteStyle
Represents a style of the indoor route. Contains information about route colors and widths.
Optionally, this style allows to set MapMarker instances that can be used for
specific route elements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe destination map marker of the resulting route.The drive map marker of the resulting route.getIndoorMarkerFor(IndoorFeatures feature, int deltaZ) Returns aMapMarkerfor a given indoor feature and the number of levels to change.The color of polylines for indoor route sections.doubleThe width in pixels of polylines for indoor route sections.The color of polylines for outdoor route sections.doubleThe width in pixels of polylines for outdoor 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(IndoorFeatures feature, MapMarker upMarker, MapMarker downMarker, MapMarker exitMarker) Sets 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.voidsetOutdoorPolylineColor(Color value) The color of polylines for outdoor route sections.voidsetOutdoorPolylineWidth(double value) The width in pixels of polylines for outdoor 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
Returns a
MapMarkerfor a given indoor feature and the number of levels to change. By default, no map markers are provided.- 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 result
MapMarker, if it was set.
-
setIndoorMarkersFor
public void setIndoorMarkersFor(@NonNull IndoorFeatures feature, @Nullable MapMarker upMarker, @Nullable MapMarker downMarker, @Nullable MapMarker exitMarker) Sets map markers for the given indoor feature.
-
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.
-
getOutdoorPolylineWidth
public double getOutdoorPolylineWidth()The width in pixels of polylines for outdoor route sections.
- Returns:
The width in pixels. The default width is 20 pixel
-
setOutdoorPolylineWidth
public void setOutdoorPolylineWidth(double value) The width in pixels of polylines for outdoor route sections.
- Parameters:
value-The width in pixels. The default width is 20 pixel
-
getOutdoorPolylineColor
The color of polylines for outdoor route sections.
- Returns:
The color value. The default color is #00908
-
setOutdoorPolylineColor
The color of polylines for outdoor route sections.
- Parameters:
value-The color value. The default color is #00908
-
getStartMarker
The start map marker of the resulting route.
- Returns:
A
MapMarkerinstance representing the start of the route. By default, no map marker is provided.
-
setStartMarker
The start map marker of the resulting route.
- Parameters:
value-A
MapMarkerinstance representing the start of the route. By default, no map marker is provided.
-
getDestinationMarker
The destination map marker of the resulting route.
- Returns:
A
MapMarkerinstance representing the destination of the route. By default, no map marker is provided
-
setDestinationMarker
The destination map marker of the resulting route.
- Parameters:
value-A
MapMarkerinstance representing the destination of the route. By default, no map marker is provided
-
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. By default, no map marker is provided.
-
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. By default, no map marker is provided.
-
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. By default, no map marker is provided.
-
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. By default, no map marker is provided.
-