diff --git a/app/static/assets/leaflet/utils.js b/app/static/assets/leaflet/utils.js index b432ab0..c9563e1 100644 --- a/app/static/assets/leaflet/utils.js +++ b/app/static/assets/leaflet/utils.js @@ -44,4 +44,20 @@ function addPlayerMarker(map, player){ var timestamp_local = moment(timestamp_utc).local().format('YYYY-MM-DD HH:mm'); playerMarker.bindTooltip(`${player['username']}
${timestamp_local}`).openPopup(); -} \ No newline at end of file +} + +function getMap(){ + var map = L.map( 'map', { + center: [52.2, 5.3], + minZoom: 6, + maxZoom: 18, + bounds: [[50.5, 3.25], [54, 7.6]], + zoom: 8 + }); + L.control.scale().addTo(map); + + L.tileLayer( 'https://geodata.nationaalgeoregister.nl/tiles/service/wmts/brtachtergrondkaartpastel/EPSG:3857/{z}/{x}/{y}.png', { + attribution: 'Kaartgegevens © Kadaster' + }).addTo( map ); + return map +} diff --git a/app/templates/auth/login.html b/app/templates/auth/login.html index ec88b87..cf36584 100644 --- a/app/templates/auth/login.html +++ b/app/templates/auth/login.html @@ -2,14 +2,20 @@ {% import 'bootstrap/wtf.html' as wtf %} {% block app_content %} -
-
+
+
-

Sign In

- {{ wtf.quick_form(form, button_map={'submit': 'primary'}) }} -
-

New User? Click to Register!

+

Sign In

+
+ {{ form.hidden_tag() }} + {{ wtf.form_field(form.username) }} + {{ wtf.form_field(form.password) }} + {{ wtf.form_field(form.remember_me) }} + {{ wtf.form_field(form.submit, class='btn btn-primary') }} +
+
+

New User? Click to Register!

-
-
+
+
{% endblock %} diff --git a/app/templates/game_bunny_dashboard.html b/app/templates/game_bunny_dashboard.html index 0666cd1..adee875 100644 --- a/app/templates/game_bunny_dashboard.html +++ b/app/templates/game_bunny_dashboard.html @@ -60,18 +60,7 @@ {{ moment.include_moment() }} {% endblock %} diff --git a/app/templates/game_hunter_dashboard.html b/app/templates/game_hunter_dashboard.html index e3f27c2..a1e68d2 100644 --- a/app/templates/game_hunter_dashboard.html +++ b/app/templates/game_hunter_dashboard.html @@ -68,18 +68,7 @@ {{ moment.include_moment() }} {% endblock %} diff --git a/app/templates/game_owner_dashboard.html b/app/templates/game_owner_dashboard.html index 4de0403..35f993c 100644 --- a/app/templates/game_owner_dashboard.html +++ b/app/templates/game_owner_dashboard.html @@ -92,18 +92,7 @@ {{ moment.include_moment() }} + {% endblock %} {% block app_content %} @@ -76,47 +77,15 @@ + {% endblock %} {% block app_content %} @@ -63,18 +64,7 @@ {{ super() }} {% endblock %} diff --git a/app/templates/player_base.html b/app/templates/player_base.html index 850745c..3de78be 100644 --- a/app/templates/player_base.html +++ b/app/templates/player_base.html @@ -19,7 +19,7 @@ function sendLocation(){ } } -setInterval(function() {sendLocation()}, 10 * 1000); +setInterval(function() {sendLocation()}, 65 * 1000); function postCoordinates(position) { $.ajax({