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

    Type Alias CustomGeoJSONModuleSerializableConfig<TSources>

    CustomGeoJSONModuleSerializableConfig: Omit<
        CustomGeoJSONModuleConfig<TSources>,
        "images",
    >

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

    Type Parameters

    It leaves out images, because no CustomGeoJSONImageData survives JSON. A replay passes them again.

    const saved = JSON.stringify({ ...custom.getConfig(), images: undefined });

    const state: CustomGeoJSONModuleSerializableConfig = JSON.parse(saved);
    custom.applyConfig({ ...state, images: markerImages });