-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
141 lines (139 loc) · 5.47 KB
/
index.html
File metadata and controls
141 lines (139 loc) · 5.47 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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MapCraft</title>
</head>
<body>
<div id="app relative">
<ul class="flex flex-col gap-2 z-50 absolute m-2">
<li>
<button
id="my-location"
title="MY LOCATION"
class="cursor-pointer w-12 h-12 p-3 rounded-md"
>
<i
data-lucide="crosshair"
class="text-white hover:text-gray-500"
></i>
</button>
</li>
<li>
<button
id="marker"
title="MARKER"
class="cursor-pointer w-12 h-12 p-3 rounded-md"
>
<i
data-lucide="map-pin"
class="text-white hover:text-gray-500"
></i>
</button>
</li>
<li>
<button
title="LINE"
id="line"
class="cursor-pointer w-12 h-12 p-3 rounded-md"
>
<i
data-lucide="move-diagonal-2"
class="text-white hover:text-gray-500"
></i>
</button>
</li>
<li>
<button
id="polygon"
title="POLYGON"
class="cursor-pointer w-12 h-12 p-3 rounded-md"
>
<i
data-lucide="layers-2"
class="text-white hover:text-gray-500"
></i>
</button>
</li>
<li>
<button
title="DOWNLOAD"
id="download"
class="cursor-pointer w-12 h-12 p-3 rounded-md"
>
<i
data-lucide="download"
class="text-white hover:text-gray-500"
></i>
</button>
</li>
<li>
<button
id="help"
title="HELP"
class="cursor-pointer w-12 h-12 p-3 rounded-md"
>
<i
data-lucide="help-circle"
class="text-white hover:text-gray-500"
></i>
</button>
</li>
</ul>
<!-- Help Modal -->
<div
id="help-modal"
class="hidden absolute top-0 left-14 mt-2 z-[10000]"
>
<div
class="bg-black bg-opacity-30 text-white rounded-lg shadow-lg p-6 w-full max-w-xs backdrop-blur-sm"
>
<div class="flex justify-between items-center mb-4">
<h2 class="text-xl font-bold">Help</h2>
<button id="close-modal" class="text-white">
×
</button>
</div>
<ul class="space-y-3">
<li class="flex items-center gap-3">
<i data-lucide="crosshair" class="w-5 h-5"></i>
<span
><b>My Location:</b> Shows your current
location.</span
>
</li>
<li class="flex items-center gap-3">
<i data-lucide="map-pin" class="w-5 h-5"></i>
<span><b>Marker:</b> Add a pin.</span>
</li>
<li class="flex items-center gap-3">
<i
data-lucide="move-diagonal-2"
class="w-5 h-5"
></i>
<span><b>Line:</b> Draw a line.</span>
</li>
<li class="flex items-center gap-3">
<i data-lucide="layers-2" class="w-5 h-5"></i>
<span><b>Polygon:</b> Draw a shape.</span>
</li>
<li class="flex items-center gap-3">
<i data-lucide="download" class="w-5 h-5"></i>
<span
><b>Download:</b> Save as a GeoJSON file.</span
>
</li>
</ul>
</div>
</div>
<div id="map" class="w-full h-screen absolute"></div>
<div
id="coordinates"
class="absolute bottom-4 right-4 text-white p-2 text-sm z-[9999]"
></div>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>