Mvt Sprite Atlas
Mapbox sprite atlas: PNG bytes + JSON manifest. The PNG packs N icons into a single image and the manifest maps each icon name → its (x, y, width, height) sub-rectangle. The platform-specific iconFactory decodes the atlas once and crops per-icon on demand.
Standard Mapbox layout — a sprite endpoint exposes two files at the same URL stem:
<stem>.json(this manifest)<stem>.png(the packed image)
Construct via MvtSpriteAtlasLoader.load for the HTTP fetch path, or directly here when you have the bytes (test fixtures, bundled assets).
Properties
Functions
Construct an earth.worldwind.render.image.ImageSource.ImageFactory that, when run by the engine's image-decoder pipeline, yields just this icon's cropped sub-image. Returns null if name isn't in the manifest.
Drop the platform-decoded copy of this atlas from the MvtAtlasIconFactory's decode cache. Call when swapping atlases at runtime or under memory pressure; subsequent icon factories for this atlas will re-decode the PNG.