MLMapEventMap
Defined in: packages/core/src/components/ml-map.ts:92
Every event <ml-map> dispatches, by name, typed with its detail. All of
them bubble.
Remarks
Section titled “Remarks”Drives the typed addEventListener overloads on MLMap and the
React 19 onml-map:* props in @maplibre-yaml/core/react. A test pins its
keys to the new CustomEvent("ml-map:…") calls in this file, so the map
cannot drift from what the element actually fires.
Properties
Section titled “Properties”| Property | Type | Defined in |
|---|---|---|
ml-map:camera-fit | CustomEvent<{ bounds: Bounds; source: string; }> | packages/core/src/components/ml-map.ts:109 |
ml-map:error | CustomEvent<MLMapErrorDetail> | packages/core/src/components/ml-map.ts:94 |
ml-map:image-error | CustomEvent<{ name: string; url: string; }> | packages/core/src/components/ml-map.ts:106 |
ml-map:layer-added | CustomEvent<{ layerId: string; }> | packages/core/src/components/ml-map.ts:96 |
ml-map:layer-click | CustomEvent<{ feature: any; layerId: string; lngLat: LngLat; }> | packages/core/src/components/ml-map.ts:101 |
ml-map:layer-data-error | CustomEvent<{ error: Error; layerId: string; }> | packages/core/src/components/ml-map.ts:100 |
ml-map:layer-data-loaded | CustomEvent<{ featureCount: number; layerId: string; }> | packages/core/src/components/ml-map.ts:99 |
ml-map:layer-data-loading | CustomEvent<{ layerId: string; }> | packages/core/src/components/ml-map.ts:98 |
ml-map:layer-hover | CustomEvent<{ feature: any; layerId: string; lngLat: LngLat; }> | packages/core/src/components/ml-map.ts:102 |
ml-map:layer-removed | CustomEvent<{ layerId: string; }> | packages/core/src/components/ml-map.ts:97 |
ml-map:layer-visibility | CustomEvent<{ layerId: string; visible: boolean; }> | packages/core/src/components/ml-map.ts:108 |
ml-map:load | CustomEvent<Record<string, never>> | packages/core/src/components/ml-map.ts:93 |
ml-map:loading | CustomEvent<{ url: string; }> | packages/core/src/components/ml-map.ts:95 |
ml-map:marker-click | CustomEvent<{ at: [number, number]; index: number; }> | packages/core/src/components/ml-map.ts:104 |
ml-map:marker-icon-error | CustomEvent<{ icon: string; index: number; }> | packages/core/src/components/ml-map.ts:105 |
ml-map:markers-added | CustomEvent<{ count: number; }> | packages/core/src/components/ml-map.ts:103 |
ml-map:parameter-change | CustomEvent<{ key: string; value: unknown; }> | packages/core/src/components/ml-map.ts:107 |