I publish a map service and it supports dynamic layers. In the map server's dynamic workspaces, i add 'Raster Folder' type workspace. How to add raster data to the map, in javascript api?
//get raster datasource //set RasterDataSource var rasterDataSource = new RasterDataSource(); rasterDataSource.workspaceId = "MyRasterWorkspaceID"; rasterDataSource.dataSource = "test" //set LayerDataSource var layerDataSource = new LayerDataSource(); layerDataSource.dataSource = rasterDataSource; //next step, how to display the raster data to the map? //arcgis server url: http://localhost:6080/arcgis/rest/services/test/MapServer/dynamicLayer
Fengyum,
Do you just want to add a raster layer to a map?
If so look here:
Thank you, Rickey Fite. The published map server did not contain the raster data as one layer of the server.