don't de-select map feature when clicking on a street level photo

This commit is contained in:
Martin Raifer
2025-04-15 18:13:52 +02:00
parent 654c13ce08
commit f5eb4d2a51
9 changed files with 18 additions and 0 deletions
+8
View File
@@ -215,6 +215,11 @@ export function behaviorSelect(context) {
}
var targetDatum = lastEvent.target.__data__;
if (targetDatum === 0 && lastEvent.target.parentNode.__data__) {
// some targets (like markers of the street level photo
// layers) have the data bound to the parent node
targetDatum = lastEvent.target.parentNode.__data__;
}
var multiselectEntityId;
@@ -350,6 +355,9 @@ export function behaviorSelect(context) {
.selectedErrorID(datum.id)
.enter(modeSelectError(context, datum.id, datum.service));
} else if (datum.service === 'photo') {
// street level photo was selected:
// don't change mode and selection
} else {
// targeting nothing
context.selectedNoteID(null);