From bfb845f94ae158c0e6a683fc869b0d716b727c6f Mon Sep 17 00:00:00 2001 From: Matt Versaggi Date: Tue, 3 Feb 2026 22:48:17 -0500 Subject: [PATCH 1/4] NEX-13: Create template for /map endpoint and create .gitattributes for consistent line endings --- .gitattributes | 5 ++ src/netex/routes.py | 5 ++ templates/map.html.jinja | 166 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 176 insertions(+) create mode 100644 .gitattributes create mode 100644 templates/map.html.jinja diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6db4cc3 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +# Ensure shell scripts always use LF line endings +*.sh text eol=lf + +# Dockerfile should also use LF +Dockerfile text eol=lf diff --git a/src/netex/routes.py b/src/netex/routes.py index 66dfd7f..81877a8 100644 --- a/src/netex/routes.py +++ b/src/netex/routes.py @@ -87,3 +87,8 @@ def summary(netcdf_filename): file_size=humanize.naturalsize(file_size), summary=summary_html, ) + + +@app_blueprint.get("/map") +def map_view(): + return render_template("map.html.jinja", heatmap_data=None) diff --git a/templates/map.html.jinja b/templates/map.html.jinja new file mode 100644 index 0000000..824e89c --- /dev/null +++ b/templates/map.html.jinja @@ -0,0 +1,166 @@ + + + + NetCDF Explorer - Map + + + + + + + + + + + + Back to Explorer +
+ + + + From 676ebe4cabb2fbe1c4ffc15b583c46b1d48ebac8 Mon Sep 17 00:00:00 2001 From: Matt Versaggi Date: Fri, 13 Feb 2026 18:42:55 -0500 Subject: [PATCH 2/4] NEX-13: Set default base map to ArcGIS World Ocean Base with World Ocean Reference text layer, mount app src as volume in compose.yaml --- compose.yaml | 4 ++++ templates/map.html.jinja | 50 ++++++++++++++++++++++++++++++++-------- 2 files changed, 44 insertions(+), 10 deletions(-) diff --git a/compose.yaml b/compose.yaml index bbe1f10..5be8914 100644 --- a/compose.yaml +++ b/compose.yaml @@ -44,6 +44,10 @@ services: depends_on: minio: condition: service_healthy + # Bind mounts for local development (change source without rebuilding) + volumes: + - ./src:/app/src + - ./templates:/app/templates networks: - netcdf-network restart: unless-stopped diff --git a/templates/map.html.jinja b/templates/map.html.jinja index 824e89c..14c4658 100644 --- a/templates/map.html.jinja +++ b/templates/map.html.jinja @@ -49,15 +49,8 @@