Skip to content

Commit

Permalink
Map point clustering implemented - small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JaseMK committed May 25, 2023
1 parent 364d72b commit c901128
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion website/biography.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@

<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css" integrity="sha256-kLaT2GOSpHechhsozzB+flnD+zUyjE2LlfWPgU04xyI=" crossorigin="" />
<script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js" integrity="sha256-WBkoXOwTeyKclOHuWtc+i2uENFpDZ9YPdf5Hf+D7ewM=" crossorigin=""></script>
<link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.4.1/dist/MarkerCluster.css" />
<link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.4.1/dist/MarkerCluster.Default.css" />
<script src="https://unpkg.com/leaflet.markercluster@1.4.1/dist/leaflet.markercluster.js" ></script>

<style>
html, body {
Expand Down Expand Up @@ -328,6 +331,8 @@
<script src="vendor/datatables/jquery.dataTables.min.js"></script>
<script src="vendor/datatables/dataTables.bootstrap4.min.js"></script>



<!-- Page level custom scripts -->

<script>
Expand Down Expand Up @@ -443,7 +448,10 @@ function zoomToPoint(lat, long) {
meetupsData = result;
var pointsLayer = L.geoJSON($geoJsonData, {
onEachFeature: onEachFeature
}).addTo(map);
});
var clusterLayer = L.markerClusterGroup();
clusterLayer.addLayer(pointsLayer);
map.addLayer(clusterLayer);
map.fitBounds(pointsLayer.getBounds());


Expand Down

0 comments on commit c901128

Please sign in to comment.