LuminaWebsite/assets/map/app.js
Maaxxs c869f93152 Map: share locations and pick them for calendar entries
- Map links (/map.php?karte=…&x=…&y=…&zoom=…&ort=…) open the region at that spot with a pin
- "Share location" button on the map: click a spot, optional name, copy the link
- Calendar entries: "Pick location on the map" opens the map in a window, "Use this location" stores the meeting point
- Map links in comments, captions and descriptions render as "📍 Region – Location" and do not count as external links for moderation

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 22:33:26 +02:00

12 lines
No EOL
440 B
JavaScript

/**
* Aion 2 Map Viewer - Application Entry Point
*/
document.addEventListener('DOMContentLoaded', () => {
const controller = new MapController();
// Vor init(), damit schon die erste Karte ihre Taktiken laedt.
new TacticController(controller);
// Orte teilen/auswaehlen - nach den Taktiken, damit beide auf Kartenwechsel reagieren
controller.locations = new LocationController(controller);
controller.init();
});