Select to view content in your preferred language

Need Help with Displaying Default Mapservice on Identify Widget

3768
11
02-24-2011 05:52 AM
sivavelappan
Emerging Contributor
I am a newbie trying to figure out Arcgis viewer for Flex. I have a Identify Widget displaying 3 mapservice. Two of them as base map(titled) and 1 as Livemap which is an internal service(dynamic). I want the Identify widget drop down to default to Dynamic Service without affecting the website. As i tried to move around the mapservice, Identify widget displayed the dynamic one but there was no map displayed.

code goes like this
<basemaps menu="menuMap">

   <mapservice label="Street Map" type="tiled" visible="true" 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>
           
</basemaps>


<basemaps menu="menuMap">
                   
      <mapservice label="Road" type="virtualearth" visible="true" style="road" alpha="1" icon="com/esri/solutions/flexviewer/assets/images/icons/i_globe.png">http://[machine]/vetoken.ashx</mapservice>
      <mapservice label="Aerial" type="virtualearth" visible="false" style="aerial" alpha="1" icon="com/esri/solutions/flexviewer/assets/images/icons/i_globe.png">http://[machine]/vetoken.ashx</mapservice>
</basemaps>
      
<livemaps>
 
 
  <mapservice label="Utilities" type="dynamic" visible="true" alpha="1">http://......../ArcGIS/rest/services/Internet_MAIN/MapServer</mapservice>
</livemaps>
Tags (2)
0 Kudos
11 Replies
sivavelappan
Emerging Contributor
Siva,

   I am not sure how you would fix the issue without modifying the code.


Robert,
  Thanks anyways.. I am looking in to downloading the new ArcGis Viewer for flex 2.2 and going to customize that 🙂
  If i come across any problems, will let you know. Have a good day..

Thanks
Siva
0 Kudos
JonFisher
Emerging Contributor
The only option I can think of is switching from Identify to Search. The first layer listed in SearchWidget.xml is the default, and if you only have one entry there's no dropdown list at all.
0 Kudos