{% extends "base.html" %} {% block title %}Map - Dune Dashboard{% endblock %} {% block content %}

World Map

{% if db_error %}
{{ db_error }}
{% endif %}
{{ players|length }}
Players
{{ vehicles|length }}
Vehicles
{{ buildings|length }}
Buildings

Filter by Type

Filter by Map

Players

{% for p in players %}
{{ p.name }} {{ p.map }}
{% endfor %} {% if not players %}
No player locations
{% endif %}

Vehicles

{% for v in vehicles %} {% set vehicle_name = v.class.split('/')[-1].split('.')[0] if v.class else 'Unknown' %}
{{ vehicle_name|truncate(15) }} {{ v.map }}
{% endfor %} {% if not vehicles %}
No vehicle locations
{% endif %}

Buildings

{% for b in buildings[:50] %}
{{ b.class|truncate(20) }} {{ b.map }}
{% endfor %} {% if not buildings %}
No building locations
{% endif %} {% if buildings|length > 50 %}
+{{ buildings|length - 50 }} more
{% endif %}
{% set current_map = map_config.get(default_map, {}) %} {% set map_image = current_map.get('image') %} {% if map_image %}
Map {# Players #} {% if show_players is not defined %}{% set show_players = true %}{% endif %} {% if show_players %} {% for p in players %} {% if p.px is not none and p.py is not none %}
{{ p.name }} (Player)
{% endif %} {% endfor %} {% endif %} {# Vehicles #} {% if show_vehicles is not defined %}{% set show_vehicles = true %}{% endif %} {% if show_vehicles %} {% for v in vehicles %} {% if v.px is not none and v.py is not none %}
{{ v.class.split('/')[-1].split('.')[0] }} (Vehicle)
{% endif %} {% endfor %} {% endif %} {# Buildings #} {% if show_buildings is not defined %}{% set show_buildings = true %}{% endif %} {% if show_buildings %} {% for b in buildings[:30] %} {% if b.px is not none and b.py is not none %}
{{ b.class.split('/')[-1].split('.')[0] }} (Building)
{% endif %} {% endfor %} {% endif %}
{% else %}
🗺️

No Map Configured

Configure a map in settings to display coordinates.

Data available:
Players: {{ players|length }}
Vehicles: {{ vehicles|length }}
Buildings: {{ buildings|length }}
{% endif %}
{% endblock %}