Hani,
You are not required to use basemaps at all in your Viewer if you choose not to. Can you be more specific? If you are talking about turning off (setting the visibility to false) at run time then you can do this using the eLayerList widget.
http://www.arcgis.com/home/item.html?id=58d9bb5693c94918a3934781d7234d18
The widget can be configured to show basemaps which also makes then able to be turned on and off.
Hani,
You are not required to use basemaps at all in your Viewer if you choose not to. Can you be more specific? If you are talking about turning off (setting the visibility to false) at run time then you can do this using the eLayerList widget.
http://www.arcgis.com/home/item.html?id=58d9bb5693c94918a3934781d7234d18
The widget can be configured to show basemaps which also makes then able to be turned on and off.
Thank you Robert,
Perhaps my post is confusing, I want to make the basemap layer invisible at the run time (exactly as you've mentioned). I tried the eLayerList add in, and it worked well!
Thank you again and Best Regards,
Hani,
Glad I could help. Please mark my reply as the correct answer.
Robert
Yes, I forgot marking it as a correct answer!