From 7877457ebfad89a43ecdebad773a26f4dd8438d2 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 31 Aug 2020 06:38:55 +0200 Subject: [PATCH] Fix heatmapLibrary --- src/loaders/google_map_loader.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/loaders/google_map_loader.js b/src/loaders/google_map_loader.js index 3f151425..0ed6c445 100644 --- a/src/loaders/google_map_loader.js +++ b/src/loaders/google_map_loader.js @@ -13,7 +13,7 @@ const _customPromise = new Promise((resolve) => { }); // TODO add libraries language and other map options -export default (bootstrapURLKeys, heatmapLibrary) => { +export default (bootstrapURLKeys, heatMapLibrary) => { if (!$script_) { $script_ = require('scriptjs'); // eslint-disable-line } @@ -62,7 +62,7 @@ export default (bootstrapURLKeys, heatmapLibrary) => { if (heatMapLibrary) { bootstrapURLKeys.libraries ? bootstrapURLKeys.libraries.append('visualization') - : (bootstrapURLKeys['libraries'] = ['visualization']); + : (bootstrapURLKeys.libraries = ['visualization']); console.warn( "heatMapLibrary will be deprecated in the future. Please use bootstrapURLKeys.libraries property instead (libraries=['visualization'])." ); @@ -82,7 +82,7 @@ export default (bootstrapURLKeys, heatmapLibrary) => { (r, key) => `${r}&${key}=${bootstrapURLKeys[key]}`, '' ); - + $script_( `${DEFAULT_URL}${API_PATH}${params}${libraries}`, () =>