diff --git a/CHANGELOG.md b/CHANGELOG.md index b3edfd99..c4382895 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ ## [2.1.0] - 2020-08-31 - #921 Add support to libraries: places, visualization, places, and geomerty. -And keeps support for previous heatMapLibrary prop to avoid breaking older usage. +And keeps support for previous heatmapLibrary prop to avoid breaking older usage. ## [2.0.4] - 2020-07-30 diff --git a/src/loaders/google_map_loader.js b/src/loaders/google_map_loader.js index 3f151425..e0158af8 100644 --- a/src/loaders/google_map_loader.js +++ b/src/loaders/google_map_loader.js @@ -58,13 +58,13 @@ export default (bootstrapURLKeys, heatmapLibrary) => { } } - // Support for older version using heatMapLibrary option - if (heatMapLibrary) { + // Support for older version using heatmapLibrary option + 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'])." + "heatmapLibrary will be deprecated in the future. Please use bootstrapURLKeys.libraries property instead (libraries=['visualization'])." ); } @@ -82,7 +82,9 @@ export default (bootstrapURLKeys, heatmapLibrary) => { (r, key) => `${r}&${key}=${bootstrapURLKeys[key]}`, '' ); - + + const { libraries } = bootstrapURLKeys; + $script_( `${DEFAULT_URL}${API_PATH}${params}${libraries}`, () =>