Mobile usability

This commit is contained in:
Mattéo Delabre 2020-01-13 13:00:34 +01:00
parent 602ceef16d
commit d42e3ed3ed
Signed by: matteo
GPG Key ID: AE3FBD02DC583ABB
2 changed files with 12 additions and 4 deletions

View File

@ -4,6 +4,8 @@
<meta charset="utf-8">
<title>TaM</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<style>
body, html
{

View File

@ -1,4 +1,6 @@
const L = require('leaflet');
const color = require('color');
require('leaflet/dist/leaflet.css');
// MAP
@ -12,11 +14,15 @@ streetmap.org/">OpenStreetMap</a>, <a href="https://creativecommons.org/\
licenses/by-sa/2.0/">CC-BY-SA</a>`,
'Imagerie © <a href="https://www.mapbox.com/">Mapbox</a>',
].join(' | '),
maxZoom: 18,
tileSize: 512,
zoomOffset: -1,
id: 'mapbox/streets-v11',
accessToken: 'pk.eyJ1IjoibWF0dGVvZGVsYWJyZSIsImEiOiJjazUxaWNsdXcwdWhjM29tc2xndXJoNGtxIn0.xELwMerqJLFimIqU6RxnZw'
tileSize: 512,
accessToken: 'pk.eyJ1IjoibWF0dGVvZGVsYWJyZSIsImEiOiJjazUxaWNsdXcwdWhjM29tc2xndXJoNGtxIn0.xELwMerqJLFimIqU6RxnZw',
maxZoom: 18,
zoomSnap: 0,
zoomOffset: -1,
}).addTo(map);
// </MAP>