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

    Type Alias RoutingModuleSerializableConfig

    RoutingModuleSerializableConfig: Omit<RoutingModuleConfig, "chargingStops"> & {
        chargingStops?: Omit<ChargingStopsConfig, "icon"> & {
            icon?: Omit<ChargingStopIconConfig, "customIcons" | "mapping"> & {
                customIcons?: SerializableCustomImage[];
                mapping?: Extract<ChargingStopIconMapping, { basedOn: "chargingSpeed" }>;
            };
        };
    }

    The part of a RoutingModuleConfig that survives JSON, for saving getConfig() and replaying it with applyConfig().

    It leaves out what JSON cannot carry, which a replay adds back in code:

    • chargingStops.icon.mapping with basedOn: 'custom', whose fn is a function.
    • chargingStops.icon.customIcons[].image as an HTMLImageElement — see SerializableCustomImage.