src/aria/map/MapManager.js
function (providerName, provider) {
                if (providers[providerName]) {
                    this.$logError(this.DUPLICATED_PROVIDER, providerName);
                } else {
                    if (ariaUtilsType.isObject(provider)) {
                        if (this._isValidProvider(provider)) {
                            providerInstances[providerName] = provider;
                            providers[providerName] = provider;
                        } else {
                            this.$logError(this.INVALID_PROVIDER, providerName);
                        }
                    } else {
                        providers[providerName] = provider;
                    }
                }
            }
function (providerName, provider) {
                if (providers[providerName]) {
                    this.$logError(this.DUPLICATED_PROVIDER, providerName);
                } else {
                    if (ariaUtilsType.isObject(provider)) {
                        if (this._isValidProvider(provider)) {
                            providerInstances[providerName] = provider;
                            providers[providerName] = provider;
                        } else {
                            this.$logError(this.INVALID_PROVIDER, providerName);
                        }
                    } else {
                        providers[providerName] = provider;
                    }
                }
            }
function ( providerName , provider ) { if ( providers [ providerName ] ) { this . $logError ( this . DUPLICATED_PROVIDER , providerName ) ; } else { if ( ariaUtilsType . isObject ( provider ) ) { if ( this . _isValidProvider ( provider ) ) { providerInstances [ providerName ] = provider ; providers [ providerName ] = provider ; } else { this . $logError ( this . INVALID_PROVIDER , providerName ) ; } } else { providers [ providerName ] = provider ; } } }
Add a provider by specifying the class that should be used to load dependencies and create maps instances
@param {String} providerName
@param {String|Object} provider classpath or Object with methods "load", "getMap" and "disposeMap"
Add a provider by specifying the class that should be used to load dependencies and create maps instances