Hi,
I want to dinamically change the file displayed in a raster layer, using javascript API .
How can I do that ?
I can point to the sublayer, but I can not see this property to change.
import MapView from 'esri/views/MapView'
import EsriMap from 'esri/Map'
import MapImageLayer from 'esri/layers/MapImageLayer'
let mapCtrl
let objMap
let objLayer
const createMap = (state, action) => {
objLayer = new MapImageLayer({ url:'http://rjgis01.reger.ons:6080/arcgis/rest/services/Mapa_GIS/MapServer' })
objMap = new EsriMap({
basemap: 'gray',
layers: [objLayer]
})
mapCtrl = new MapView({
container: action.domNode,
map: objMap,
zoom:5,
center:[-58.13, -14.30]
})
return { ...state, mapCtrl }