-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathindex.html
More file actions
41 lines (39 loc) · 2.68 KB
/
index.html
File metadata and controls
41 lines (39 loc) · 2.68 KB
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
<!DOCTYPE html>
<!--
@license
Copyright 2025 Google LLC. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
-->
<!--[START maps_map_drawing_terradraw]-->
<html>
<head>
<title>Terra Draw with Google Maps API Sample</title>
<link rel="stylesheet" href=/proxy/https/github.com/googlemaps-samples/js-api-samples/blob/71bb35a17202cf4e5d976b649c97ac588519db29/samples/map-drawing-terradraw/"./style.css">%3C/div>
<!-- Terra Draw CSS (if any needed, add here) -->
</head>
<body>
<!-- Map Container -->
<div id="map"></div>
<!-- Top-right mode selection UI -->
<div id="mode-ui">
<button id="point-mode" class="mode-button" title="Point"><img src=/proxy/https/github.com/googlemaps-samples/js-api-samples/blob/71bb35a17202cf4e5d976b649c97ac588519db29/samples/map-drawing-terradraw/"./img/point.svg" alt="Point" draggable="false"></button>
<button id="linestring-mode" class="mode-button" title="Linestring"><img src=/proxy/https/github.com/googlemaps-samples/js-api-samples/blob/71bb35a17202cf4e5d976b649c97ac588519db29/samples/map-drawing-terradraw/"./img/polyline.svg" alt="Linestring" draggable="false"></button>
<button id="polygon-mode" class="mode-button active" title="Polygon"><img src=/proxy/https/github.com/googlemaps-samples/js-api-samples/blob/71bb35a17202cf4e5d976b649c97ac588519db29/samples/map-drawing-terradraw/"./img/polygon.png" alt="Polygon" draggable="false"></button>
<button id="rectangle-mode" class="mode-button" title="Rectangle"><img src=/proxy/https/github.com/googlemaps-samples/js-api-samples/blob/71bb35a17202cf4e5d976b649c97ac588519db29/samples/map-drawing-terradraw/"./img/rectangle.svg" alt="Rectangle" draggable="false"></button>
<button id="circle-mode" class="mode-button" title="Circle"><img src=/proxy/https/github.com/googlemaps-samples/js-api-samples/blob/71bb35a17202cf4e5d976b649c97ac588519db29/samples/map-drawing-terradraw/"./img/circle.svg" alt="Circle" draggable="false"></button>
<button id="freehand-mode" class="mode-button" title="Freehand"><img src=/proxy/https/github.com/googlemaps-samples/js-api-samples/blob/71bb35a17202cf4e5d976b649c97ac588519db29/samples/map-drawing-terradraw/"./img/freehand.svg" alt="Freehand" draggable="false"></button>
<button id="select-mode" class="mode-button" title="Select"><img src=/proxy/https/github.com/googlemaps-samples/js-api-samples/blob/71bb35a17202cf4e5d976b649c97ac588519db29/samples/map-drawing-terradraw/"./img/select.svg" alt="Select" draggable="false"></button>
<button id="resize-button" class="mode-button" title="Resize"><img src=/proxy/https/github.com/googlemaps-samples/js-api-samples/blob/71bb35a17202cf4e5d976b649c97ac588519db29/samples/map-drawing-terradraw/"./img/resize.svg" alt="Resize" draggable="false"></button>
<button id="clear-mode" class="mode-button" title="Clear"><img src=/proxy/https/github.com/googlemaps-samples/js-api-samples/blob/71bb35a17202cf4e5d976b649c97ac588519db29/samples/map-drawing-terradraw/"./img/delete.svg" alt="Clear" draggable="false"></button>
<button id="delete-selected-button" class="mode-button" title="Clear last or Selected"><img src=/proxy/https/github.com/googlemaps-samples/js-api-samples/blob/71bb35a17202cf4e5d976b649c97ac588519db29/samples/map-drawing-terradraw/"./img/delete-selected.svg" alt="Delete Selected" draggable="false"></button>
<button id="undo-button" class="mode-button" title="Undo"><img src=/proxy/https/github.com/googlemaps-samples/js-api-samples/blob/71bb35a17202cf4e5d976b649c97ac588519db29/samples/map-drawing-terradraw/"./img/undo.svg" alt="Undo" draggable="false"></button>
<button id="redo-button" class="mode-button" title="Redo"><img src=/proxy/https/github.com/googlemaps-samples/js-api-samples/blob/71bb35a17202cf4e5d976b649c97ac588519db29/samples/map-drawing-terradraw/"./img/redo.svg" alt="Redo" draggable="false"></button>
<button id="export-button" class="mode-button" title="Export"><img src=/proxy/https/github.com/googlemaps-samples/js-api-samples/blob/71bb35a17202cf4e5d976b649c97ac588519db29/samples/map-drawing-terradraw/"./img/download.svg" alt="Export" draggable="false"></button>
<button id="upload-button" class="mode-button" title="Upload"><img src=/proxy/https/github.com/googlemaps-samples/js-api-samples/blob/71bb35a17202cf4e5d976b649c97ac588519db29/samples/map-drawing-terradraw/"./img/upload.svg" alt="Upload" draggable="false"></button>
<input type="file" id="upload-input" style="display: none;" accept=".geojson,.json">
</div>
<script type="module" src=/proxy/https/github.com/googlemaps-samples/js-api-samples/blob/71bb35a17202cf4e5d976b649c97ac588519db29/samples/map-drawing-terradraw/"./index.ts"></script>%3C/div>
<!-- Google Maps API is loaded by the Loader in index.ts -->
</body>
</html>
<!--[END maps_map_drawing_terradraw]-->
You can’t perform that action at this time.