diff --git a/js/clustermarker_marker.js b/js/clustermarker_marker.js index b2dbb41b52ea1551072efb8aff7eaea31f241744..9bacac95a99eb4c7e7095c8fb029c0de10172c64 100644 --- a/js/clustermarker_marker.js +++ b/js/clustermarker_marker.js @@ -21,7 +21,8 @@ Drupal.gmap.addHandler('gmap', function (elem) { obj.bind('iconsready', function () { if (!obj.clusterMarker) { - var options = Drupal.settings.gmap_markermanager; + // Force copying the settings so we don't overwrite them. + var options = jQuery.extend(true, {}, Drupal.settings.gmap_markermanager); if (options.clusterMarkerIcon.length) { options.clusterMarkerIcon = Drupal.gmap.getIcon(options.clusterMarkerIcon, 0); }