API Docs for: 1.0.0
Show:

eZ.GoogleMapAPILoader Class

Google Maps API loader. It fires the mapAPIReady event when the Google Map API is ready or mapAPIFailed event if a loading error occurs.

Constructor

eZ.GoogleMapAPILoader

(
  • [JSONPRequest]
)

Parameters:

  • [JSONPRequest] Function optional

    constructor function of an object having the same behaviour as Y.JSONPRequest

Methods

_mapFailed

() protected

Method handling failures during maps API loading

_mapReady

() protected

Method handling successfull maps API loading

isAPILoaded

() Boolean

Checking if the map API is loaded already

Returns:

Boolean:

true if map API was loaded, false if not

load

()

Trying to load Google Maps API via JSONP and firing either mapAPIReady or mapAPIFailed depending on results

Properties

_isLoading

Boolean protected

Flag indicating if the loader is currently in progress of loading. Needed to avoid concurrent loading.

Default: false

_JSONPRequest

Function protected

Constructor function of the object used to load the Google Map API

Default: Y.JSONPRequest

Events

mapAPIFailed

Fired once map API have failed to load

mapAPIReady

Fired once map API is correctly loaded