From 9b6a4958e30ff5c4cf69ccb0f5b347005fa25bd2 Mon Sep 17 00:00:00 2001 From: Chris Amico Date: Fri, 5 Jan 2024 12:06:31 -0500 Subject: [PATCH] Add controls --- src/App.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/App.svelte b/src/App.svelte index 9ac993b..6a80cbd 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -51,6 +51,10 @@ hash: true, }); + // controls + map.addControl(new maplibregl.NavigationControl(), "top-left"); + map.addControl(new maplibregl.FullscreenControl(), "top-left"); + map.once("load", onLoad); // for debugging