From eb8535cec185b01c1f813cd1311f2f521e287ed4 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Sun, 20 Feb 2022 11:51:23 +0100 Subject: [PATCH] add map keys to config --- config/trackdirect.ini | 2 ++ htdocs/public/index.php | 15 +++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/config/trackdirect.ini b/config/trackdirect.ini index ac40126..9bea999 100644 --- a/config/trackdirect.ini +++ b/config/trackdirect.ini @@ -7,6 +7,8 @@ title="APRS Track Direct" owner_name="Unknown" owner_email="no@name.com" +;maptiler_key="" +;google_key="" [database] diff --git a/htdocs/public/index.php b/htdocs/public/index.php index cb6639f..253486d 100755 --- a/htdocs/public/index.php +++ b/htdocs/public/index.php @@ -37,8 +37,8 @@ $REQUEST_PROTOCOL = $isSecure ? 'https' : 'http'; - - + + @@ -116,8 +116,7 @@ $REQUEST_PROTOCOL = $isSecure ? 'https' : 'http'; console.log('Failed to fetch location, using default location'); }).always(function() { - var maptilerKey = ''; - options['mapboxGLStyle'] = 'https://api.maptiler.com/maps/bright/style.json?optimize=true&key=' + maptilerKey; + options['mapboxGLStyle'] = "https://api.maptiler.com/maps/bright/style.json?optimize=true&key="; options['mapboxGLAttribution'] = 'Map © MapTiler, OpenStreetMap contributors'; @@ -204,9 +203,13 @@ $REQUEST_PROTOCOL = $isSecure ? 'https' : 'http';