Add tiff file to map

02-03-2020 12:36 AM
New Contributor

Hello everyone,

I'm currently trying to add a local tiff file to my map like this :

var layer = new ImageryLayer({
    format: "tiff"

var map = new Map({
    basemap: "dark-gray-vector",
    layers: [layer]

var view = new MapView({
    container: "viewDiv",
    map: map,
    center: [-100, 40],
    zoom: 5

But it's not working, I got those errors : 

[esri.layers.ImageryLayer] #load() Failed to load layer (title: 'Layer', id: '1700a2d2e51-layer-0') d
[esri.views.LayerViewManager] Failed to create view for layer 'Layer, id:1700a2d2e51-layer-0' of type 'imagery'.

I checked some solutions to add my file on the map but none worked. Can someone help me to figure out how to do it ? 

0 Kudos
1 Reply
MVP Esteemed Contributor


   The ImageryLayer class is for displaying data from an imagery server. Currently there is no support in the 4.x api for displaying a geo-referenced image. That ability is still marked as coming soon.