Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .src/map.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Equator Content Connections Map</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" />
<style>
#map { height: 600px; width: 100%; }
</style>
</head>
<body>
<h1>Global Content Connections Map</h1>
<div id="map"></div>

<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
<script>
const map = L.map('map').setView([0, 0], 2);

L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '© OpenStreetMap contributors'
}).addTo(map);

// Example marker at the equator
L.marker([0, 0]).addTo(map)
.bindPopup('Equator Content Connections Headquarters')
.openPopup();

// Add more markers here or load dynamically from JSON
<script>
const map = L.map('map').setView([0, 0], 2);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '© OpenStreetMap contributors'
}).addTo(map);

// Load partners data
fetch('partners.json')
.then(res => res.json())
.then(partners => {
partners.forEach(partner => {
L.marker([partner.latitude, partner.longitude]).addTo(map)
.bindPopup(`<b>${partner.name}</b><br>${partner.description}<br><a href="${partner.website}" target="_blank">Website</a>`);
});
})
.catch(err => console.error('Error loading partners:', err));
</script>
<section>
<h2>Explore Our Global Map</h2>
<p><a href=".src/map.html" target="_blank" rel="noopener">View the Interactive Content Connections Map</a></p>
</section>
</body>
</html>
Loading