-
Notifications
You must be signed in to change notification settings - Fork 821
/
sample.html
executable file
·45 lines (43 loc) · 1.53 KB
/
sample.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
<!-- [START maps_layer_data_dragndrop] -->
<!DOCTYPE html>
<html>
<head>
<title>Data Layer: Drag and Drop GeoJSON</title>
<script src="https://polyfill.io/v3/polyfill.min.js?features=default"></script>
<link
href="https://unpkg.com/material-components-web@6.0.0/dist/material-components-web.css"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/icon?family=Material+Icons"
/>
<link rel="stylesheet" type="text/css" href="./style.css" />
<script src="./index.js"></script>
</head>
<body>
<div id="container">
<div id="map"></div>
<div id="sidebar" class="mdc-typography">
<div class="file" draggable="true" data-value="0">
<span class="material-icons">text_snippet</span>
<div class="filename">polygons.geojson</div>
</div>
<div class="file" draggable="true" data-value="1">
<span class="material-icons">text_snippet</span>
<div class="filename">points.geojson</div>
</div>
<div class="file" draggable="true" data-value="2">
<span class="material-icons">text_snippet</span>
<div class="filename">polyline.geojson</div>
</div>
</div>
</div>
<!-- Async script executes immediately and must be after any DOM elements used in callback. -->
<script
src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initialize&v=weekly"
async
></script>
</body>
</html>
<!-- [END maps_layer_data_dragndrop] -->