1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,34 @@ |
1 |
+<!DOCTYPE html> |
|
2 |
+<html lang="en"> |
|
3 |
+<head> |
|
4 |
+ <meta charset="UTF-8"> |
|
5 |
+ <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
6 |
+ <title>Leaflet Map</title> |
|
7 |
+ <!-- Include Leaflet CSS --> |
|
8 |
+ <link rel="stylesheet" href="/css/leaflet.css"/> |
|
9 |
+ <!-- Include Leaflet JavaScript --> |
|
10 |
+ <script src="/js/leaflet.js"></script> |
|
11 |
+ <!-- Set CSS for map container --> |
|
12 |
+ <style> |
|
13 |
+ /* Set HTML and body to fill the viewport */ |
|
14 |
+ html, body { height: 100%; margin: 0; } |
|
15 |
+ /* Set map container to fill the entire viewport */ |
|
16 |
+ #map { height: 100%; width: 100%; } |
|
17 |
+ </style> |
|
18 |
+</head> |
|
19 |
+<body> |
|
20 |
+ |
|
21 |
+<div id="map"></div> |
|
22 |
+ |
|
23 |
+<script> |
|
24 |
+ // Initialize Leaflet map |
|
25 |
+ var map = L.map('map').setView([39.427707, -127.65564], 7); |
|
26 |
+ |
|
27 |
+ // Add tile layer with custom URL |
|
28 |
+ L.tileLayer('/osm/tiles/{z}/{x}/{y}', { |
|
29 |
+ attribution: 'Your custom attribution here' |
|
30 |
+ }).addTo(map); |
|
31 |
+</script> |
|
32 |
+ |
|
33 |
+</body> |
|
34 |
+</html> |