Select to view content in your preferred language

Adding raster data to MapView

1005
1
08-16-2017 06:05 AM
JacobTodd3
New Contributor

I am working with ArcGIS API for Javascript 4.x and have created a service that contains a raster dataset. I have been able to successfully add and view all other published services (/MapServer) in my MapView except for the published raster dataset. In my research I have noticed that many of the samples where imagery is added to the MapView are of ImageServer type. In the 4X version of the API, is it a requirement to have the Image Service server extension to view raster datasets in a custom mapping application?

If it is not, could someone provide a sample of how to add a raster dataset to a MapView?

Thanks in advance

Tags (1)
0 Kudos
1 Reply
ThomasSolow
Regular Contributor

You may be able to create a dynamic map image sublayer from a raster: Sublayer | API Reference | ArcGIS API for JavaScript 4.4 

Here's a sample that does something similar: ArcGIS API for JavaScript Sandbox 

Specifically, you're probably interested in a dynamic data layer, which is the source for a single dynamic sublayer: Sublayer | API Reference | ArcGIS API for JavaScript 4.4 

0 Kudos