v0.24.0 #648
gabbopalma
announced in
Announcements
v0.24.0
#648
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
0.24.0
This release restores the feature id and makes the
Annotationparameter nullable for all feature interaction callbacks (tap/drag/hover).This unblocks interaction with style-layer features not managed by annotation managers (i.e. added via
addLayer*/ style APIs).Breaking Changes
Tap:
OnFeatureInteractionCallback→(Point<double> point, LatLng coordinates, String id, String layerId, Annotation? annotation).Drag:
OnFeatureDragCallback→(Point<double> point, LatLng origin, LatLng current, LatLng delta, String id, Annotation? annotation, DragEventType eventType).Hover:
OnFeatureHoverCallback→Point<double> point, LatLng coordinates, String id, Annotation? annotation, HoverEventType eventType).Update existing listeners: The short‑lived 0.23.0-only signatures (without
id) are removed.annotationisnull(unmanagedmeans sources/layers you add via style APIs likeaddGeoJsonSource+addSymbolLayer).Annotationobject.Reasoning
In 0.23.0 the move to annotation objects inadvertently dropped interaction for unmanaged style features. Reintroducing
id(and makingannotationnullable) normalizes all three interaction paths without creating phantom annotation wrappers.Migration Example
Before (0.23.0):
After (>=0.24.0):
Refactor / Quality
onMapClick(degenerate bbox + interactive layer filter) to surface features inserted via style APIs (unmanaged style-layer features) inonFeatureTapped(previously skipped; returned now withid,layerIdandannotation = null) (fix: Feature callbacks and new version #646).style.height = '100%'to the registered div (prevents occasional zero-height layout issues in flexible parents) (Fixes #640 #641)Full Changelog: v0.23.0...v0.24.0
This discussion was created from the release v0.24.0.
Beta Was this translation helpful? Give feedback.
All reactions