up demo by what

This commit is contained in:
Tykayn 2025-10-10 17:56:50 +02:00 committed by tykayn
parent 26bfe4ae36
commit 2238380e80
7 changed files with 43 additions and 13 deletions

View file

@ -136,7 +136,7 @@
// Get event properties
const properties = event.properties;
const coordinates = event.geometry.coordinates;
const label = properties.label || 'Unnamed Event';
const label = properties.name || properties.title || properties.short_description || properties.label || 'Unnamed Event';
const what = properties.what || 'unknown';
const timestamp = event.timestamp ? new Date(event.timestamp) : new Date();
const formattedDate = timestamp.toLocaleString();