diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/maps/map-layer.ts b/ui-ngx/src/app/modules/home/components/widget/lib/maps/map-layer.ts index 87ca69034f..655cc26374 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/maps/map-layer.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/maps/map-layer.ts @@ -165,17 +165,9 @@ export abstract class TbMapLayer { return spec$.pipe( map(spec => { const sourceSpec = (spec.sources['esri'] as VectorSourceSpecification); - const tileUrl = sourceSpec.url; const attribution = sourceSpec.attribution; - const transformRequest = (url: string, resourceType: ResourceType) => { - if (resourceType === 'Tile') { - url = tileUrl + '/' + url; - } - return {url} - } const gl = L.maplibreGL({ style: spec, - transformRequest }); gl.options.attribution = attribution; return gl; diff --git a/ui-ngx/src/assets/map/openstreetmap_hybrid_reference_style.json b/ui-ngx/src/assets/map/openstreetmap_hybrid_reference_style.json index f28295c964..b40e5a3838 100644 --- a/ui-ngx/src/assets/map/openstreetmap_hybrid_reference_style.json +++ b/ui-ngx/src/assets/map/openstreetmap_hybrid_reference_style.json @@ -6,7 +6,10 @@ "esri": { "type": "vector", "url": "https://basemaps.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer", - "attribution": "Map data (c) OpenStreetMap contributors, Microsoft, Facebook, Google, Esri Community Maps contributors, Map layer by Esri" + "attribution": "Map data (c) OpenStreetMap contributors, Microsoft, Facebook, Google, Esri Community Maps contributors, Map layer by Esri", + "tiles": [ + "https://basemaps.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer/tile/{z}/{y}/{x}.pbf" + ] } }, "layers": [ diff --git a/ui-ngx/src/assets/map/world_edition_hybrid_reference_style.json b/ui-ngx/src/assets/map/world_edition_hybrid_reference_style.json index e7f3922c8b..852d0455a0 100644 --- a/ui-ngx/src/assets/map/world_edition_hybrid_reference_style.json +++ b/ui-ngx/src/assets/map/world_edition_hybrid_reference_style.json @@ -6,7 +6,10 @@ "esri": { "type": "vector", "url": "https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer", - "attribution": "Sources: Esri, TomTom, Garmin, FAO, NOAA, USGS, © OpenStreetMap contributors, and the GIS User Community" + "attribution": "Sources: Esri, TomTom, Garmin, FAO, NOAA, USGS, © OpenStreetMap contributors, and the GIS User Community", + "tiles": [ + "https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/tile/{z}/{y}/{x}.pbf" + ] } }, "layers": [