Select to view content in your preferred language

Problem getting primary basemap to show

771
5
06-17-2010 03:03 PM
ShawnKraft
Occasional Contributor
I just want to add our aerial photo so it is the primary layer in order to set the scale so I can zoom in more than the limit of 1:4500.  I saw that somewhere that all I had to do was make sure my map service is the first one in the list to overcome this limitation.  HEre is how I have inserted it.  Why doesn't this work?

<map initialExtent="105.64 41.28 105.54 41.34" fullExtent="-150 -50 150 50">
<basemaps menu="menuMap">
   <mapservice label="CityLayers" type="dynamic" visible="true" alpha="1" icon="com/esri/solutions/flexviewer/assets/images/icons/i_highway.png">http://icarus/ArcGIS/rest/services/AirPhoto/MapServer</mapservice>      
   <mapservice label="Street Map" type="tiled" visible="false" alpha="1" icon="com/esri/solutions/flexviewer/assets/images/icons/i_highway.png">http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer</mapservice>
   <mapservice label="Satellite Map" type="tiled" visible="false" alpha="1" icon="com/esri/solutions/flexviewer/assets/images/icons/i_shuttle.png">http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer</mapservice>
Tags (2)
0 Kudos
5 Replies
ShawnKraft
Occasional Contributor
So substituting my aerial as the first layer isn't the only thing you have to do.  I am wondering if it is supposed to be tiled instead of dynamic?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Shawn,

   So if your aerials are displaying correctly with the other base maps then all you have to do is add more LODs to the map. Because you are using cached ESRI map services the map is constrained to those Levels of Display (LODs). If you want to zoom in beyond those than you have to add more LODs beyound what the cached map service has.

   There is several threads on this

http://forums.esri.com/Thread.asp?c=158&f=2421&t=280475&mc=34#869373
0 Kudos
ShawnKraft
Occasional Contributor
Okay.  An alternative would be, if I am reading you correct, would be if I just removed the cached map services and used only my aerial...then it would be forced to use my aerial photo to establish more lod's?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Shawn,

   Not Exactly... The LODs are only used if you are using a cached map service, as your map service is not cached there is no LODs (which is good). So if you get rid of ESRI's ccached map services then you will no longer have any issue of be confined to a certain scale limit.
0 Kudos
ShawnKraft
Occasional Contributor
Thanks Robert that worked.
0 Kudos