In the last version of code, the class "AcMapLayerProviderComponent":
@Component({
selector: 'ac-map-layer-provider',
template: '',
})
export class AcMapLayerProviderComponent implements OnInit, OnChanges, OnDestroy {
/**
* refer to cesium docs for details https://cesiumjs.org/Cesium/Build/Documentation/ImageryProvider.html
*/
@Input()
options: { url?: string } = {};
...
should become something like that:
@Component({
selector: 'ac-map-layer-provider',
template: '',
})
export class AcMapLayerProviderComponent implements OnInit, OnChanges, OnDestroy {
/**
* refer to cesium docs for details https://cesiumjs.org/Cesium/Build/Documentation/ImageryProvider.html
*/
@Input()
options: { url?: string, [key:string]: any } = {};
...
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.
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.