diff --git a/app/routes/main.py b/app/routes/main.py index 347435d..b215c55 100644 --- a/app/routes/main.py +++ b/app/routes/main.py @@ -470,21 +470,21 @@ def register_routes(app, services, settings): ORDER BY a.map, ps.character_name """) or [] - # Get vehicles with coordinates + # Get vehicles with coordinates (only DeepDesert and HaggaBasin) vehicles = db.query(""" SELECT v.id, a.map, a.transform, a.class FROM dune.vehicles v JOIN dune.actors a ON v.id = a.id - WHERE a.transform IS NOT NULL + WHERE a.transform IS NOT NULL AND a.map IN ('DeepDesert', 'HaggaBasin') ORDER BY a.map, a.class """) or [] - # Get buildings with coordinates + # Get buildings with coordinates (only DeepDesert and HaggaBasin) buildings = db.query(""" SELECT b.id, a.map, a.transform, a.class FROM dune.buildings b JOIN dune.actors a ON b.id = a.id - WHERE a.transform IS NOT NULL + WHERE a.transform IS NOT NULL AND a.map IN ('DeepDesert', 'HaggaBasin') ORDER BY a.map LIMIT 200 """) or [] diff --git a/templates/map.html b/templates/map.html index 4479798..ac4505b 100644 --- a/templates/map.html +++ b/templates/map.html @@ -269,14 +269,6 @@ Buildings ({{ buildings|length }}) -

Filter by Map

- -

Players

{% for p in players %} @@ -329,9 +321,7 @@
Map - {# Players #} - {% if show_players is not defined %}{% set show_players = true %}{% endif %} - {% if show_players %} + {# Players - only show if they have pixel coords #} {% for p in players %} {% if p.px is not none and p.py is not none %}
@@ -339,11 +329,8 @@
{% 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 %}
@@ -351,11 +338,8 @@
{% 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 %}
@@ -363,34 +347,27 @@
{% endif %} {% endfor %} - {% endif %}
{% else %}
🗺️
-

No Map Configured

-

Configure a map in settings to display coordinates.

+

No Map Available

+

Map image not configured. Showing coordinate data in list view.

- Data available:
+ Available Data:
+ DeepDesert & HaggaBasin locations:
Players: {{ players|length }}
Vehicles: {{ vehicles|length }}
Buildings: {{ buildings|length }}
{% endif %} -