This is the documentation of version 0.62.0. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias FlyoverMarkerImage

    FlyoverMarkerImage:
        | { type: "arrow" } & SVGIconStyleOptions
        | { image: NonNullable<CustomImage["image"]>; type: "custom" }

    The image that rides the route, drawn pointing up: the flight turns it to face the road.

    • arrow — the plugin's own arrow, recoloured with the SDK's SVG icon options. Its fill defaults to the SDK's default route outline colour, not a theme's accent, and its outline to white.
    • custom — yours: a URL, raw SVG markup, a data URI or a loaded <img>, as for any SDK custom image. A URL on another origin needs CORS, since the image becomes a WebGL texture.