LuminaWebsite/assets/map
Maaxxs 5aaf44eaec Consilium Elyseum: allied legions get their own view - own raids, calendar entries, member tab and shared live map sessions
Asked for: alliances ("Consilium Elyseum") with their own view, a member-list tab with the allied legions and their
members, an own raid area, a calendar that shows them only alliance entries, and live map sessions the legion can
share with them - watching only, or drawing only with an extra permission. There is one Discord role "Consilium
Elyseum" for all allies, so which legion each ally belongs to is stored on the website.

- Permissions consilium.view / consilium.draw / consilium.manage. An account with consilium.view but without
  dashboard.view is a guest of the Consilium (consilium_only(), sql_is_consilium_only()) and sees only the alliance
  area; raids, calendar and map stay restricted even with extra rights like raids.view or map.view.
- includes/consilium.php; consilium.php is the allies' start page instead of the dashboard (next raids and entries,
  legions, running shared map sessions); admin/consilium.php: setup hints, allied legions, member assignment.
  users.consilium_legion_id, table consilium_legions (schema 69); allies pick their legion under Mein Profil.
- Members: new tab "Consilium Elyseum" (legions with their members), the only tab allies see. Legion-only lists
  (dues, Lumipunkte, member pickers, raid and activity points) leave allies out.
- Raids: two areas, legion and Consilium, told apart by the Discord channel ("Consilium-Raids" under Verwaltung ->
  Discord-Bot, settings.consilium_raid_channel; the bot API returns channel_id). Allies only see and sign up for
  Consilium raids, which give no Lumipunkte; raids created in the Consilium area are posted to its channel.
- Calendar: audience "Consilium Elyseum". Allies see only those entries and the Consilium raids (also in their iCal
  subscription), their own entries are always Consilium entries; the public calendar shows no Consilium raids; the
  legion sees them marked with 🤝.
- Map: whoever may edit a public tactic shares its running live session with the Consilium (consilium_share, logged).
  The share lives in the bot's live relay and only for that session: it ends with "Freigabe beenden" or 60 s after
  the last legion member left; making the tactic private or deleting it ends it as well. Allies see only running
  shared sessions under Karte (and on their start page), join and watch; with consilium.draw they add strokes,
  areas, points and text - no figures, nothing moved, erased or undone, no tactics, steps, copies or history.
  Enforced in tactics_api.php (guest branch: shared tactics only, only live_token and shape_create) and in the relay
  (guest tickets, event whitelist, guests are disconnected when the share ends). Needs the bot update (api.py,
  database/db.py, live_tactics.py).
- Navigation, privacy page, patch note, README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 01:36:49 +02:00
..
dungeons Raidplaner: tactics on the maps of all dungeons and raids, with tokens that move from step to step 2026-09-26 12:45:00 +02:00
js Consilium Elyseum: allied legions get their own view - own raids, calendar entries, member tab and shared live map sessions 2026-09-28 01:36:49 +02:00
previews Raidplaner: tactics on the maps of all dungeons and raids, with tokens that move from step to step 2026-09-26 12:45:00 +02:00
scripts Raidplaner: tactics on the maps of all dungeons and raids, with tokens that move from step to step 2026-09-26 12:45:00 +02:00
.htaccess Karte: replace the tactical map with the interactive map viewer 2026-09-21 06:54:17 +02:00
app.js Map: share locations and pick them for calendar entries 2026-09-21 22:33:26 +02:00
index.html Raidplaner: tactics on the maps of all dungeons and raids, with tokens that move from step to step 2026-09-26 12:45:00 +02:00
README.md Karte: replace the tactical map with the interactive map viewer 2026-09-21 06:54:17 +02:00
styles.css Consilium Elyseum: allied legions get their own view - own raids, calendar entries, member tab and shared live map sessions 2026-09-28 01:36:49 +02:00

Aion 2 Interactive Map Viewer (SecondTry)

A modern, multi-map interactive viewer for Aion 2 maps from interactivemap.app.

Features

  • Multi-map support: View all available Aion 2 maps with easy map switching
  • Tile-based rendering: Efficient canvas rendering with tile caching and preloading
  • Marker overlay: Display thousands of markers with category filtering
  • Zoom & pan: Smooth navigation with mouse wheel, drag, and keyboard shortcuts
  • Category filters: Toggle visibility of marker categories by group or individually
  • Tooltips: Hover over markers to see details

Architecture

This implementation follows MVC (Model-View-Controller) pattern:

SecondTry/
├── index.html          # Main HTML page
├── styles.css          # Stylesheet with CSS variables
├── app.js              # Application entry point
├── js/
│   ├── config.js       # Configuration constants
│   ├── models/
│   │   └── MapData.js  # Data model for maps and markers
│   ├── services/
│   │   ├── TileService.js    # Tile loading and caching
│   │   └── MarkerService.js  # Marker data management
│   ├── views/
│   │   └── MapView.js        # Canvas rendering
│   └── controllers/
│       └── MapController.js  # Main application controller
├── scripts/
│   ├── download_all_maps.py       # Download tiles for all maps
│   ├── download_marker_icons.py   # Download marker icon graphics
│   └── extract_all_markers.py     # Extract markers for all maps
└── data/
    ├── maps.json       # List of all available maps (generated by download script)
    ├── icons/          # Marker icon graphics (downloaded)
    │   ├── icon-poi.png
    │   ├── aldelle-village.png
    │   └── ...
    ├── tiles/          # Per-map tile directories
    │   ├── verteron/
    │   ├── elysea/
    │   └── ...
    └── markers/        # Per-map marker JSON files
        ├── verteron_markers.json
        ├── elysea_markers.json
        └── ...

Setup

1. Download Map Data

Run the Python scripts to download tiles and extract markers:

# Download all map tiles (zoom levels 2-6)
python scripts/download_all_maps.py

# Extract markers for all maps
python scripts/extract_all_markers.py

# Download marker icon graphics
python scripts/download_marker_icons.py

# Or for a specific map only
python scripts/download_all_maps.py --map verteron
python scripts/extract_all_markers.py --map verteron

The download script automatically generates data/maps.json which lists all available maps. This local file is used by the viewer instead of calling the remote API directly (avoids CORS issues).

2. Serve the Viewer

The viewer requires a local web server due to CORS restrictions on fetch requests:

# Using Python's built-in HTTP server
cd SecondTry
python -m http.server 8080

# Or using Node.js
npx serve . -p 8080

Then open http://localhost:8080 in your browser.

Controls

Action Control
Zoom In Mouse wheel up, + key, or + button
Zoom Out Mouse wheel down, - key, or − button
Pan Click and drag
Reset View 0 key or ⟲ button
Switch Map Use the dropdown selector at top
Filter Categories Checkboxes in bottom-left panel

Data Format

Tile Manifest (tile_manifest.json)

{
    "tiles": ["2_0_0", "2_0_1", "3_1_2", ...]
}

Marker Data (<slug>_markers.json)

{
    "source": "https://interactivemap.app/aion2/maps/verteron",
    "extracted_at_utc": "2026-09-20T12:12:39Z",
    "map": {
        "id": "1",
        "name": "Verteron",
        "slug": "verteron"
    },
    "marker_count": 14729,
    "markers": [
        {
            "id": "34739",
            "name": "Point of Interest",
            "group_name": "Community",
            "category_name": "Point of Interest",
            "coordinates": [1505.46, 1585.43],
            "properties": { ... }
        }
    ]
}

Improvements Over FirstTry

  • Multi-map support: Not limited to a single map (Verteron/Elysea)
  • MVC architecture: Clean separation of concerns with proper OOP classes
  • Service layer: Dedicated services for tile and marker management
  • Local maps list: Generates data/maps.json to avoid CORS issues when loading from localhost
  • Real icon graphics: Downloads and displays actual marker icons instead of emoji symbols
  • Better error handling: Graceful fallbacks when data is missing
  • Loading states: Visual feedback during map loading
  • Modular CSS: Uses CSS variables for easy theming

Dependencies

  • Python 3 (standard library only) for download scripts
  • Modern web browser with ES6+ support
  • No external JavaScript libraries required