StoryMapJS API
    Preparing search index...

    Type Alias TileSourceFactory

    TileSourceFactory: (
        map_type: string,
        context: { createDefault: () => OlTileLayer; options: StorymapOptions },
    ) => OlLayer | OlTileLayer | OlSource | null | undefined

    Custom tile layer/source factory (see StorymapOptions.tile_source_factory). createDefault runs the built-in map_type handling, so a factory can decorate or delegate.

    May return any ol/layer/Layer (used as-is — this is what lets a third-party layer such as an Allmaps WarpedMapLayer render), a bare Source (wrapped in a TileLayer), or null/undefined to fall through to the default map_type handling.

    Type Declaration