Skip to Content
APIRoutesInterface: AnimationDrawingConfig

Interface: AnimationDrawingConfig

Parameters to configure the drawing of a animated route.

Properties

aheadPathStyle?

optional aheadPathStyle: RouteStyle;

The style for the route ahead of the icon representing the user.

Default Value

{ type: "Solid", color: "#0C0C0C"}


behindPathStyle?

optional behindPathStyle: RouteStyle;

The style for the route behind of the icon representing the user.

Default Value

{ type: "Solid", color: "#276EF1"}


polylineWidth?

optional polylineWidth: number;

The width in pixels of the route line on the map.

Default Value

10


routeIcon?

optional routeIcon: HTMLElement;

A HTML element that contain the icon used to represent the moving user. By default, the image should represent a user pointing north.


routeIconConfig?

optional routeIconConfig: RouteAnimationIconConfig;

Configuration for the route animation icon appearance. If provided, this will be used to generate the icon instead of the default one. This option is ignored if routeIcon is also provided.

Default Value

Uses default icon with blue background (#276EF1) and white arrow (#FFFFFF).
Last updated on