Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapViewImageCache

Cache images wrapped into ImageItems for a MapView.

remarks

An image may have multiple names in a theme, the MapViewImageCache maps 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 MapViewImageCache uses a global ImageCache to actually store (and generate) the image data.

Hierarchy

  • MapViewImageCache

Index

Methods

addImage

clear

  • clear(): void

findImageByName

  • findImageByName(name: string): ImageItem | undefined

removeImage

  • removeImage(name: string): boolean

Generated using TypeDoc