-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels