diff --git a/projects/hslayers/components/add-data/common/url/details/details.component.html b/projects/hslayers/components/add-data/common/url/details/details.component.html index fa1f5614a5..4feee4dcdc 100644 --- a/projects/hslayers/components/add-data/common/url/details/details.component.html +++ b/projects/hslayers/components/add-data/common/url/details/details.component.html @@ -88,14 +88,14 @@
+
{{'ADDLAYERS.considerUsingTiles' | translateHs }}
} diff --git a/projects/hslayers/services/add-data/url/arcgis.service.ts b/projects/hslayers/services/add-data/url/arcgis.service.ts index eb7b3704c9..18871516dd 100644 --- a/projects/hslayers/services/add-data/url/arcgis.service.ts +++ b/projects/hslayers/services/add-data/url/arcgis.service.ts @@ -55,7 +55,7 @@ export class HsUrlArcGisService implements HsUrlTypeServiceModel { map_projection: '', tile_size: 512, use_resampling: false, - use_tiles: true, + useTiles: true, table: { trackBy: 'id', nameProperty: 'name', diff --git a/projects/hslayers/services/add-data/url/wms.service.ts b/projects/hslayers/services/add-data/url/wms.service.ts index c035bb5b36..5f730303ca 100644 --- a/projects/hslayers/services/add-data/url/wms.service.ts +++ b/projects/hslayers/services/add-data/url/wms.service.ts @@ -64,7 +64,7 @@ export class HsUrlWmsService implements HsUrlTypeServiceModel { map_projection: '', tile_size: 512, use_resampling: false, - use_tiles: true, + useTiles: true, visible: true, table: { trackBy: 'Name', @@ -475,10 +475,9 @@ export class HsUrlWmsService implements HsUrlTypeServiceModel { }, crossOrigin: 'anonymous', }; - const USE_TILES = options.useTiles ?? this.data.use_tiles; - const source: ImageWMS | TileWMS = !USE_TILES - ? new ImageWMS(sourceOptions) - : new TileWMS(sourceOptions); + const source: ImageWMS | TileWMS = this.data.useTiles + ? new TileWMS(sourceOptions) + : new ImageWMS(sourceOptions); const metadata = this.hsWmsGetCapabilitiesService.getMetadataObjectWithUrls(layer); const view = this.hsMapService.getMap().getView(); @@ -518,10 +517,10 @@ export class HsUrlWmsService implements HsUrlTypeServiceModel { */ layerOptions['capsExtentSet'] = !!layerOptions.extent; - const new_layer = USE_TILES + const new_layer = this.data.useTiles ? new Tile(layerOptions as TileOptions