-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
70 lines (57 loc) · 3.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shapes on Map | Draw, Customize, and Download</title>
<!-- SEO Meta Tags -->
<meta name="description" content="Interactive tool to draw random shapes like stars, hearts, and more on a map. Download your customized shapes as GeoJSON or ZIP.">
<meta name="keywords" content="shapes, maps, Leaflet, draw shapes, GeoJSON, shapes on map, download map shapes, zip download, heart, star, butterfly">
<meta name="author" content="Nishon Tandukar">
<!-- Favicon -->
<link rel="icon" href="favicon.ico" type="image/x-icon">
<!-- Preload Key Styles -->
<link rel="preload" href="https://unpkg.com/[email protected]/dist/leaflet.css" as="style">
<link rel="preload" href="css/styles.css" as="style">
<!-- Leaflet CSS -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<link rel="stylesheet" href="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.css" />
<link rel="stylesheet" href="css/styles.css">
<!-- Open Graph Meta Tags for Share Previews -->
<meta property="og:title" content="Shapes on Map | Interactive Map Shape Drawer">
<meta property="og:description" content="Draw, customize, and download shapes like stars and hearts directly on a map! Export them as GeoJSON or ZIP files.">
<meta property="og:image" content="https://konishon.github.io/random-map-shape-generator/public/share-preview.png">
<meta property="og:url" content="https://naxa.com.np/random">
<meta property="og:type" content="website">
<!-- Twitter Card Meta Tags for Share Previews -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Shapes on Map | Interactive Shape Drawer">
<meta name="twitter:description" content="Draw shapes like stars, hearts, and more on maps, then download them as GeoJSON or ZIP files.">
<meta name="twitter:image" content="https://konishon.github.io/random-map-shape-generator/public/share-preview.png">
<meta name="twitter:site" content="@naxanp">
</head>
<body>
<div id="map"></div>
<div id="context-menu">
<button onclick="dropRandomShapeAtClickedLatLng()">🎲 Drop Random Shape</button>
<button onclick="drawRandomPoint()">📍 Random Point</button>
<button onclick="drawRandomLine()">📏 Random Line</button>
<button onclick="drawRandomPolygon()">🔺 Random Polygon</button>
<button id="remove-layer-btn" style="display: none;" onclick="removeLayer()">❌ Remove this shape</button>
</div>
<footer>
<button onclick="dropRandomShapeInVisibleRegion()">🎲 Drop Random Shape</button>
<button onclick="drawRandomPoint()">📍 Random Point</button>
<button onclick="drawRandomLine()">📏 Random Line</button>
<button onclick="drawRandomPolygon()">🔺 Random Polygon</button>
<button class="download-zip-btn" onclick="downloadShapesAsZip()">Download Shapes</button>
<button onclick="clearMap()">❌ Clear All Shapes</button>
</footer>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" defer></script>
<script src="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.7.1/jszip.min.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js" defer></script>
<script src="https://unpkg.com/[email protected]/dist/leaflet-editable.js"></script>
<script src="js/script.js" defer></script>
</body>
</html>