Is it possible to add a local image not georeferenced and set the coordinates in which it has to be (long,lat)? The only examples found were in the documentation which accesses a url from an ArcGIS server that provides a service for an ImageServer and adds it to a layer.
arcgis-api-js-4.12 arcgis-api-js-4.14 arcgis-api-js-4.15
Thanks for the answer. Unfortunately, the example given uses the method addImage from the MapImageLayer class which doesn't exist in version 4.x of the ArcGIS JS API. Also, in the example, he doesn't use a local image accessing the filesystem.
MapImageLayer exists under 4.15 - see here - and the previous link i gave was from 3.x - so it always existed.
Thanks for the answer. The MapImageLayer class exists. However, the method addImage doesn't, and is the one used to add the MapImage to the MapImageLayer in the example given. No access to local filesystem. Got it, thanks!
PictureMarkerSymbol is one workaround you can use in 4x.
Working Example: https://codepen.io/Jswag/pen/poeZJoq
We are releasing the ability to overlay images and videos in 4.24 next week! You can try it out now using the /next early access release, and we are looking to get some feedback on it. The functionality is even better than 3.x… you can overlay both images and videos in 2D and 3D, add/remove multiple images on the fly very easily, and use it with other 4.x capabilities like layer blending (note: so far you can only do layer blending with MediaLayers in 2D).
Here's a simple example: https://codepen.io/U_B_U/pen/MWQGWdb?editors=1000
Drop me a note and let me know how you will be using it 🙂