JSIcon
An icon object used as a texture. It is registered and used with the [JSSymbol](./jssymbol.md) class object, and each icon is set with a name upon registration. Icon names cannot be registered more th
Create a API with Module.getSymbol.
var symbol = Module.getSymbol();
symbol.insertIcon(/*..parameter*/);
var icon = symbol.getIcon("ID");Function
getId() → string
Returns the Key of the object.
- Return - string: Successful return of the object's Key string. 
- null: If the object is null. 
 
var strKey = object.getId();getReferenceCount() → number
Returns the number of objects referencing the icon.
- Return - number(0 ~ ): Successful return of the reference object count. 
- -1: If the texture of the icon registered with that name does not exist. 
 
var icon = Module.getSymbol().getIcon("mapIcon");
var refCount = icon.getReferenceCount();Last updated
