Mapa Lab: Difference between revisions

494 bytes removed ,  Saturday at 09:31
Line 28: Line 28:




  // Marker: Bulacan State University with article link
  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>');


  // Polygon: Approximate boundary of Bulacan State University
  // POLYGON TYPE: Approximate boundaries of Barasoain Church
  var bulsuPolygon = L.polygon([
    [14.857630581410698, 120.81184712962074],
    [14.859724860926136, 120.81430888041209],
    [14.858521919350292, 120.81543541601346],
    [14.856447885966825, 120.81283903663416],
  ], {
    color: 'red',
    fillColor: '#f03',
    fillOpacity: 0.4
  }).addTo(map);
 
  bulsuPolygon.bindPopup('Bulacan State University Campus');
 
  // Polygon: Approximate boundary of Barasoain Church
var barasoainPolygon = L.polygon([
var barasoainPolygon = L.polygon([
   [14.846952933499336, 120.81225915935168],
   [14.846952933499336, 120.81225915935168],
Line 65: Line 48:
         alt="Barasoain Church"  
         alt="Barasoain Church"  
         style="width: 200px; height: auto; margin-top: 8px; border-radius: 4px;">
         style="width: 200px; height: auto; margin-top: 8px; border-radius: 4px;">
     <p style="font-size: 11px; color: #555;">The "Cradle of Democracy in the East"</p>
     <p style="font-size: 11px; color: #555; margin-bottom: 8px;">The "Cradle of Democracy in the East"</p>
   
    <a href="https://wikimalolos.com/wikimalolos/index.php/Barasoain_Church"
      target="_blank"
      style="color: #007bff; text-decoration: none; font-weight: bold; font-size: 12px;">
      Learn More at WikiMalolos →
    </a>
   </div>
   </div>
`;
`;


// Bind the HTML content to the polygon
// Bind the HTML content to the polygon