Map is displayed and interactive
This commit is contained in:
3 files changed
+109
-65
No files matched your search
+29
-45
@@ -5,8 +5,13 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Journey Mapper - Interactive Map</title>
|
||||
|
||||
<script src='https://unpkg.com/maplibre-gl@2.4.0/dist/maplibre-gl.js'></script>
|
||||
<link href='https://unpkg.com/maplibre-gl@2.4.0/dist/maplibre-gl.css' rel='stylesheet' />
|
||||
<link rel='stylesheet' href='https://unpkg.com/maplibre-gl@5.19.0/dist/maplibre-gl.css' />
|
||||
<script src='https://unpkg.com/maplibre-gl@5.19.0/dist/maplibre-gl.js'></script>
|
||||
|
||||
<style>
|
||||
body { margin: 0; padding: 0; }
|
||||
html, body, #map { height: 100%; }
|
||||
</style>
|
||||
|
||||
<!-- Font Awesome Icons -->
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
||||
@@ -191,73 +196,52 @@
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<label for="marker-title">Title</label>
|
||||
<input type="text" id="marker-title" placeholder="Location name">
|
||||
<label for="marker-title"><i class="fas fa-heading"></i> Title</label>
|
||||
<input type="text" id="marker-title" placeholder="Marker title">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="marker-date">Date</label>
|
||||
<label for="marker-date"><i class="fas fa-calendar"></i> Date</label>
|
||||
<input type="date" id="marker-date">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="marker-text">Description</label>
|
||||
<textarea id="marker-text" placeholder="Share your experience at this location..."></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label><i class="fas fa-images"></i> Images</label>
|
||||
<div class="image-upload-area">
|
||||
<div id="image-preview" class="image-preview">
|
||||
<!-- Images will appear here -->
|
||||
</div>
|
||||
<div class="upload-actions">
|
||||
<input type="file" id="image-upload" accept="image/*" multiple style="display: none;">
|
||||
<button id="add-image" class="btn btn-small">
|
||||
<i class="fas fa-plus"></i> Add Images
|
||||
</button>
|
||||
<button id="remove-images" class="btn btn-small btn-secondary">
|
||||
<i class="fas fa-trash"></i> Clear
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<label for="marker-text"><i class="fas fa-align-left"></i> Description</label>
|
||||
<textarea id="marker-text" placeholder="Marker description"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="video-url"><i class="fas fa-video"></i> Video URL</label>
|
||||
<input type="url" id="video-url" placeholder="YouTube or Vimeo URL">
|
||||
<small class="help-text">Paste a YouTube or Vimeo video link</small>
|
||||
<input type="text" id="video-url" placeholder="Video URL">
|
||||
</div>
|
||||
|
||||
<div class="coordinates">
|
||||
<p><strong>Coordinates:</strong> <span id="marker-coords">0, 0</span></p>
|
||||
<div class="form-group">
|
||||
<label><i class="fas fa-images"></i> Images</label>
|
||||
<div id="image-preview"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="marker-coords"><i class="fas fa-map-marker-alt"></i> Coordinates</label>
|
||||
<input type="text" id="marker-coords" readonly>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button id="save-marker" class="btn btn-primary">
|
||||
<i class="fas fa-save"></i> Save Marker
|
||||
</button>
|
||||
<button id="delete-marker" class="btn btn-danger">
|
||||
<i class="fas fa-trash"></i> Delete Marker
|
||||
</button>
|
||||
<button id="cancel-marker" class="btn btn-secondary">
|
||||
Cancel
|
||||
</button>
|
||||
<button id="save-marker" class="btn btn-primary">Save Marker</button>
|
||||
<button id="delete-marker" class="btn btn-danger">Delete Marker</button>
|
||||
<button id="close-modal" class="btn btn-secondary">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Notification Toast (Hidden by default) -->
|
||||
<!-- Notification Toast -->
|
||||
<div id="toast" class="toast">
|
||||
<div class="toast-content">
|
||||
<span id="toast-message">Journey saved successfully!</span>
|
||||
</div>
|
||||
<p id="toast-message"></p>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<!-- JavaScript Files -->
|
||||
|
||||
<script src="js/main.js"></script>
|
||||
<script src="js/map.js"></script>
|
||||
<script src="js/journey-post.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user