This repository was archived by the owner on Jun 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
107 lines (92 loc) · 4.41 KB
/
index.html
File metadata and controls
107 lines (92 loc) · 4.41 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MapLibre with Sentinel-2 Cloudless and Grid Overlay</title>
<!-- MapLibre GL JS CSS and JavaScript -->
<link href="https://unpkg.com/maplibre-gl@3.5.2/dist/maplibre-gl.css" rel="stylesheet" />
<script src="https://unpkg.com/maplibre-gl@3.5.2/dist/maplibre-gl.js"></script>
<!-- JSZip for handling the zipped GeoJSON -->
<script src="https://unpkg.com/jszip@3.10.1/dist/jszip.min.js"></script>
<!-- Font Awesome for icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
<!-- Our Stylesheet -->
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<div id="map"></div>
<div id="loading">Loading S2 grid data...</div>
<!-- Toast notification for copy feedback -->
<div id="toast" class="toast">Copied to clipboard</div>
<!-- New floating map controls - minimizable -->
<div id="map-controls" class="minimized">
<div class="control-header" onclick="toggleMapControls()">
<span>Layer Controls</span>
<i class="fas fa-chevron-up"></i>
</div>
<div class="layer-controls" id="layer-controls-container">
<!-- Layer items will be added here dynamically -->
</div>
</div>
<div id="sidebar">
<h2><i class="fas fa-satellite"></i> FTW Model Input Selection</h2>
<!-- Window Selection Section -->
<div class="window-selection">
<p><strong><i class="fas fa-images"></i> FTW Model Input Selection</strong></p>
<p>Select two images as input to the FTW model by clicking "Win A" or "Win B" buttons on the search results.</p>
<div class="window-field">
<label for="window-a">Window A:</label>
<div class="window-field-content">
<input type="text" id="window-a" readonly placeholder="Select an image...">
<button class="copy-btn" onclick="copyToClipboard('window-a')">
<i class="fas fa-copy"></i>
</button>
</div>
</div>
<div class="window-field">
<label for="window-b">Window B:</label>
<div class="window-field-content">
<input type="text" id="window-b" readonly placeholder="Select an image...">
<button class="copy-btn" onclick="copyToClipboard('window-b')">
<i class="fas fa-copy"></i>
</button>
</div>
</div>
</div>
<div id="selection-info"><i class="fas fa-info-circle"></i> No grid cell selected</div>
<!-- Filters section moved back to sidebar -->
<div class="filters-section">
<div class="section-header" onclick="toggleSidebarFilters()">
<h3><i class="fas fa-filter"></i> Search Filters</h3>
<i class="fas fa-chevron-down" id="filters-toggle-icon"></i>
</div>
<div id="search-form">
<div class="form-group">
<label for="start-date">Start Date:</label>
<input type="date" id="start-date" placeholder="Start Date">
</div>
<div class="form-group">
<label for="end-date">End Date:</label>
<input type="date" id="end-date" placeholder="End Date">
</div>
<div class="form-group">
<label for="cloud-cover">Max Cloud Cover %:</label>
<input type="number" id="cloud-cover" min="0" max="100" value="10">
</div>
</div>
</div>
<div id="search-status"></div>
<div id="search-results"></div>
<div id="pagination-controls">
<button id="next-page-btn" disabled>Load More Results</button>
</div>
</div>
<!-- Our JavaScript -->
<script src="js/ui.js"></script>
<script src="js/search.js"></script>
<script src="js/map.js"></script>
</body>
</html>