TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ChargingStopIconMapping

    ChargingStopIconMapping:
        | { basedOn: "chargingSpeed"; value: ChargingSpeedIconMapping }
        | { basedOn: "custom"; fn: (stop: ChargingStop) => string }

    Mapping between charging stop properties and the corresponding icon sprite IDs.

    Type Declaration

    • { basedOn: "chargingSpeed"; value: ChargingSpeedIconMapping }
      • basedOn: "chargingSpeed"

        Determines the icon based on the charging speed of the charging connector.

      • value: ChargingSpeedIconMapping

        Mapping from charging speeds to sprite image IDs.

    • { basedOn: "custom"; fn: (stop: ChargingStop) => string }
      • basedOn: "custom"

        Determines the icon based on a custom function.

      • fn: (stop: ChargingStop) => string

        The function which maps a ChargingStop to a sprite image ID.