Skip to content
Snippets Groups Projects
Commit 44cab808 authored by http://druler.com's avatar http://druler.com
Browse files

Issue #1208420 by dafeder, kasperg, vasi1186: Fixed Grid Size and MaxZoom not...

Issue #1208420 by dafeder, kasperg, vasi1186: Fixed Grid Size and MaxZoom not working on markerclusterer.
parent 82a64cba
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,13 @@ Drupal.gmap.addHandler('gmap', function (elem) {
obj.bind('init', function () {
// Set up the markermanager.
// Make sure the gridSize and maxZoom are intergers.
if (Drupal.settings.gmap_markermanager.gridSize){
Drupal.settings.gmap_markermanager.gridSize = parseInt(Drupal.settings.gmap_markermanager.gridSize);
}
if (Drupal.settings.gmap_markermanager.maxZoom){
Drupal.settings.gmap_markermanager.maxZoom = parseInt(Drupal.settings.gmap_markermanager.maxZoom);
}
obj.mc = new MarkerClusterer(obj.map, [], {
maxZoom: parseInt(Drupal.settings.gmap_markermanager["maxZoom"]),
gridSize: parseInt(Drupal.settings.gmap_markermanager["gridSize"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment