Library loader
This library requires a MapBox token and jQuery, this loader assures that token is available and loads jQuery from cdn if not already loaded in the document. When requirements are satisfied the callback passed to the osmloader#ready method is invoked
Methods
(static) load()
Loads the library and emits an event when loaded
The event emitted is 'onDrawerLoader'
(static) requirejQuery(then)
Checks if jQuery is loaded, if not loads it, and then execute the cb
Parameters:
Name | Type | Description |
---|---|---|
then |
function | callback to execute after jQuery is fully loaded |