diff --git a/src/plugins/cesium/ngv-plugin-cesium-navigation.ts b/src/plugins/cesium/ngv-plugin-cesium-navigation.ts index 0b30ed1..df18baf 100644 --- a/src/plugins/cesium/ngv-plugin-cesium-navigation.ts +++ b/src/plugins/cesium/ngv-plugin-cesium-navigation.ts @@ -47,8 +47,6 @@ export class NgvPluginCesiumNavigation extends LitElement { @property({type: Array}) public viewsConfig: IngvCesiumContext['views']; @state() - private tilesToLoad = 0; - @state() private currentViewIndex: number; private currentView: NavViews; private dataSource: CustomDataSource = new CustomDataSource(); @@ -223,72 +221,65 @@ export class NgvPluginCesiumNavigation extends LitElement { } render(): HTMLTemplateResult | string { + if (!this.viewsConfig?.length) return ''; return html`
- ${this.tilesToLoad > 0 - ? msg( - `Please wait for tiles loading. ${this.tilesToLoad} tiles to load`, - ) - : html` - ${this.viewsConfig.length > 1 - ? html` -
` - : ''} - ${!this.currentView - ? '' - : html`
-

- ${this.currentView.title} -

-
- -
- - - -
- -
-
`} - `} + ${this.viewsConfig.length > 1 + ? html` +
` + : ''} + ${!this.currentView + ? '' + : html`
+

+ ${this.currentView.title} +

+
+ +
+ + + +
+ +
+
`}
`; } }