You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> We apologize for the quick change in 0.24.0: this version definitively stabilizes the signatures of feature interaction callbacks.
9
+
10
+
This release restores the **feature id** and makes the `Annotation` parameter **nullable** for all feature interaction callbacks (`tap` / `drag` / `hover`).\
11
+
This unblocks interaction with style-layer features not managed by annotation managers (i.e. added via `addLayer*` / style APIs).
***Update existing listeners**: The short‑lived 0.23.0-only signatures (without `id`) are removed.
21
+
* For unmanaged style layer features `annotation` is `null` (`unmanaged` means sources/layers you add via style APIs like `addGeoJsonSource` + `addSymbolLayer`).
22
+
* For managed annotations it is the `Annotation` object.
23
+
24
+
### Reasoning
25
+
In 0.23.0 the move to annotation objects inadvertently dropped interaction for unmanaged style features. Reintroducing `id` (and making `annotation` nullable) normalizes all three interaction paths without creating phantom annotation wrappers.
* (web) Refactored `onMapClick` (degenerate bbox + interactive layer filter) to surface features inserted via style APIs (unmanaged style-layer features) in `onFeatureTapped` (previously skipped; returned now with `id`, `layerId` and `annotation = null`) (#646).
43
+
* (web) Ensure map container stretches vertically by adding `style.height = '100%'` to the registered div (prevents occasional zero-height layout issues in flexible parents) (#641)
> We apologize for the quick change in 0.24.0: this version definitively stabilizes the signatures of feature interaction callbacks.
4
+
5
+
This release restores the **feature id** and makes the `Annotation` parameter **nullable** for all feature interaction callbacks (`tap` / `drag` / `hover`).\
6
+
This unblocks interaction with style-layer features not managed by annotation managers (i.e. added via `addLayer*` / style APIs).
***Update existing listeners**: The short‑lived 0.23.0-only signatures (without `id`) are removed.
16
+
* For unmanaged style layer features `annotation` is `null` (`unmanaged` means sources/layers you add via style APIs like `addGeoJsonSource` + `addSymbolLayer`).
17
+
* For managed annotations it is the `Annotation` object.
18
+
19
+
### Reasoning
20
+
In 0.23.0 the move to annotation objects inadvertently dropped interaction for unmanaged style features. Reintroducing `id` (and making `annotation` nullable) normalizes all three interaction paths without creating phantom annotation wrappers.
* (web) Refactored `onMapClick` (degenerate bbox + interactive layer filter) to surface features inserted via style APIs (unmanaged style-layer features) in `onFeatureTapped` (previously skipped; returned now with `id`, `layerId` and `annotation = null`) (#646).
38
+
* (web) Ensure map container stretches vertically by adding `style.height = '100%'` to the registered div (prevents occasional zero-height layout issues in flexible parents) (#641)
0 commit comments