How to change the basemap of arcgis-viewer-flex-3.4

1852
3
Jump to solution
08-15-2013 05:22 PM
wukongsun
New Contributor
Hello all,
    I am learning the arcgis-viewer-flex-3.4 recently,and i want to know how to change the default basemap.
    I have tried to add <basemap> in the config.xml,but the dafault basemaps were still exist.
    Is there anyone can help?
    Thanks in advance!
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Frequent Contributor
Wukong,

You have to set the addarcgisbasemaps to false. The following example is set to use a geographic projection:

<map wraparound180="false" initialextent="58.36 28.1 70.36 35.1" fullextent="58.36 28.1 70.36 35.1"  addarcgisbasemaps="false">   <basemaps>     <layer label="Mapping" type="tiled" visible="true" alpha="1" url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer" icon="assets/images/Base_Mapping.png" />   </basemaps> </map>


Regards

Anthony

View solution in original post

0 Kudos
3 Replies
wukongsun
New Contributor
which files are in relation to basemap.
0 Kudos
AnthonyGiles
Frequent Contributor
Wukong,

You have to set the addarcgisbasemaps to false. The following example is set to use a geographic projection:

<map wraparound180="false" initialextent="58.36 28.1 70.36 35.1" fullextent="58.36 28.1 70.36 35.1"  addarcgisbasemaps="false">   <basemaps>     <layer label="Mapping" type="tiled" visible="true" alpha="1" url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer" icon="assets/images/Base_Mapping.png" />   </basemaps> </map>


Regards

Anthony
0 Kudos
wukongsun
New Contributor
Wukong,

You have to set the addarcgisbasemaps to false. The following example is set to use a geographic projection:

<map wraparound180="false" initialextent="58.36 28.1 70.36 35.1" fullextent="58.36 28.1 70.36 35.1"  addarcgisbasemaps="false">
  <basemaps>
    <layer label="Mapping" type="tiled" visible="true" alpha="1" url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer" icon="assets/images/Base_Mapping.png" />
  </basemaps>
</map>


Regards

Anthony


Yes , this is.
Thank you very much.:cool:
0 Kudos