# mapLayerChange

CustomEvent.detail 타입: GeoMapLayerChangeEventDetail. 이벤트 이름은 대소문자를 구분합니다.

Canonical: https://chart.syidax.com/ko/docs/events/mapLayerChange/

<a id="definition"></a>

## 정의

이벤트 이름: `mapLayerChange`. 대소문자를 구분합니다. payload는 `CustomEvent<GeoMapLayerChangeEventDetail>`의 `detail`에서 읽습니다.

```javascript
chart.addEventListener('mapLayerChange', event => {
  console.log(event.detail); // GeoMapLayerChangeEventDetail
});
```

- [GeoMapLayerChangeEventDetail](https://chart.syidax.com/ko/docs/types/GeoMapLayerChangeEventDetail.md) — 타입 정의

<a id="related"></a>

## 관련 차트

- [sy-geo-map](https://chart.syidax.com/ko/docs/components/geo-map.md#event-mapLayerChange)
- [sy-flow-lines](https://chart.syidax.com/ko/docs/components/flow-lines.md#event-mapLayerChange)
