From c2fd0793feaff4302299db6aedd1f3a7f956516f Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 5 Nov 2025 07:28:41 +0000 Subject: [PATCH] Fix map rendering: move draw-features.js before main.js The merge introduced draw-features.js as a deferred script, but drawLayers() (called during initial map generation) unconditionally calls drawFeatures(). Since deferred scripts load after DOMContentLoaded, drawFeatures() was undefined when the map tried to render, causing only ocean to display. Fix: Move draw-features.js to load before main.js (after its dependencies like simplify.js) so it's available when drawLayers() executes. This is the minimal fix - other renderer scripts remain deferred since they're only called conditionally based on layer toggles. Fixes: Map only showing ocean after merge --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 60f71c30..fa0befa9 100644 --- a/index.html +++ b/index.html @@ -8164,6 +8164,7 @@ + @@ -8219,7 +8220,6 @@ -