generated from penpot/penpot-plugin-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
97 lines (92 loc) · 3.01 KB
/
index.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Penpot map editor</title>
</head>
<body>
<div class="export-settings">
<label for="map-height">
Height:
<input
type="number"
id="map-height"
name="map-height"
placeholder="300"
min="1"
/>
</label>
<label for="map-width">
Width:
<input
type="number"
id="map-width"
name="map-width"
placeholder="410"
min="1"
/>
</label>
</div>
<div class="export-settings">
<label for="select-map-provider">
Change map provider:
<select id="select-map-provider" class="select">
<option value="osm" selected="selected">OpenStreetMap</option>
<option value="thunderforest">Thunderforest</option>
</select>
</label>
<label id="select-thunderforest-map-type-label" for="select-thunderforest-map-type" class="hidden">
Change map type:
<select id="select-thunderforest-map-type" class="select">
<option value="atlas" selected="selected">Atlas</option>
<option value="cycle">Cycle</option>
<option value="transport">Transport</option>
<option value="landscape">Landscape</option>
<option value="outdoors">Outdoors</option>
<option value="transport-dark">Transport Dark</option>
<option value="spinal-map">Spinal Map</option>
<option value="pioneer">Pioneer</option>
<option value="mobile-atlas">Mobile Atlas</option>
<option value="neighbourhood">Neighbourhood</option>
</select>
</label>
</div>
<div id="thunderforest-key-container" class="hidden">
<p class="alert">
You need a <a href="https://www.thunderforest.com/" target="_blank">free thunderforest API key</a> to use the advanced map styles.<br />
Once submitted, the key will be saved permanently in penpot.
</p>
<div class="thunderforest-key-input">
<label for="thunderforest-key">
Thunderforest API key:
<input
type="text"
id="thunderforest-key"
name="thunderforest-key"
placeholder="fn643abc099..."
/>
</label>
<button type="button" data-appearance="primary" data-handler="save-thunderforest-key">
Save
</button>
</div>
</div>
<div class="map-container">
<div class="auto-search-wrapper">
<input
type="text"
autocomplete="off"
id="search"
class="full-width"
placeholder="Search a place..."
/>
</div>
<button type="button" data-appearance="primary" data-handler="create-image">
Take picture here
</button>
<div id="map"></div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>