From 26cf793943737ceb1ee92bccf78da2ddcb84772a Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Thu, 14 Mar 2024 19:25:31 +0100 Subject: [PATCH] feat: add fullscreen map --- resources/views/partials/head.blade.php | 2 ++ resources/views/tracker.blade.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/views/partials/head.blade.php b/resources/views/partials/head.blade.php index ed889c7..b1313c0 100644 --- a/resources/views/partials/head.blade.php +++ b/resources/views/partials/head.blade.php @@ -18,6 +18,8 @@ + + @vite(['resources/css/app.css', 'resources/js/app.js']) diff --git a/resources/views/tracker.blade.php b/resources/views/tracker.blade.php index 54086a9..5f2fc7d 100644 --- a/resources/views/tracker.blade.php +++ b/resources/views/tracker.blade.php @@ -52,7 +52,7 @@ /* * Initialise the map */ - var map = L.map('map'); + var map = L.map('map', { fullscreenControl: true }); L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 19, attribution: 'OpenStreetMap'