Using Esri's Flex Viewer
The following optional configuration example below demonstrates how to utilize Esri's Flex application when using Map Viewer instead of pointing to an ArcFM Server.
- Open the web.config file. Web.config is installed in: C:\Inetpub\wwwroot\Responder\Web.config.
- In Web.config, look for the <Configuration> tag within the <Map.Service> section.
- Set the Layers Extent to coordinate to default extent of your map service. The numbers correspond to: MINIMUMXCOORDINATE (Left), MINIMUMYCOORDINATE (Bottom), MAXIMUMXCOORDINATE (Right), MAXIMUMYCOORDINATE (Top).
-
Replace the <Layers> section within <map.Service>
with the following:
<Layers Extent="-14378400, 6912221, -7549077, 2471480"> <!--Mapservices that display in the map control--> <!--<Layer MapServiceName="Electric" Url="http://WebServerName/ArcGIS/rest/services/MapServiceName/MapServer" Visible="True" Type="ArcGISDynamicMapServiceLayer" />--> <layer label="Streets" Visible="true" MapServiceName="Streets" Url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" Type="ArcGISTiledMapServiceLayer"/> <layer label="Aerial" Visible="true" MapServiceName="Aero" Url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" Type="ArcGISTiledMapServiceLayer"/> <layer label="Topo" Visible="true" MapServiceName="Topo" Url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" Type="ArcGISTiledMapServiceLayer"/> </Layers>
-
To disable layers, comment them out using the <!--
--> tag, or delete them. You can also set the initial Visible value
to False, and users can view the layer by using the Toggle Layers
tool.
IMPORTANT: The order the layers appear in this section affect how they are viewed in Map Viewer. The first layer listed is the bottom-most layer, and all other layers build over it. None of these layers are transparent and cannot be viewed simultaneously.
- Save and close Web.config. Refresh Map Viewer to view changes.