Skip to content
Snippets Groups Projects
Commit 576acaa8 authored by Brandon Bergren's avatar Brandon Bergren
Browse files

Prevent clustermarker from accidentally modifying the settings. Prevents a...

Prevent clustermarker from accidentally modifying the settings. Prevents a javascript error when using multiple maps.
parent af9ff3b8
No related branches found
Tags 6.x-2.0-beta1
No related merge requests found
......@@ -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);
}
......
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