Skip to content
English
  • There are no suggestions because the search field is empty.

Wayfinder Overlay Class

This class is used to display floating icons and labels on the map. This includes amenity and transit icons as well as floating labels.

Generally you do not need to use this class, and so this information is provided mainly just for reference.

This class has the following properties and functions:

ctiveColor

property (r/w)

The active colour for this overlay

defaultColor

property (r/w)

The default colour for this overlay

hoverColor

property (r/w)

The hover colour for this overlay

setCurrentColor(color, shadowColor, transitionTime)

function

Directly sets the current colour for this overlay. It's parameters are as follows:

color: The new colour, as a {r, g, b} object

shadowColor: The shadow colour as a {r, g, b} object

transitionTime: How long the fade to the new colour should take