Select to view content in your preferred language

Operational Layer not displaying

971
4
02-11-2013 12:10 PM
LinkElmore
Regular Contributor
I've got a dynamic layer in my FV that is behaving curiously.  It appears in the Layers List widget but won't actually display.  I have confidence in the map service itself as that loads fine in ArcMap and the REST endpoint is visible.  I've been over my config.xml but can't discern what's different about this layer than any others.  I"m posting it here, in hopes that someone can spot what I suspect is an obvious error.  I'm too close to deadline to afford any pride!  Here are the relevant pieces:

Live site: https://maps.dmme.virginia.gov/flexviewer/DGO/

REST endpoint: http://websde/GeoServices/rest/services/FlexServices/Geology_uncached/MapServer

Config.xml:

<?xml version="1.0" ?>
<configuration>
    <title>Geology and Mineral Resources</title>
    <logo>assets/images/dmme40h.png</logo>
    <style>
        <colors>0xcee7f4,0x39628c,0x355d89,0x294867,0xcee7f4</colors>
        <alpha>0.8</alpha>
        <font name="Verdana"/>
        <titlefont name="Verdana"/>
        <subtitlefont name="Verdana"/>
    </style>
    <!-- replace the following url with your own geometryservice -->
    <geometryservice url="https://maps.dmme.virginia.gov/GeoServices/rest/services/Geometry/GeometryServer"/>
    <subtitle>A Division of Virginia DMME</subtitle>
    <bing key="Ak63iJgvIk2ExDcduecO_E3jI3tDStKtCoRtLZHOdHj_nmsnm6OyvAZ5fS90IQVh"/>
    <widget url="widgets/Navigation/NavigationWidget.swf" config="widgets/Navigation/NavigationWidget.xml" left="10" top="50"/>
    <widget url="widgets/OverviewMap/OverviewMapWidget.swf" config="widgets/OverviewMap/OverviewMapWidget.xml" right="0" bottom="0"/>
    <widget url="widgets/HeaderController/HeaderControllerWidget.swf" config="widgets/HeaderController/HeaderControllerWidget.xml" left="0" top="0"/>
    <widget url="widgets/Coordinate/CoordinateWidget.swf" config="widgets/Coordinate/CoordinateWidget.xml" label="Coordinate" icon="assets/images/i_globe.png" left="3" bottom="1"/>
    <widget url="widgets/MapSwitcher/MapSwitcherWidget.swf" config="widgets/MapSwitcher/MapSwitcherWidget.xml" label="Map Switcher" icon="assets/images/i_globe.png" right="20" top="55"/>

 <widget url="widgets/Splash/SplashWidget.swf" config="widgets/Splash/SplashWidget.xml" label="Splash" icon="assets/images/i_globe.png"/>
 <map attributionvisible="true" esrilogovisible="true" openhandcursorvisible="false" scalebarvisible="true" scalebar="default" zoomslidervisible="false" wraparound180="false" addarcgisbasemaps="true" initialextent="-9355402.291706543 4294366.250578298 -8319527.6843861155 4881402.627808294" top="40" portalurl="https://www.arcgis.com">
        <basemaps>
            <layer type="tiled" label="Terrain with Labels" icon="https://www.arcgis.com/sharing/rest/content/items/aab054ab883c4a4094c72e949566ad40/info/thumbnail/tempTerrain_with_labels_ne_usa.png" url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer" visible="true"/>
            <layer type="tiled" label="Terrain with Labels" url="http://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer" visible="true" reference="true"/>
            <layer type="dynamic" label="Virginia Counties" icon="assets/images/virginia_counties.jpg" imageformat="png8" url="https://maps.dmme.virginia.gov/GeoServices/rest/services/FlexServices/VGIN_BaseMapCounty/MapServer" visible="false"/>
        </basemaps>
        <operationallayers>
            <layer type="dynamic" label="Boundaries" imageformat="png8" url="https://maps.dmme.virginia.gov/GeoServices/rest/services/FlexServices/Boundaries2/MapServer" visible="false"/>
            <layer type="dynamic" label="Karst Features" imageformat="png8" url="https://maps.dmme.virginia.gov/GeoServices/rest/services/Geology_Resources/VAKarstFeatures/MapServer" visible="false"/>
            <layer type="dynamic" label="Water Wells" imageformat="png8" url="https://maps.dmme.virginia.gov/GeoServices/rest/services/Geology_Resources/VirginiaWaterWells_WMS/MapServer" visible="false">
                <sublayer id="2" popupconfig="popups/PopUp_2.xml"/>
            </layer>
            <layer type="dynamic" label="DGMR Publication Index" imageformat="png8" url="https://maps.dmme.virginia.gov/GeoServices/rest/services/FlexServices/DGMR-Publication_Index/MapServer" visible="false">
                <sublayer id="0" popupconfig="popups/PopUp_9.xml"/>
                <sublayer id="1" popupconfig="popups/PopUp_10.xml"/>
                <sublayer id="2" popupconfig="popups/PopUp_11.xml"/>
            </layer>
            <layer type="dynamic" label="Geology uncached" imageformat= "png8" url="https://maps.dmme.virginia.gov/GeoServices/rest/services/FlexServices/Geology_uncached/MapServer" visible="true"/>
   <layer type="dynamic" label="Geology" alpha="0.5" imageformat="png8" url="https://maps.dmme.virginia.gov/GeoServices/rest/services/Geology_Resources/Geology_WMS/MapServer" visible="true">
                <sublayer id="0" popupconfig="popups/PopUp_3.xml"/>
                <sublayer id="1" popupconfig="popups/PopUp_4.xml"/>
                <sublayer id="2" popupconfig="popups/PopUp_5.xml"/>
                <sublayer id="3" popupconfig="popups/PopUp_6.xml"/>
                <sublayer id="4" popupconfig="popups/PopUp_7.xml"/>
                <sublayer id="5" popupconfig="popups/PopUp_8.xml"/>
            </layer>
        </operationallayers>
    </map>
    <widgetcontainer layout="float">
        <widget url="widgets/Bookmark/BookmarkWidget.swf" config="widgets/Bookmark/BookmarkWidget_1.xml" label="Bookmark" icon="assets/images/i_bookmark.png"/>
        <widget url="widgets/Draw/DrawWidget.swf" config="widgets/Draw/DrawWidget.xml" label="Distance and Area Measure" icon="assets/images/i_draw2.png"/>
        <widget url="widgets/Print/PrintWidget.swf" config="widgets/Print/PrintWidget.xml" label="Print" icon="assets/images/i_print.png"/>
        <widget url="widgets/LayerList/LayerListWidget.swf" config="widgets/LayerList/LayerListWidget_1.xml" label="Layer List" icon="assets/images/i_layers.png"left="500" top="50" preload="closed"/>
  <widget url="widgets/Legend/LegendWidget.swf" config="widgets/Legend/LegendWidget_2.xml" label="Legend" icon="assets/images/Legend32.png"left="150" top="50" preload="closed"/>
    </widgetcontainer>
</configuration>
Tags (2)
0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Link,

   This is the xml that your site is serving up as the main config.xml...

<?xml version="1.0" ?> <configuration>     <title>Gas &amp; Oil</title>     <logo>assets/images/dmme40h.png</logo>     <style>         <colors>0x0,0x993366,0xffffff,0x99cc,0x0</colors>         <alpha>0.8</alpha>         <font name="Verdana"/>         <titlefont name="Verdana"/>         <subtitlefont name="Verdana"/>     </style>     <!-- replace the following url with your own geometryservice -->     <geometryservice url="https://maps.dmme.virginia.gov/GeoServices/rest/services/Geometry/GeometryServer"/>     <subtitle>A Division of Virginia DMME</subtitle>     <bing key="Ak63iJgvIk2ExDcduecO_E3jI3tDStKtCoRtLZHOdHj_nmsnm6OyvAZ5fS90IQVh"/>     <widget url="widgets/Navigation/NavigationWidget.swf" config="widgets/Navigation/NavigationWidget.xml" left="10" top="50"/>     <widget url="widgets/OverviewMap/OverviewMapWidget.swf" config="widgets/OverviewMap/OverviewMapWidget.xml" right="0" bottom="0"/>     <widget url="widgets/MapSwitcher/MapSwitcherWidget.swf" config="widgets/MapSwitcher/MapSwitcherWidget.xml" right="20" top="55"/>     <widget url="widgets/HeaderController/HeaderControllerWidget.swf" config="widgets/HeaderController/HeaderControllerWidget.xml" left="0" top="0"/>     <widget url="widgets/Coordinate/CoordinateWidget.swf" config="widgets/Coordinate/CoordinateWidget.xml" label="Coordinate" icon="assets/images/i_globe.png" left="3" bottom="1"/>     <widget url="widgets/Coordinate/CoordinateWidget.swf" config="widgets/Coordinate/CoordinateWidget.xml" label="Coordinate" icon="assets/images/i_globe.png" left="3" bottom="1"/>     <widget url="widgets/LayerList/LayerListWidget.swf" config="widgets/LayerList/LayerListWidget_1.xml" label="Layer List" icon="assets/images/i_layers.png" preload="open" left="500" top="50"/>     <widget url="widgets/Legend/LegendWidget.swf" config="widgets/Legend/LegendWidget_1.xml" label="Legend" icon="assets/images/Legend32.png" preload="open" left="150" top="50"/>     <widget url="widgets/Splash/SplashWidget.swf" config="widgets/Splash/SplashWidget.xml" label="Splash" icon="assets/images/i_globe.png"/>     <map attributionvisible="true" esrilogovisible="true" openhandcursorvisible="false" scalebarvisible="true" scalebar="default" zoomslidervisible="false" wraparound180="true" addarcgisbasemaps="true" initialextent="-9391439.012766242 4262899.234059166 -8355564.405445814 4849935.611289162" wkid="102100" top="40" portalurl="https://www.arcgis.com">         <basemaps>             <layer type="tiled" label="National Geographic" icon="https://www.arcgis.com/sharing/rest/content/items/509e2d6b034246d692a461724ae2d62c/info/thumbnail/natgeo.jpg" url="http://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer" visible="true"/>             <layer type="dynamic" label="Virginia Counties" icon="assets/images/virginia_counties.jpg" imageformat="png8" url="https://maps.dmme.virginia.gov/GeoServices/rest/services/FlexServices/VGIN_BaseMapCounty/MapServer" visible="false"/>         </basemaps>         <operationallayers>             <layer type="dynamic" label="Boundaries" imageformat="png8" url="https://maps.dmme.virginia.gov/GeoServices/rest/services/FlexServices/FlexBoundariesMSD/MapServer" visible="true"/>             <layer type="dynamic" label="Gas Wells" imageformat="png8" url="https://maps.dmme.virginia.gov/GeoServices/rest/services/FlexServices/DGO2/MapServer" visible="true">                 <sublayer id="0" popupconfig="popups/PopUp_1.xml"/>                 <sublayer id="1" popupconfig="popups/PopUp_2.xml"/>                 <sublayer id="2" popupconfig="popups/PopUp_3.xml"/>                 <sublayer id="3" popupconfig="popups/PopUp_4.xml"/>                 <sublayer id="4" popupconfig="popups/PopUp_5.xml"/>                 <sublayer id="5" popupconfig="popups/PopUp_6.xml"/>                 <sublayer id="6" popupconfig="popups/PopUp_7.xml"/>             </layer>         </operationallayers>     </map>     <widgetcontainer layout="float">         <widget url="widgets/Bookmark/BookmarkWidget.swf" config="widgets/Bookmark/BookmarkWidget_1.xml" label="Bookmark" icon="assets/images/i_bookmark.png"/>         <widget url="widgets/Draw/DrawWidget.swf" config="widgets/Draw/DrawWidget.xml" label="Draw" icon="assets/images/i_draw2.png"/>         <widget url="widgets/Print/PrintWidget.swf" config="widgets/Print/PrintWidget.xml" label="Print" icon="assets/images/i_print.png"/>     </widgetcontainer> </configuration>


I don't see the layer you are speaking of...
0 Kudos
LinkElmore
Regular Contributor
Mistakenly linked to a different viewer. Here's the correct URL. 
https://maps.dmme.virginia.gov/flexviewer/dgmr/
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Link,

   You have an issue in your config.xml (it is malformed) at line 55 you are missing a space between icon and left attributes.

But I think your real issue is you Map Service... Using the Rest Service Directory I can not get it to export an image using the Export Map link at the bottom of the page and the same for the JavaScript link at the top of the page (not map shown).

When I try and run a simple query on the Fault layer (Where 1=1) it return unable to perform Query.
0 Kudos
LinkElmore
Regular Contributor
Robert,
Thanks for catching that xml error and for the advice to go back to the service as the point of failure.  Indeed, that was the problem.  The mxd that pushes that service was created using representational symbology.  10.0 is *supposed* to be able to handle service creation (although the optimize tool does complain about it) with representations.  The service (using representations) was viewable in ArcMap but not in FlexViewer.  I altered the mxd to use regular symbology and republished the service, refreshed the FV in the browser, and all is well. 

So, has anyone else experienced problems using services in the Flex Viewer that are based on representational symbology?  Any workarounds?  Did this get better at 10.1?
0 Kudos