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}`, () =>