Select to view content in your preferred language

Display any picture on the map

362
1
03-09-2022 12:14 AM
TayLee
by
Emerging Contributor

Idea is that user could select any picture from their gallery and render on the map. Subsequently we would provide editing operations for them to manually adjust it on the map

To test this idea: I am using RasterLayer to render a jpg file with a world file (.jgw). But my JPG wasn't rendered at all. 

Does RasterLayer supports a picture and its associated world file? 

Any advice on implementing this workflow, thanks in advance!

Tags (2)
0 Kudos
1 Reply
Nicholas-Furness
Esri Regular Contributor

Hi @TayLee,

This is possible, yes. Check out this gist for an example and make sure that you've got your world file and auxiliary projection file set up properly (you will need both).

Please note that accessing a local raster file like this will require a Standard Runtime license when you deploy your app.

Hope this helps.

0 Kudos