# JSIcon

> Module.getSymbol API를 생성합니다.

```javascript
var symbol = Module.getSymbol();
symbol.insertIcon(/*..parameter*/);
var icon = symbol.getIcon("ID");
```

## Function

### getId() → string

> 객체의 고유 명칭을 반환 합니다.

{% tabs %}
{% tab title="Information" %}

* Return
  * string: 객체 설명 문자열이 성공적으로 반환.
  * null: 객체가 null인 경우.
    {% endtab %}

{% tab title="Template" %}

```javascript
var strKey = object.getId();
```

{% endtab %}
{% endtabs %}

### getReferenceCount() → number

> JSIcon을 참조 중인 오브젝트 수를 반환합니다.

{% tabs %}
{% tab title="Information" %}

* Return
  * number(0 \~ ): 참조된 오브젝트 수.
  * -1: 반환 실패.
  * 실패 조건
    * JSIcon이 정상적으로 생성되지 않은 경우.
      {% endtab %}

{% tab title="Template" %}

```javascript
var icon = Module.getSymbol().getIcon("mapIcon");
var refCount = icon.getReferenceCount();
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://egiscorp.gitbook.io/xdworld-webgl-manual/introduce-1/object/jsicon.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
