-
Notifications
You must be signed in to change notification settings - Fork 43
/
mapbox-gl-js-ct.html
56 lines (38 loc) · 1.52 KB
/
mapbox-gl-js-ct.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html>
<head>
<title>Quick Start - Mapbox GL JS</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" type="image/x-icon" href="docs/images/favicon.ico" />
<!-- Add a `link` tag for Mapbox GL JS's CSS -->
<!-- Add a `script` tag for Mapbox GL JS's JavaScript -->
<!-- Set the map's width: 800px and height: 600px in a `style` tag -->
<style type="text/css">
#mapId {
}
</style>
</head>
<body>
<!-- Create a div to house the map -->
<script>
// Set your Mapbox access token
/* Create a variable called "map" and use it to store a new mapbox gl map.
* Set your map's center to [-122.467, 37.798] and zoom to 13.
* Set the style URL to "mapbox://styles/mapbox/light-v10"
* See the Mapbox GL JS API reference for more info: https://docs.mapbox.com/mapbox-gl-js/api/
*/
/* Create a variable called "popup" to store a new Popup instance (ref: https://docs.mapbox.com/mapbox-gl-js/api/#popup).
* and set its HTML content to:
* "<b>The Presidio.</b><br /> Explore to find a drinking fountain!"
* set lng lat to the center of the map
*/
/* Create a variable called "marker,"
* add to it a new Marker (ref: https://docs.mapbox.com/mapbox-gl-js/api/#marker),
* set its Lng, Lat to [-122.4700, 37.8011],
* set its popup to the popup variable you created earlier,
* and add it to the map.
*/
</script>
</body>
</html>