Properties:
Name |
Type |
Attributes |
Description |
mapsIndoors |
MapsIndoors
|
|
Sets the mapsindoors instance. |
visible |
boolean
|
<optional>
|
Sets the initial visibility of the route. |
strokeColor |
string
|
<optional>
|
Sets the color that the route will be displayed with. The color property is specified a css color value. See https://developer.mozilla.org/en-US/docs/Web/CSS/color_value |
strokeOpacity |
number
|
<optional>
|
Sets the opacity of the route. The opacity property is specified as a value between 0 and 1. See https://developer.mozilla.org/en-US/docs/Web/CSS/opacity |
strokeWeight |
number
|
<optional>
|
Sets the weight of the route in pixels. |
fitBounds |
boolean
|
<optional>
|
When fitBounds is set to true, the map's viewport will be fitted to the bounds of the rendered route. |
defaultRouteStopIconProvider |
RouteStopIconProvider
|
<optional>
|
The default icon provider for route stop icons. |
Example
//Default values
{
visible: true,
strokeColor: '#4caf50',
strokeOpacity: 1,
strokeWeight: 4,
zIndex: 999,
fitBounds: true
defaultRouteStopIconProvider: new mapsindoors.directions.DefaultRouteStopIconProvider()
}