fix(earthquakes): keep quake discs out of pick ownership

Registering quake discs as pick owners changed how other layers read a click
anywhere over a quake: sibling layers yield to owned picks before their own
card hit-tests and treat an owned pick as not empty space. A fire card drawn
over a large quake could not be clicked and the quake beneath was selected,
radio near-miss taps found nothing, and a followed aircraft kept its camera
while the quake took the shared selection.

Leave the discs unregistered, as drone airspace and fire perimeters do, so a
disc reads as empty space to other layers. The quake handler finds its own
discs by draw set, reads the click's resolved hit, and yields when another
layer's card or label is the topmost overlay entry. Another layer's object
under the quake card or a label takes the click before either is read, so a
click on the card over an aircraft does not also open the USGS page. A feed
refresh inside the contour window no longer asks for a frame while the disc
is off screen.
This commit is contained in:
manjunath22466 committed 2026-11-16 19:47:30 +05:30
1 parent 9f698779be
commit b2bc15e763
4 files changed
+144 -25

No files matched your search

+6
View File
@@ -1863,6 +1863,12 @@ painted with a gradient fading to the outer circle and wavy contour lines
clicks, picking, context, focus, the opener, the painter and the translator by
injection (`src/app/layers/earthquakes.js`); without input and picking it draws
and takes no clicks, and its labels stay non-interactive.
Quake discs are deliberately not registered in the pick-ownership registry,
like drone airspace and fire perimeters: sibling layers read a disc as empty
space, so their cards, near-miss taps and deselection work over a quake as
before. When another layer's card or label is painted over a disc (a fire card
on a large quake), the quake handler yields to it rather than selecting the
quake beneath.
Air quality (`./layers/air-quality`) draws its station discs as one renderer
draw set of ground-clamped fills and reads the view through the camera port; it