Select to view content in your preferred language

Connection to ArcGIS server basemaps not working.

601
3
07-12-2012 10:59 AM
BenjaminViss
Deactivated User
Hi,

Simple question:

I'm using this code in my flex viewer config file:

<layer label="Streets" type="tiled" visible="true" icon="assets/images/basemap_Streets.gif"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>

But the streets map in the application is not showing. My own layers (4 of them) do show.

Any suggestions?
Thanks!
Tags (2)
0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
Benjamin,

   Not the right forum for this Flex Viewer Question.

You have an issue with no white space in your tag.
<layerlabel="Streets"type="tiled"visible="true"icon="assets/images/basemap_Streets.gif"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>


Should be:

<layer label="Streets" type="tiled" visible="true" icon="assets/images/basemap_Streets.gif"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>


Because this is a tiled layer it can not be reprojected to your data's wkid so if you are not adding this as a basemap and don't have it first then it will not work.
0 Kudos
BenjaminViss
Deactivated User
I apologize,
This is the ArcGIS API for Flex - where I thought I could post this question.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Benjamin,

Flex Viewer Question belong in thier own forum here:

http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex

This forum is for users of JUST the Flex API that are not using the Viewer.
0 Kudos