forked from apu52/Travel_Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mapa.html
94 lines (69 loc) · 4.24 KB
/
mapa.html
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
<!DOCTYPE html>
<html>
<head>
<title>Tourism Map</title>
<!-- Include Leaflet.js CSS -->
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" />
<style>
/* Set the height and width for the map container */
#map {
height: 100vh; /* Full viewport height */
width: 100%; /* Full width */
}
</style>
</head>
<body>
<div id="map"></div>
<!-- Include Leaflet.js JavaScript -->
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
<script>
// Initialize the map and set its view to a chosen location and zoom level
const map = L.map('map').setView([20.5937, 78.9629], 5); // Coordinates for India (latitude, longitude)
// Add a tile layer to the map (OpenStreetMap tiles)
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 19,
attribution: '© OpenStreetMap contributors',
}).addTo(map);
const TajMahal = L.marker([27.1751, 78.0421]).addTo(map);
TajMahal.bindPopup('<b>Taj Mahal</b><br>A UNESCO World Heritage Site.').openPopup();
const qutubMinar = L.marker([28.5245, 77.1855]).addTo(map);
qutubMinar.bindPopup('<b>Qutub Minar</b><br>A historical monument in Delhi.');
const gatewayOfIndia = L.marker([18.922, 72.8347]).addTo(map);
gatewayOfIndia.bindPopup('<b>Gateway of India</b><br>Iconic tourist attraction in Mumbai.');
const redFort = L.marker([28.6562, 77.2410]).addTo(map);
redFort.bindPopup('<b>Red Fort</b><br>A UNESCO World Heritage Site in Delhi.');
const hawaMahal = L.marker([26.9239, 75.8267]).addTo(map);
hawaMahal.bindPopup('<b>Hawa Mahal</b><br>The Palace of Winds in Jaipur.');
const charminar = L.marker([17.3616, 78.4747]).addTo(map);
charminar.bindPopup('<b>Charminar</b><br>A historic monument in Hyderabad.');
const mysorePalace = L.marker([12.3052, 76.6551]).addTo(map);
mysorePalace.bindPopup('<b>Mysore Palace</b><br>A majestic palace in Mysore.');
const victoriaMemorial = L.marker([22.5448, 88.3426]).addTo(map);
victoriaMemorial.bindPopup('<b>Victoria Memorial</b><br>A museum and tourist attraction in Kolkata.');
const konarkSunTemple = L.marker([19.8876, 86.0945]).addTo(map);
konarkSunTemple.bindPopup('<b>Konark Sun Temple</b><br>A 13th-century Sun temple in Odisha.');
const golkondaFort = L.marker([17.3833, 78.4011]).addTo(map);
golkondaFort.bindPopup('<b>Golkonda Fort</b><br>A historic fortress near Hyderabad.');
const kochiFort = L.marker([9.9665, 76.2426]).addTo(map);
kochiFort.bindPopup('<b>Fort Kochi</b><br>A historic area known for its colonial charm in Kerala.');
const eiffelTower = L.marker([48.8584, 2.2945]).addTo(map);
eiffelTower.bindPopup('<b>Eiffel Tower</b><br>An iconic landmark in Paris, France.');
const statueOfLiberty = L.marker([40.6892, -74.0445]).addTo(map);
statueOfLiberty.bindPopup('<b>Statue of Liberty</b><br>A symbol of freedom in New York City, USA.');
const greatWall = L.marker([40.4319, 116.5704]).addTo(map);
greatWall.bindPopup('<b>Great Wall of China</b><br>A historic wonder in Beijing, China.');
const christRedeemer = L.marker([-22.9519, -43.2105]).addTo(map);
christRedeemer.bindPopup('<b>Christ the Redeemer</b><br>A famous statue in Rio de Janeiro, Brazil.');
const sydneyOperaHouse = L.marker([-33.8568, 151.2153]).addTo(map);
sydneyOperaHouse.bindPopup('<b>Sydney Opera House</b><br>A world-famous architectural marvel in Sydney, Australia.');
const pyramidsGiza = L.marker([29.9792, 31.1342]).addTo(map);
pyramidsGiza.bindPopup('<b>Pyramids of Giza</b><br>An ancient wonder in Cairo, Egypt.');
const machuPicchu = L.marker([-13.1631, -72.5450]).addTo(map);
machuPicchu.bindPopup('<b>Machu Picchu</b><br>An Incan citadel in the Andes Mountains, Peru.');
const colosseum = L.marker([41.8902, 12.4922]).addTo(map);
colosseum.bindPopup('<b>Colosseum</b><br>An ancient amphitheater in Rome, Italy.');
const santorini = L.marker([36.3932, 25.4615]).addTo(map);
santorini.bindPopup('<b>Santorini</b><br>A stunning island in Greece known for its white-washed buildings and sunsets.');
</script>
</body>
</html>