forked from MattMills/eet-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
national-geographic-style.html
41 lines (37 loc) · 1.3 KB
/
national-geographic-style.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
29
30
31
32
33
34
35
36
37
38
39
40
41
<html>
<head>
<meta charset="utf-8" />
<title>National Geographic Style</title>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" crossorigin="" />
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" crossorigin=""></script>
<!-- Load Esri Leaflet from CDN -->
<script src="https://unpkg.com/[email protected]/dist/esri-leaflet.js"></script>
<!-- Load Esri Leaflet Vector from CDN -->
<script src="https://unpkg.com/[email protected]/dist/esri-leaflet-vector.js" crossorigin=""></script>
<style>
html,
body,
#map {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #323232;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
const apiKey = "AAPK2ecec03a68c5440e8fe1a97f287e7a09DEA8y3v-_GEpeBxyjr1Y3sR4hFj_U8veDpkxhO9e-qFGeV4gyCYd84mQkJq6smah";
const map = L.map("map").setView([50.0642, 27.2900], 6);
L.esri.Vector.vectorBasemapLayer("47d8db1651ca438ab5065983553ddcab", {
apikey: apiKey,
version: 2
}).addTo(map);
</script>
</body>
</html>