Commit 9b7e1824 authored by vdsh's avatar vdsh
Browse files

git commit -m 'Issue #3303759 by alansaviolobo, vdsh: clustering on a external...

git commit -m 'Issue #3303759 by alansaviolobo, vdsh: clustering on a external geojson data source' --author="Alan Lobo <1454-alansaviolobo@users.noreply.drupalcode.org>"
parent 2755ef79
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -198,7 +198,7 @@
            var geojsonLayer = new L.GeoJSON(myFeatures[key], Drupal.leafletBBox.geoJSONOptions);

            // to cluster on external data source, see https://www.drupal.org/project/leaflet_geojson/issues/3303759
            if (typeof L.markerClusterGroup() === 'object') {
            if (typeof L.markerClusterGroup === 'object') {
              var markerClusterGroup = L.markerClusterGroup();
              markerClusterGroup.addLayer(geojsonLayer);
              layerGroup.addLayer(markerClusterGroup);