Skip to content

Commit 8e67c08

Browse files
Fix heatmapLibrary
1 parent 2d55ced commit 8e67c08

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## [2.1.0] - 2020-08-31
22

33
- #921 Add support to libraries: places, visualization, places, and geomerty.
4-
And keeps support for previous heatMapLibrary prop to avoid breaking older usage.
4+
And keeps support for previous heatmapLibrary prop to avoid breaking older usage.
55

66
## [2.0.4] - 2020-07-30
77

src/loaders/google_map_loader.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ export default (bootstrapURLKeys, heatmapLibrary) => {
5858
}
5959
}
6060

61-
// Support for older version using heatMapLibrary option
62-
if (heatMapLibrary) {
61+
// Support for older version using heatmapLibrary option
62+
if (heatmapLibrary) {
6363
bootstrapURLKeys.libraries
6464
? bootstrapURLKeys.libraries.append('visualization')
65-
: (bootstrapURLKeys['libraries'] = ['visualization']);
65+
: (bootstrapURLKeys.libraries = ['visualization']);
6666
console.warn(
67-
"heatMapLibrary will be deprecated in the future. Please use bootstrapURLKeys.libraries property instead (libraries=['visualization'])."
67+
"heatmapLibrary will be deprecated in the future. Please use bootstrapURLKeys.libraries property instead (libraries=['visualization'])."
6868
);
6969
}
7070

@@ -82,7 +82,9 @@ export default (bootstrapURLKeys, heatmapLibrary) => {
8282
(r, key) => `${r}&${key}=${bootstrapURLKeys[key]}`,
8383
''
8484
);
85-
85+
86+
const { libraries } = bootstrapURLKeys;
87+
8688
$script_(
8789
`${DEFAULT_URL}${API_PATH}${params}${libraries}`,
8890
() =>

0 commit comments

Comments
 (0)