-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaps.html
More file actions
90 lines (72 loc) · 2.35 KB
/
maps.html
File metadata and controls
90 lines (72 loc) · 2.35 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Explore Kudla | Maps</title>
<link rel="stylesheet" href="style.css">
<link rel="index" href="index.html">
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" />
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Poppins:wght@400;500;600&display=swap" rel="stylesheet">
<style>
#map {
height: 80vh;
width: 100%;
border-radius: 12px;
margin-top: 30px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
</style>
</head>
<body>
<section class="hero">
<h1>Explore Kudla on Map</h1>
<p>Find hidden gems, beaches, temples, and top attractions — all in one map.</p>
</section>
<section class="container">
<h2>Interactive Map of Kudla</h2>
<div id="map"></div>
</section>
<footer class="site-footer">
<p>© 2025 Namma Kudla | Built with ❤️ for Mangalore Tourism</p>
</footer>
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
<script>
const map = L.map('map').setView([12.9141, 74.8560], 12);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '© OpenStreetMap contributors'
}).addTo(map);
const destinations = [
{
name: "Panambur Beach",
coords: [12.9416, 74.8045],
desc: "Golden sands, Arabian sea waves, and mesmerizing sunsets."
},
{
name: "St. Aloysius Chapel",
coords: [12.8706, 74.8424],
desc: "Historic chapel known for its stunning fresco paintings."
},
{
name: "Kadri Manjunath Temple",
coords: [12.8887, 74.8608],
desc: "Ancient temple dedicated to Lord Manjunatha on Kadri Hill."
},
{
name: "Sultan Battery",
coords: [12.8856, 74.8121],
desc: "Watchtower built by Tipu Sultan offering riverfront views."
},
{
name: "Tannirbhavi Beach",
coords: [12.9017, 74.7924],
desc: "Tranquil beach ideal for swimming and sunset views."
}
];
destinations.forEach(place => {
const marker = L.marker(place.coords).addTo(map);
marker.bindPopup(`<b>${place.name}</b><br>${place.desc}`);
});
</script>
</body>
</html>