Skip to content

Commit

Permalink
Fix heatmapLibrary
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmichaeldiego committed Aug 31, 2020
1 parent 2d55ced commit 7877457
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/loaders/google_map_loader.js
Expand Up @@ -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
}
Expand Down Expand Up @@ -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'])."
);
Expand All @@ -82,7 +82,7 @@ export default (bootstrapURLKeys, heatmapLibrary) => {
(r, key) => `${r}&${key}=${bootstrapURLKeys[key]}`,
''
);

$script_(
`${DEFAULT_URL}${API_PATH}${params}${libraries}`,
() =>
Expand Down

0 comments on commit 7877457

Please sign in to comment.