-
Notifications
You must be signed in to change notification settings - Fork 0
/
Right-col.html
28 lines (22 loc) · 1.01 KB
/
Right-col.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<div class="right-col">
<h2>Right</h2>
<div id="map"></div>
<script>
let mymap = L.map('map').setView([51.505, -0.09], 3);
let token = `pk.eyJ1IjoidGlmZmllLWFuZ2VsIiwiYSI6ImNrdXpkMnYxMzFjYTEyd3JmY242dnRoYXIifQ.tQzRdh68GCNO1gK7fwIHTw`
L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', {
attribution: 'Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
maxZoom: 18,
id: 'mapbox/satellite-v9',
tileSize: 512,
zoomOffset: -1,
accessToken: 'your.mapbox.access.token'
}).addTo(mymap);
</script>
</div>
</div>
<div class="footer">
© GeoInfinity
</div>
</body>
</html>