You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, url field isn't mandatory as declared on the previous post but the following code check and raise an error if the url isn't declared and the provider isn't OFFLINE.
...
ngOnInit() {
if (!Checker.present(this.options.url) && this.provider !== MapLayerProviderOptions.OFFLINE) {
throw new Error('options must have a url');
}
...
This check should not exist anymore as for exemple 'MapboxStyleImageryProvider' doesn't need any url if styleId, accessToken and username are declared.
In the last version of code, the class "AcMapLayerProviderComponent":
should become something like that:
Declaring options like that allows to add whatever field needed for the chosen provider. Most of them are using much more than just a url.
The text was updated successfully, but these errors were encountered: