Sprites names and where to fetch
Sprites have a default expectancy of a png image.
png
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
fileType
ex.
"sprites": { "streets": "/sprites/streets/sprite@2x"} Copy
"sprites": { "streets": "/sprites/streets/sprite@2x"}
"sprites": { "streets": { "path": "/sprites/streets/sprite@2x", "fileType": "jpg" }} Copy
"sprites": { "streets": { "path": "/sprites/streets/sprite@2x", "fileType": "jpg" }}
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.
Parameters
path
: The path to the spritefileType
: The file type of the spriteex.
ex.