AW-4605
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good Details

AW-4620
Willem Dantuma 2023-02-02 09:42:57 +01:00
parent 2588732b91
commit 846eee1ae5
1 changed files with 1 additions and 3 deletions

View File

@ -139,9 +139,7 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange
}
if (l && l.rendering && l.rendering.renderoutputType == "Image") {
var ri = l.rendering as IRenderoutputImage;
// convert to EPSG:4326 asworkaround for cesium
var projectedExtent = proj.transformExtent( ri.extent, 'EPSG:3857','EPSG:4326');
let source = new ImageStatic({ imageExtent:projectedExtent,projection:'EPSG:4326', crossOrigin: 'use-credentials', url: `${this._apiEndPoint}/api/v1/items/${item.code}/mapimage/${layerIndex}?v=${Date.parse(item.updated)}` });
let source = new ImageStatic({ imageExtent:ri.extent,projection:'EPSG:3857', crossOrigin: 'use-credentials', url: `${this._apiEndPoint}/api/v1/items/${item.code}/mapimage/${layerIndex}?v=${Date.parse(item.updated)}` });
layer = new Image({ source: source });
}
return layer;