import SpriteSource from "@arcgis/core/layers/support/SpriteSource.js";const SpriteSource = await $arcgis.import("@arcgis/core/layers/support/SpriteSource.js");- Since
- ArcGIS Maps SDK for JavaScript 5.0
The sprite source returned from the VectorTileLayer.setSpriteSource() method.
SpriteSource holds the resources needed to render patterned (textured) markers, lines and polygons. These resources are both an image and metrics (JSON). Each element is identified by a unique name
Properties
Methods
| Method | Signature | Class |
|---|---|---|
getSpriteInfo(name: string): SpriteInfo | null | undefined | |
getSpriteInfo
Method
- Signature
-
getSpriteInfo (name: string): SpriteInfo | null | undefined
- Since
- ArcGIS Maps SDK for JavaScript 4.25
Returns the sprite info for the given sprite.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| name | Name of the sprite to get the information for. | |
- Returns
- SpriteInfo | null | undefined
Sprite info containing the dimension and pixel ratio of the image and its location within the sprite image.
Type definitions
GetSpriteInfo
deprecated Type definition
Returns information for the specified sprite.
- Type
- SpriteSource["getSpriteInfo"]