Select to view content in your preferred language

Add USGS Topos to basemap gallery

4217
11
Jump to solution
03-04-2013 09:23 AM
TedChapin
Frequent Contributor
I would like to add the USGS Topo cached service to the basemap gallery.  I know the URL:
http://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer

Is there a config file that lists all the online basemaps?  I don't want it to be the basemap at startup, I just want it to be available to users to switch to.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Honored Contributor
Sarah,

I just search for the service in arcgis online:

http://www.arcgis.com/home/search.html?q=Topo&t=content

Then go to the service details and copy the image by right clicking it.

Regards

Anthony

View solution in original post

0 Kudos
11 Replies
AlexSanders
Frequent Contributor
Add this to your config file above the operationallayers tag.

<basemaps>
            <layer label="USA Topo"    type="tiled" visible="false"
                   url="http://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer" icon="https://www.arcgis.com/sharing/rest/content/items/6e03e8c26aad4b9c92a87c1063ddb0e3/info/thumbnail/topo_map_2.jpg"/>
</basemaps>

0 Kudos
AnthonyGiles
Honored Contributor
Ted,

Stuart's response is correct but it will try and add the base-map as the default on load so you will need to set its visibility to true or if you do not want it to be the default you will have to manually add each base map and turn the addarcgisbasemaps to false.

Regards

Anthony
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Guys,

  You have to carefully read the post:

I don't want it to be the basemap at startup, I just want it to be available to users to switch to.  


Ted,

   If you don't want the added base map to be the default one then you can manually add all the basemaps yourself:

<layer label="Imagery" type="tiled" visible="false" url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" icon="https://www.arcgis.com/sharing/rest/content/items/86de95d4e0244cba80f0fa2c9403a7b2/info/thumbnail/tempimagery.jpg"/>
<layer label="Imagery with Labels" type="tiled" visible="false" url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" icon="https://www.arcgis.com/sharing/rest/content/items/413fd05bbd7342f5991d5ec96f4f8b18/info/thumbnail/tempimagery_with_labels_ne_usa.png"/>
<layer label="Imagery with Labels" type="tiled" visible="false" url="http://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer" icon="https://www.arcgis.com/sharing/rest/content/items/413fd05bbd7342f5991d5ec96f4f8b18/info/thumbnail/tempimagery_with_labels_ne_usa.png"/>
<layer label="Oceans" type="tiled" visible="false" url="http://services.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer" icon="https://www.arcgis.com/sharing/rest/content/items/48b8cec7ebf04b5fbdcaf70d09daff21/info/thumbnail/tempoceans.jpg"/>
<layer label="Topographic" type="tiled" visible="false" url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" icon="https://www.arcgis.com/sharing/rest/content/items/6e03e8c26aad4b9c92a87c1063ddb0e3/info/thumbnail/topo_map_2.jpg"/>
<layer label="Streets" type="tiled" visible="false" url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" icon="https://www.arcgis.com/sharing/rest/content/items/d8855ee4d3d74413babfb0f41203b168/info/thumbnail/tempstreets.jpg"/>
<layer label="Light Gray Canvas" type="tiled" visible="false" url="http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer" icon="https://www.arcgis.com/sharing/rest/content/items/8b3b470883a744aeb60e5fff0a319ce7/info/thumbnail/templight_gray_canvas_with_labels__ne_usa.png"/>
<layer label="Light Gray Canvas" type="tiled" visible="false" url="http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Reference/MapServer" icon="https://www.arcgis.com/sharing/rest/content/items/8b3b470883a744aeb60e5fff0a319ce7/info/thumbnail/templight_gray_canvas_with_labels__ne_usa.png"/>
<layer label="Terrain with Labels" type="tiled" visible="false" url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer" icon="https://www.arcgis.com/sharing/rest/content/items/aab054ab883c4a4094c72e949566ad40/info/thumbnail/tempTerrain_with_labels_ne_usa.png"/>
<layer label="Terrain with Labels" type="tiled" visible="false" url="http://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer" icon="https://www.arcgis.com/sharing/rest/content/items/aab054ab883c4a4094c72e949566ad40/info/thumbnail/tempTerrain_with_labels_ne_usa.png"/>
<layer label="National Geographic" type="tiled" visible="false" url="http://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer" icon="https://www.arcgis.com/sharing/rest/content/items/509e2d6b034246d692a461724ae2d62c/info/thumbnail/natgeo.jpg"/>
and then add your in the position you want it to appear.
0 Kudos
AnthonyGiles
Honored Contributor
Yes Robert that was what I was trying to say in my post
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Anthony,

   OK, I didn't read your response close enough (guess I need to take my own advice...).;)
0 Kudos
AlexSanders
Frequent Contributor
If you look at my code I have visibility set to false that way it is not turned on at start up.  Follow Robert's post if you want it ordered further down on the list.
0 Kudos
AnthonyGiles
Honored Contributor
Stuart,

I recognise the fact that you had it set to false, but because it overrides what is set as the default base map setting it to false ends up with no basemap showing.

Regards

Anthony
0 Kudos
AlexSanders
Frequent Contributor
I see what you're saying, I forgot to add that I had the aerial set to true, that way one basemap layer loads on start up.  My bad thanks for the clarification.
0 Kudos
by Anonymous User
Not applicable
Sorry for hitting-up this old thread but out of curiosity*, how did you know where to find the icon URL for the map service? I've looked around the rest services and don't see it.

* Not just curiosity, I loaded basemaps using ArcGIS Viewer for Flex 3.6 and for some reason it omitted the basemap icons for 2 of the 4 maps. I'm putting them in manually.

Thanks!
0 Kudos