I am adding one arcgis dynamic map service layer on the base map using dojo module in javscript, But it is not loading.
I can't figure out why it is not loading, Please help me on this issue, I am stucked here.
The map dot addLayer method is not wanting an array it is expecting a single layer. So remove the square brackets and it will work fine.
It's easy to get confused between addLayer, which handles just one layer at a time, and addLayers, which expects an array as the input parameter. When I know I will be adding more layers later, I'll go ahead and use addLayers, even if I only have an array with one element in it to start. Then I'm set with the syntax for multiple layers at a later time.
I agree, I do the same.
Thank you so much it helped me a lot
Retrieving data ...