Add an image from an URL and optionally start loading it, storing the resulting TexturizableImage in a ImageItem.
Image name.
Image URL.
Optional. Pass true to start loading the image in the background.
The resulting ImageItem or a promise for it if it starts loading.
Add an image storing it in a ImageItem.
Unique image name.
The image to add.
The resulting ImageItem
Remove all ImageItems from the cache.
Number of images removed.
Remove the image with this name from the cache.
Name of the image.
true if item has been removed.
Generated using TypeDoc
Cache images wrapped into ImageItems for a MapView.
An image may have multiple names in a theme, the
MapViewImageCachemaps different names to the same image URL, and allows to share the image by URL to different MapViews. Within a MapView instance, the (optional) name is unique, so registering multiple images with the same name is invalid.The
MapViewImageCacheuses a global ImageCache to actually store (and generate) the image data.