Esri / arcgis-viewer-flex

Source code for ArcGIS Viewer for Flex - a great application framework for web applications.
http://links.esri.com/flexviewer
Apache License 2.0
134 stars 151 forks source link

Set default basemap when using addarcgisbasemaps #245

Closed adgiles closed 10 years ago

adgiles commented 10 years ago

Would it be possible to add another attribute to the map tag that allows the initial basemap to be set when using the addarcgisbasemaps="true". The tag could use similar values as the javascript api i.e. streets, oceans etc.....

This would negate the user from having to specify all the online basemaps if they want to change the default as per the work around here:

http://forums.arcgis.com/threads/102672-base-map-default-at-start-up

Regards

Anthony

bsvensson commented 10 years ago

The viewer already support this (setting default basemap). There is no need to specify ALL the online basemap in order to set the default on. Robert's example shows how.

In the Builder, you can do this for "basemaps & operational layers".

For "web maps", you would do it by changing the basemap of the web map itself.