Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Async loading and google global error. #1853

@xavhan

Description

@xavhan

Since I upgraded to 2.3.3 I got 4 errors at loading time.

Uncaught ReferenceError: google is not defined @ markerwithlabel.js:71
Uncaught ReferenceError: google is not defined @ infobox.js:116
Uncaught ReferenceError: google is not defined @ keydragzoom.js:820
Uncaught ReferenceError: google is not defined @ richmarker.js:60 

It seems to be caused by the async loading of the google maps API.
I saw that

angular.module('uiGmapgoogle-maps.mocks', ['uiGmapgoogle-maps'])
try to mock those but it isn't working.

Bonus : Goal of making those lib dependencies is, I think, to make them optional. Is it doable today?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions