Class

DefaultRouteStopIconProvider

mapsindoors.directions.DefaultRouteStopIconProvider(options)

Represents a provider for route stop icons.
Constructor

# new DefaultRouteStopIconProvider(options)

Creates a new instance of RouteStopIconProvider.
Parameters:
Name Type Description
options Object The options for the icon provider.
fillColor string The fill color of the icon. Default is '#ef4444'.
numbered boolean Indicates whether the icon should be numbered. Default is true.
Implements:

Methods

# getImage(stopNumberopt) → {HTMLImageElement}

Gets the icon for the specified stop number.
Parameters:
Name Type Attributes Description
stopNumber number <optional>
The stop number.
Implements:
- The icon image.
HTMLImageElement