Skip to content

Commit be2ea1d

Browse files
authored
Add an error call back param
This allows you to set an onError callback function in case the map doesn't load correctly.
1 parent f3c70a6 commit be2ea1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/GoogleApi.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ export const GoogleApi = function(opts) {
3131
v: googleVersion,
3232
channel: channel,
3333
language: language,
34-
region: region
34+
region: region,
35+
onError: 'ERROR_FUNCTION'
3536
};
3637

3738
let paramStr = Object.keys(params)

0 commit comments

Comments
 (0)