Style: styling tweaks to plantnet flow

This commit is contained in:
Pieter Vander Vennet 2023-09-21 12:13:42 +02:00
parent 580b58e86a
commit 5da56d8fa5
5 changed files with 8 additions and 11 deletions

View file

@ -25,7 +25,7 @@
export let layer: LayerConfig;
export let linkable = true;
let isLinked = false;
let isLinked = Object.values(tags.data).some(v => image.pictureUrl === v);
const t = Translations.t.image.nearby;
const c = [lon, lat];
@ -35,6 +35,7 @@
date: new Date(image.date)
});
let distance = Math.round(GeoOperations.distanceBetween([image.coordinates.lng, image.coordinates.lat], c));
$: {
const currentTags = tags.data;
const key = Object.keys(image.osmTags)[0];