Select to view content in your preferred language

How to turn off the �??basemap�?� in the �??ArcGIS Viewer for Flex�?�?

7358
8
12-30-2012 08:04 PM
JamalNUMAN
Legendary Contributor
How to turn off the �??basemap�?� in the �??ArcGIS Viewer for Flex�?�?

I unchecked the option �??add arcgis online basemaps�?�,

[ATTACH=CONFIG]20338[/ATTACH]

Nevertheless, when the link is launched, the basemap is there and there is no option to turn it off

[ATTACH=CONFIG]20339[/ATTACH]

what might be the solution?



Thank you

Best

Jamal
----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
8 Replies
AnthonyGiles
Honored Contributor
Jamal,

I do not use the application builder but my guess is that you must have at least one base map specified in the set up. Once you have unchecked the add arcgis online basemap try adding your own from the arcgis server tab,

Regards

Anthony
0 Kudos
by Anonymous User
Not applicable
Original User: ad_giles@hotmail.com

Jamal,

I do not use the application builder but my guess is that you must have at least one base map specified in the set up. Once you have unchecked the add arcgis online basemap try adding your own from the arcgis server tab.

Then on the layout tab turn off the map switcher widget

Regards

Anthony
0 Kudos
by Anonymous User
Not applicable
Original User: weiland00

I don't use the Builder but I added a blank basemap directly to the config.xml to make this happen.  All you have to do is add:

<layer label="Blank" type="dynamic" visible="false" url="" />

between the <basemaps> tags. 

For 3.x, you can add a icon property pointing to a white/blank png file.

<layer label="Blank" type="dynamic" visible="false" icon="assets/images/basemap_blank.png" url="" />
JamalNUMAN
Legendary Contributor
I don't use the Builder but I added a blank basemap directly to the config.xml to make this happen.  All you have to do is add:

<layer label="Blank" type="dynamic" visible="false" url="" />

between the <basemaps> tags. 

For 3.x, you can add a icon property pointing to a white/blank png file.

<layer label="Blank" type="dynamic" visible="false" icon="assets/images/basemap_blank.png" url="" />


Many thanks Anthony and Trevor for the feedback.

Sounds that unchecking the option �??add arcgis online basemaps�?� is sufficient to turn off the basemap! I�??m not sure if this is permanent or just temporary!

[ATTACH=CONFIG]20345[/ATTACH]

I have little experience to play with the code, Trevor. By the way, my Flex is 3.1.

[ATTACH=CONFIG]20346[/ATTACH]

Best

Jamal
----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
by Anonymous User
Not applicable
Original User: GISDev01


I have little experience to play with the code, Trevor. By the way, my Flex is 3.1.




Try downloading a program called Notepad++, and use that program to edit your config.xml, as well as you widget .xml's.
0 Kudos
JamalNUMAN
Legendary Contributor
Try downloading a program called Notepad++, and use that program to edit your config.xml, as well as you widget .xml's.


Thank you GIS Dev for the answerer

I�??ve commented the:

<geometryservice url="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" useproxy="false"/>

[ATTACH=CONFIG]20369[/ATTACH], [ATTACH=CONFIG]20370[/ATTACH]

Nevertheless, the basemap is still there!
----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
by Anonymous User
Not applicable
Original User: GISDev01

The geometry service doesn't relate to the basemaps like that.

The basemaps are denoted in one of two ways.
Either using this:
addarcgisbasemaps="true"
inside the <map> element.
Or, adding each basemap you want individually like this inside the <map> element:
<basemaps>

        <layer label="Aerial" type="tiled" visible="false" alpha="1" url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" icon="assets/images/basemap_imagery.jpg" />
 <layer label="Topo" type="tiled" visible="false" alpha="1" url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" icon="assets/images/basemap_topographic.jpg" />
 
        <layer label="Blank" type="dynamic" visible="false" url="" /> 
</basemaps>
        
0 Kudos
JamalNUMAN
Legendary Contributor
The geometry service doesn't relate to the basemaps like that.  

The basemaps are denoted in one of two ways.  
Either using this:  
addarcgisbasemaps="true"
inside the <map> element. 
Or, adding each basemap you want individually like this inside the <map> element: 
<basemaps>

        <layer label="Aerial" type="tiled" visible="false" alpha="1" url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" icon="assets/images/basemap_imagery.jpg" />
 <layer label="Topo" type="tiled" visible="false" alpha="1" url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" icon="assets/images/basemap_topographic.jpg" />
 
        <layer label="Blank" type="dynamic" visible="false" url="" /> 
</basemaps>
        


Many thanks Dev. This is very useful.

Best

Jamal
----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos