2,019
edits
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
<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], | var map = L.map('map').setView([14.8432, 120.8114], 15); // Center on Malolos City | ||
// MapTiler tile layer | // MapTiler tile layer | ||
Line 33: | Line 33: | ||
L.marker([14.857882, 120.813859]).addTo(map) | L.marker([14.857882, 120.813859]).addTo(map) | ||
.bindPopup('<b>Bulacan State University (BulSU)</b><br><a href="https://wikimalolos.com/wikimalolos/index.php/Making_a_Case_for_a_Historical_Founding_Date_of_Bulacan_State_University" target="_blank">Read Historical Article</a>'); | .bindPopup('<b>Bulacan State University (BulSU)</b><br><a href="https://wikimalolos.com/wikimalolos/index.php/Making_a_Case_for_a_Historical_Founding_Date_of_Bulacan_State_University" target="_blank">Read Historical Article</a>'); | ||
// Polygon: Approximate boundary of Bulacan State University | |||
var bulsuPolygon = L.polygon([ | |||
[14.8583, 120.8129], | |||
[14.8575, 120.8128], | |||
[14.8572, 120.8145], | |||
[14.8582, 120.8146] | |||
], { | |||
color: 'red', | |||
fillColor: '#f03', | |||
fillOpacity: 0.4 | |||
}).addTo(map); | |||
bulsuPolygon.bindPopup('Bulacan State University Campus'); | |||
</script> | </script> | ||
</body> | </body> | ||
</html> | </html> |