Select to view content in your preferred language

Overview w/ an Operation Layer

1625
6
Jump to solution
08-15-2012 03:39 AM
ShaningYu
Honored Contributor
In the OverviewWidget, how to add an operation layer above the basemap?  Thanks.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Shanning,

   Are you using this in Flex Viewer 2.5 or 3.0? Also just to note the visiblelayers attribute is not used in the current code base when you manually specify a layer.

View solution in original post

0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus
Shanning,

   So in the OTB overview widget is is only possible to manually specify on layer and it sounds like you have done that and set it to a particular basemap. Well in FV 2.5 I mad changes to the code o allow more than one layer to be manually be specified and attached is that code for the OverviewMapComponent.mxml:
0 Kudos
ShaningYu
Honored Contributor
I added the dynamic one but got a blank Overview (the original Imergery was gone). What is wrong I did? Thanks.
<configuration>
<initialstate>closed</initialstate>
<layer type="tiled"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer">
</layer>
<layer type="dynamic"
url="http://10.74.44.31:6080/arcgis/rest/services/Butler/Butler_1C2B/MapServer" visiblelayers="4" >
</layer>
</configuration>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Shanning,

   Are you using this in Flex Viewer 2.5 or 3.0? Also just to note the visiblelayers attribute is not used in the current code base when you manually specify a layer.
0 Kudos
ShaningYu
Honored Contributor
Thanks.  It works for V2.5.  I will try to use it on V3.0 later on.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Shanning,

  I just tested and the code works in 2.5 and 3.0. Here is an example of the xml that works:

<?xml version="1.0"?>
<configuration>
    <!-- possible values for initialstate: open or closed (default) -->
    <initialstate>closed</initialstate>
    <!-- by default it will use the same basemap as current main map,
         you can hardcode as below if you wish -->
    <layer type="tiled"
            url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>
    <layer type="dynamic"
            url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/Since_1970/MapServer" />
   
</configuration>

<!--
    See Overview Map widget tag reference at
    http://links.esri.com/overviewmapwidget
-->
0 Kudos
ShaningYu
Honored Contributor
Many thanks to Robert.
0 Kudos