Repository navigation
Conversation
|
Note to self: |
e229d66 to
28735ab
Compare
This comment has been minimized.
This comment has been minimized.
28735ab to
515537d
Compare
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no new actionable defects were found. SummaryMoves feature clicks into
AI-assisted — Tool: Greptile; model: OpenAI/gpt-6.1-sol
|
515537d to
885413a
Compare
Feature clicks only worked on composed layers, each layer took four click parameters (
onClick,onLongClick,onDoubleClick,hitPadding) with aClickEventreceiver, and z-order always won over proximity on overlapping layers.This PR moves feature and location-puck click handling into
interactions { ... }inside the layer builders (building on #2009), introducesClickHandlerandFeatureClickHandlerfun interfaces with single event parameters, adds map-widecallbacks.featuresrows (supporting base-style layers and expanding-padding searches), and addsonUnhandledtodoubleClickandlongClick.A row's handler runs only when its layers have hits. Hits are grouped front-first, and each layer keeps its query order. Rows run front to back by their topmost layer, with map rows running before a layer's own row when tied.
Migration
onClick,onLongClick,onDoubleClick, andhitPaddingparameters onLayer,CircleLayer,FillLayer,FillExtrusionLayer,HeatmapLayer,LineLayer, andSymbolLayerwithinteractions { hitPadding = …; onClick { event -> … } }inside the layer builder.onClick,onLongClick,onDoubleClick, andhitPaddingparameters onBasicLocationPuckLayerandmaterial3.LocationPuckLayerwithinteractions { hitPadding = …; onClick { event -> … } }inside the builder; handlers receiveClickEventviaClickHandler.FeatureClickEventparameter viaFeatureClickHandlerinstead of aClickEventreceiver andList<Feature>parameter. Read matched features fromevent.hits(FeatureHit.layerId,FeatureHit.feature).FeaturesClickHandleris removed.click,doubleClick, andlongClickonEvent/onUnhandledbuilders now takeClickHandler?(source-compatible for lambda literals).Closes #1603. Refs #1611.
AI-assisted — Tool: Antigravity; model: google/Gemini 4 Neon