Casimiro Buendia: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 12: Line 12:
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<script>
<script>
   var map = L.map('map').setView([14.8432, 120.8114], 14); // Centered on Malolos City
   var map = L.map('map').setView([14.8432, 120.8114], 14); // Center on Malolos City


   // MapTiler tile layer
   // MapTiler tile layer
Line 21: Line 21:
   }).addTo(map);
   }).addTo(map);


   // Marker: Malolos City
   // Marker: Malolos City with clickable URL
   L.marker([14.8432, 120.8114]).addTo(map)
   L.marker([14.8432, 120.8114]).addTo(map)
     .bindPopup('Malolos City')
     .bindPopup('<b>Malolos City</b><br><a href="https://malolos.gov.ph" target="_blank">Visit Website</a>')
     .openPopup();
     .openPopup();


Navigation menu