maps updates
This commit is contained in:
94
map/app/public/admin.html
Normal file
94
map/app/public/admin.html
Normal file
@@ -0,0 +1,94 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="Admin Panel - NocoDB Map Viewer">
|
||||
<title>Admin Panel - NocoDB Map Viewer</title>
|
||||
|
||||
<!-- Leaflet CSS -->
|
||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
|
||||
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
|
||||
crossorigin="" />
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<link rel="stylesheet" href="css/admin.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<!-- Header -->
|
||||
<header class="header">
|
||||
<h1>Admin Panel</h1>
|
||||
<div class="header-actions">
|
||||
<a href="/" class="btn btn-secondary">← Back to Map</a>
|
||||
<span id="admin-info" class="admin-info"></span>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- Main Content -->
|
||||
<div class="admin-container">
|
||||
<div class="admin-sidebar">
|
||||
<h2>Settings</h2>
|
||||
<nav class="admin-nav">
|
||||
<a href="#start-location" class="active">Start Location</a>
|
||||
<!-- Future menu items can go here -->
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="admin-content">
|
||||
<!-- Start Location Section -->
|
||||
<section id="start-location" class="admin-section">
|
||||
<h2>Map Start Location</h2>
|
||||
<p>Set the default center point and zoom level for the map when users first load the application.</p>
|
||||
|
||||
<div class="admin-map-container">
|
||||
<div id="admin-map" class="admin-map"></div>
|
||||
|
||||
<div class="location-controls">
|
||||
<div class="form-group">
|
||||
<label for="start-lat">Latitude</label>
|
||||
<input type="number" id="start-lat" step="0.000001" min="-90" max="90">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="start-lng">Longitude</label>
|
||||
<input type="number" id="start-lng" step="0.000001" min="-180" max="180">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="start-zoom">Zoom Level</label>
|
||||
<input type="number" id="start-zoom" min="2" max="19" step="1">
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<button id="use-current-view" class="btn btn-secondary">
|
||||
Use Current Map View
|
||||
</button>
|
||||
<button id="save-start-location" class="btn btn-primary">
|
||||
Save Start Location
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="help-text">
|
||||
<p>💡 Tip: Navigate the map to your desired location and zoom level, then click "Use Current Map View" to capture the coordinates.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Status Messages -->
|
||||
<div id="status-container" class="status-container"></div>
|
||||
</div>
|
||||
|
||||
<!-- Leaflet JS -->
|
||||
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
|
||||
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
|
||||
crossorigin=""></script>
|
||||
|
||||
<!-- Admin JavaScript -->
|
||||
<script src="js/admin.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user