---
title: "CompositionEventInit | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Interface CompositionEventInit

interface CompositionEventInit {  
    [bubbles](#bubbles)?: boolean;  
    [cancelable](#cancelable)?: boolean;  
    [composed](#composed)?: boolean;  
    [data](#data)?: string;  
    [detail](#detail)?: number;  
    [view](#view)?: [Window](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Window/) | null;  
    [which](#which)?: number;  
}

#### Hierarchy ([View Summary](https://docs.maptiler.com/sdk-js/api-reference/hierarchy/#Externals.CompositionEventInit))

-   [UIEventInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.UIEventInit/)
    -   CompositionEventInit

##### Index

### Properties[](#properties)

[bubbles?](#bubbles) [cancelable?](#cancelable) [composed?](#composed) [data?](#data) [detail?](#detail) [view?](#view) [which?](#which)

## Properties[](#properties-1)

### `Optional`bubbles[](#bubbles)

bubbles?: boolean

Inherited from [UIEventInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.UIEventInit/).[bubbles](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.UIEventInit/#bubbles)

### `Optional`cancelable[](#cancelable)

cancelable?: boolean

Inherited from [UIEventInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.UIEventInit/).[cancelable](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.UIEventInit/#cancelable)

### `Optional`composed[](#composed)

composed?: boolean

Inherited from [UIEventInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.UIEventInit/).[composed](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.UIEventInit/#composed)

### `Optional`data[](#data)

data?: string

### `Optional`detail[](#detail)

detail?: number

Inherited from [UIEventInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.UIEventInit/).[detail](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.UIEventInit/#detail)

### `Optional`view[](#view)

view?: [Window](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Window/) | null

Inherited from [UIEventInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.UIEventInit/).[view](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.UIEventInit/#view)

### `Optional`which[](#which)

which?: number

#### Deprecated[](#deprecated)

Inherited from [UIEventInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.UIEventInit/).[which](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.UIEventInit/#which)
