Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
"maps-googlemaps3-par-clustergridsize": "The grid size of a cluster in pixels.",
"maps-par-clustermaxzoom": "The maximum zoom level where clusters may exist.",
"maps-par-clusterzoomonclick": "Whether the default behaviour of clicking on a cluster is to zoom into it.",
"maps-par-clusteranimate": "Whether to enable smooth transitions when zooming and spiderfying.",
"maps-par-maxclusterradius": "The maximum radius that a cluster will cover.",
"maps-googlemaps3-par-clusteraveragecenter": "Whether the center of each cluster should be the average of all markers in the cluster.",
"maps-googlemaps3-par-clusterminsize": "The minimum number of markers to be in a cluster before the markers are hidden and a count is shown.",
Expand Down
1 change: 1 addition & 0 deletions resources/leaflet/LeafletCluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
maxClusterRadius: options.clustermaxradius,
disableClusteringAtZoom: options.clustermaxzoom + 1,
zoomToBoundsOnClick: options.clusterzoomonclick,
animate: options.clusteranimate,
spiderfyOnMaxZoom: options.clusterspiderfy,
iconCreateFunction: function(cluster) {
var childCount = cluster.getChildCount();
Expand Down
6 changes: 6 additions & 0 deletions src/LeafletService.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ public function getParameterInfo(): array {
'message' => 'maps-par-clusterzoomonclick',
];

$params['clusteranimate'] = [
'type' => ParameterTypes::BOOLEAN,
'default' => true,
'message' => 'maps-par-clusteranimate',
];

$params['clustermaxradius'] = [
'type' => ParameterTypes::INTEGER,
'default' => 80,
Expand Down
Loading