fix(input): no double-click follow or zoom on the map

The globe viewer's own double-click tracked a picked entity with a
position or zoomed to one without. Layers moving onto the draw port had it
re-created one by one (data/stockFollow.js); following is a click in GEV,
so the viewer's handler is removed where the viewer is made and every
re-creation goes: earthquakes, cyclones, air quality, news, perimeters,
drone airspace, ghost maps, places, radio, cables, CCTV, ALPR, launches,
bikeshare, Local ADS-B, installations, directions, trails, data packs,
annotations, the library's view and local GeoJSON. The Cockpit's own
double-click and the draw tool's finishing double-click stay.
This commit is contained in:
Sameh Khamis committed 2026-11-14 09:10:14 -08:00
1 parent bb2d22dbce
commit b86014244d
69 files changed
+94 -2797

No files matched your search

-10
View File
@@ -1,6 +1,5 @@
import { toRadians } from '../../geo/vector.js';
import { cameraOf } from '../../render/rendererOf.js';
import { followOnDoubleClick } from '../../data/stockFollow.js';
export function createInteraction({ state, parts, inputFor }) {
function beginInteraction(viewer) {
@@ -11,15 +10,6 @@ export function createInteraction({ state, parts, inputFor }) {
if (!record?.reference) return;
flyToReference(viewer, record.reference);
});
// A double-click follows a landing point or reference and zooms to a
// cable, as the default renderer did for their entities.
state._stockFollow = followOnDoubleClick({
viewer,
inputFor,
name: 'submarine-cables',
enabled: () => state._enabled,
targetFor: (hit) => parts.rendering.followTargetFor(hit),
});
}
/**