Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Military Bases Map</title>
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/leaflet@1.6.0/dist/leaflet.css"/>
- <script src="https://cdn.jsdelivr.net/npm/leaflet@1.6.0/dist/leaflet.js"></script>
- <style> #map { position: absolute; top: 0; bottom: 0; left: 0; right: 0; } </style>
- </head>
- <body>
- <div id="map"></div>
- <script>
- var map = L.map('map').setView([39.8283, -98.5795], 5);
- L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
- attribution: '© <a href="http://openstreetmap.org">OpenStreetMap</a>',
- subdomains: ['a', 'b', 'c']
- }).addTo(map);
- // Example marker
- var marker = L.marker([33.645, -85.825]).addTo(map);
- marker.bindPopup("Anniston Army Depot (Alabama)");
- // Add more markers as needed...
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement