Select to view content in your preferred language

Can we add a image using world file

416
1
11-17-2022 03:05 AM
DivyaArora
Emerging Contributor

We have tried to render an image using the data extent(https://developers.arcgis.com/javascript/latest/sample-code/layers-medialayer-images/). We are looking into the scenario where we can render the image using the worldfile format. Is it possible

1 Reply
Sage_Wall
Esri Regular Contributor

Hi @DivyaArora ,

It's currently not possible to directly position a MediaLayer using a worldfile. You can use a defined extent and rotation, corners, or control points. You might be able to calculate one of these from the worldfile, but it's not built in to the ArcGIS API for JavaScript.
https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageElement.html#...