Select to view content in your preferred language

Feature Layer Tips (rscheitlin) configuration error

2678
27
08-09-2011 08:30 AM
BillDickinson
Emerging Contributor
I am using Rob Scheitlin's Feature Layer Tips Flex widget and I am having some problems.

I set up the feature layers as suggested, but when I uncomment the main widget line in config.xml the application never fully loads. The Layer widget never fully loads either, so I think it is getting caught up with getting the right info out of the map service. If I comment out the Feature Layer Tips widget line then the application runs fine, so I know it is this widget that is causing the problems.

Here's the widget line:

<widget left="0" top="0" config="widgets/FeatureTooltip/FeatureTooltipWidget.xml" url="widgets/FeatureTooltip/FeatureTooltipWidget.swf"/>


I've triple checked that the paths are correct in my local directory structure. I'm attaching it to the following layer:

<layer label="FO Locations" type="feature" visible="true" alpha="1" url="http://50.56.25.234/arcgis/rest/services/serviceDelivery/MapServer/0"/>


You can check out the Map Service to see what the layer is like. It is a point layer with some 1300 points in it. I bumped up the max return features on the map service to 1500 just in case it was hitting the 1000 default setting. I also figured it might be the number of points, so I tried this layer which has only about a dozen:

<layer label="Region Labels" type="feature" visible="true" alpha="1" url="http://50.56.25.234/arcgis/rest/services/serviceDelivery/MapServer/1"/>


I'm using ArcGIS Server 10.1 with the FlexViewer 2.4. Any clues on what I am doing wrong would be appreciated (from anyone). 😉

Thanks. Bill
Tags (2)
0 Kudos
27 Replies
RobertScheitlin__GISP
MVP Emeritus
Bill,

   Are you using the compiled or un-compiled source code version of the Viewer?
0 Kudos
BillDickinson
Emerging Contributor
The compiled version.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Bill,

   What do your changes to the FeatureTooltipWidget.xml look like?
0 Kudos
BillDickinson
Emerging Contributor
<?xml version="1.0" ?>

<configuration>
 <layers>
        <layer>
            <name>Region Labels</name>
            <fields>REGION_NUM</fields>
            <datefields></datefields>
            <dateformat></dateformat>
        </layer>
        <!--
        <layer>
                    <name>Louisville Police Facilities</name>
                       <fields>PD_NAME</fields>
                       <datefields></datefields>
                       <dateformat>MM/DD/YYYY</dateformat>
                </layer>
                <layer>
                    <name>Louisville Traffic Cameras</name>
                       <fields>DESCRIPTION</fields>
                       <datefields>LAST_UPDATED</datefields>
                       <dateformat>MM/DD/YYYY</dateformat>
                </layer>-->
        
    </layers>
    <!-- The length of time, in milliseconds, that Flex waits to hide the ToolTip box after it appears. -->
    <!-- This setting affects all tooltips in the application so use with caution -->
    <hidedelay>3000</hidedelay>
</configuration>


This is using the second, smaller point layer - "Region Labels." I figured it would be better to try and get it running with a small number of points so I could rule out ArcGIS Server choking on the 1300+ points in the other layer. 😉
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Bill,

   OK I got this to work for me in the FeatureTooltipWidget.xml:

        <layer>
            <name>FO Locations</name>
            <fields>FO_Locations.ocd,FO_Locations.ofcname</fields>
            <datefields></datefields>
               <dateformat>MM/DD/YYYY</dateformat>
        </layer>


And I got the Region Labels to work as well.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Bill,

   When you added this folder "FeatureTooltip" under widgets, you used the exact case right, as Flex is case sensitive?
0 Kudos
BillDickinson
Emerging Contributor
Yep, exact case. I did notice one difference with what you had working - I removed the MM/DD/YYYY from the <dataformat> tag, whereas you put it back in. Is this required?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Bill,

   Nope that should not be required just habit for me to leave it in there. Now I am not sure why your having issues though...
0 Kudos
BillDickinson
Emerging Contributor
Here is my entire opening block in my config.xml file just in case I have overlooked something.

<!-- UI elements -->
    <widget right="10"  top="50"    config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/>
    <widget right="-2" bottom="-2" config="widgets/OverviewMap/OverviewMapWidget.xml" url="widgets/OverviewMap/OverviewMapWidget.swf"/>
    <widget left="0"   top="0"     config="widgets/HeaderController/HeaderControllerWidget.xml" url="widgets/HeaderController/HeaderControllerWidget.swf"/>
    <widget left="0" top="0" config="widgets/FeatureTooltip/FeatureTooltipWidget.xml" url="widgets/FeatureTooltip/FeatureTooltipWidget.swf"/>

    <map wraparound180="true" initialextent="-13935000 3059000 -7037000 6630000" top="40">
        <basemaps>
            <layer label="Aerial" type="tiled" visible="true" url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer"/>
        </basemaps>

        <operationallayers>
            <layer label="ESRI World Reference" type="tiled" visible="true" url="http://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer"/>
            <layer label="ESRI World Transportation" type="tiled" visible="false" url="http://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Transportation/MapServer"/>
            <layer label="Pop. Change" type="tiled" visible="false" url="http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Projected_Population_Change/MapServer"/>
            <layer label="Service Delivery" type="dynamic" imageformat="png8" visible="true" alpha="1" visiblelayers="1,2" url="http://50.56.25.234/arcgis/rest/services/serviceDelivery/MapServer">
             <sublayer id="0" popupconfig="popups/PopUp_FO_Locations.xml" />
            </layer>
            <layer label="FO Locations" type="feature" visible="true" alpha="1" url="http://50.56.25.234/arcgis/rest/services/serviceDelivery/MapServer/0"/>
            <layer label="Region Labels" type="feature" visible="true" alpha="1" url="http://50.56.25.234/arcgis/rest/services/serviceDelivery/MapServer/1"/>
        </operationallayers>
    </map>


Could the fact that I am using both dynamic and feature layers against the same map service (serviceDelivery) be confusing things?
0 Kudos