Select to view content in your preferred language

problem using arcgisonline basemaps

1045
11
02-13-2012 07:31 AM
MichaelZierten
New Contributor
I'm trying to use the arcgis online basemaps (http://server.asrcgisonline.com/ArcGIS/rest/services/) as basemaps in my application. My feature data is all in Web Mercator Auxiliary Sphere (DynamicMapServiceLayer). The feature classes will show and project properly, but the base layers don't appear. If I remove the feature classes, the base layers show up in GCS, without any projection (the map is squashed down).  I've defined the spatial reference (wkid=102100), but it still won't work.
               
                <esri:Extent id="NVExtent"   
      xmin="-13856000"
      ymin="4243000"
      xmax="-12291000"
      ymax="5182000" >
    <esri:SpatialReference wkid="102100" />
  </esri:Extent>

Note: I've used all my layers in ArcGIS Viewer for Flex, with the ESRI base layers, and everything works fine. ???
Tags (2)
0 Kudos
11 Replies
RobertScheitlin__GISP
MVP Emeritus
Michael,

   Yes it is but you were using this map service not the one that I have in red.

and the one below that you were using is WGS 4326:

http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer

And this one (the correct one) to use is Spatial Reference: 102100 (3857):

http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Michael,

Glad you got it working.

Don't forget  the most important part, click the Mark as answer check (this is the first (left most) portion of the image):
0 Kudos