s2maps-gpu - v0.18.0
    Preparing search index...

    Type Alias Sprites

    Sprites: Record<string, string | { fileType?: ImageExtensions; path: string }>

    Sprites names and where to fetch

    Sprites have a default expectancy of a png image.

    If you want to use a different format, you can use an object instead of a string.

    See UrlMap to use your own scheme/protocol for the URL path.

    • path: The path to the sprite
    • fileType: The file type of the sprite

    ex.

    "sprites": {
    "streets": "/sprites/streets/sprite@2x"
    }

    ex.

    "sprites": {
    "streets": {
    "path": "/sprites/streets/sprite@2x",
    "fileType": "jpg"
    }
    }