tweaks and fix of ray feature

This commit is contained in:
2026-01-25 15:52:46 +01:00
parent d97e26d881
commit 11bdb7009a
9 changed files with 147 additions and 349 deletions

View File

@@ -15,13 +15,20 @@
<button @click="$emit('delete', feature.id)" class="popup-btn danger">Delete</button>
</div>
<!-- LINE or RAY -->
<div v-else-if="type === 'line' || type === 'ray'">
<strong>{{ type === 'line' ? 'Line' : 'Ray' }}</strong>
<!-- LINE -->
<div v-else-if="type === 'line'">
<strong>Line</strong>
<div>Length: {{ formatDistance(feature.properties.length, imperialUnits) }}</div>
<div>Bearing: {{ formatBearing(feature.properties.bearing) }}</div>
<button @click="$emit('delete', feature.id)" class="popup-btn danger">Delete</button>
</div>
<!-- RAY -->
<div v-else-if="type === 'line' || type === 'ray'">
<strong>Ray</strong>
<div>Bearing: {{ formatBearing(feature.properties.bearing) }}</div>
<button @click="$emit('delete', feature.id)" class="popup-btn danger">Delete</button>
</div>
<!-- HISTORIC SITE -->
<div v-else-if="type === 'site'" class="site-popup">