From 100104c58d68e807373e4bbb20d6bc34743cf481 Mon Sep 17 00:00:00 2001 From: Josh Duff Date: Tue, 12 Jan 2016 14:36:27 -0600 Subject: [PATCH] MultiMap: pass config object to child maps Allowing you to pass, among other things, a data series to child maps. --- src/multimap.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/multimap.js b/src/multimap.js index fb91201a..9a67e6c1 100644 --- a/src/multimap.js +++ b/src/multimap.js @@ -59,7 +59,7 @@ jvm.MultiMap.prototype = { mapName = multimap.params.mapNameByCode(code, multimap); if (!multimap.drillDownPromise || multimap.drillDownPromise.state() !== 'pending') { - multimap.drillDown(mapName, code); + multimap.drillDown(mapName, code, config); } }); } @@ -85,7 +85,7 @@ jvm.MultiMap.prototype = { return deferred; }, - drillDown: function(name, code){ + drillDown: function(name, code, config){ var currentMap = this.history[this.history.length - 1], that = this, focusPromise = currentMap.setFocus({region: code, animate: true}), @@ -103,7 +103,7 @@ jvm.MultiMap.prototype = { this.drillDownPromise.then(function(){ currentMap.params.container.hide(); if (!that.maps[name]) { - that.addMap(name, {map: name, multiMapLevel: currentMap.params.multiMapLevel + 1}); + that.addMap(name, jvm.$.extend(config, {map: name, multiMapLevel: currentMap.params.multiMapLevel + 1})); } else { that.maps[name].params.container.show(); }