This commit is contained in:
Vladyslav_Prykhodko 2019-10-09 20:30:11 +03:00 committed by Andrew Shvayka
parent 53ea572be6
commit 4e37fb27b3

View File

@ -87,7 +87,7 @@ export default class TbGoogleMap {
this.initMapFunctionName = 'initGoogleMap_' + this.mapId; this.initMapFunctionName = 'initGoogleMap_' + this.mapId;
window[this.initMapFunctionName] = function() { // eslint-disable-line no-undef, angular/window-service window[this.initMapFunctionName] = function() { // eslint-disable-line no-undef, angular/window-service
lazyLoad.load({ type: 'js', path: 'https://unpkg.com/@google/@1.2.3/src/markerwithlabel.js' }).then( // eslint-disable-line no-undef lazyLoad.load({ type: 'js', path: 'https://unpkg.com/@google/markerwithlabel@1.2.3/src/markerwithlabel.js' }).then( // eslint-disable-line no-undef
function success() { function success() {
gmGlobals.gmApiKeys[tbMap.apiKey].loaded = true; gmGlobals.gmApiKeys[tbMap.apiKey].loaded = true;
initGoogleMap(); initGoogleMap();