feat(views/geomap): add open location to blank item as well

This commit is contained in:
Elian Doran
2025-07-07 17:21:55 +03:00
parent 8102172557
commit 6509acd6ee
4 changed files with 17 additions and 28 deletions

View File

@@ -294,17 +294,6 @@ export default class GeoView extends ViewMode<MapData> {
this.#changeState(State.Normal);
}
openGeoLocationEvent({ noteId, event }: EventData<"openGeoLocation">) {
const marker = this.currentMarkerData[noteId];
if (!marker) {
return;
}
const latLng = this.currentMarkerData[noteId].getLatLng();
const url = `geo:${latLng.lat},${latLng.lng}`;
link.goToLinkExt(event, url);
}
deleteFromMapEvent({ noteId }: EventData<"deleteFromMap">) {
moveMarker(noteId, null);
}