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

    Type Alias ChargingStopIconConfig

    Icon display configuration for charging stops along the route.

    type ChargingStopIconConfig = {
        customIcons?: CustomImage[];
        mapping?: ChargingStopIconMapping;
    }
    Index
    customIcons?: CustomImage[]

    Optional custom icons to be added to the map style for charging stops.

    These icons can be referenced in the mapping configuration to customize the appearance of charging stop markers based on specific criteria.

    An entry's offsetX/offsetY shift that icon from the charging stop's coordinate. They only take effect when the same entry also provides an image; an entry naming an existing sprite icon by id alone ignores them.

    Mapping configuration, from charging stop objects to sprite image IDs.

    Defines how to select the appropriate icon for each charging stop based on its properties, such as charging speed or a custom mapping function. Does not necessary require custom icons to be provided. If not provided, default icons will be used.