Traffic Cams in FlexViewer 2.1

709
2
10-29-2010 06:12 AM
KennethLohr
New Contributor III
I'm trying to emulate the Louisville traffic cams in the sample QueryWidget.  Similar to the Louisville sample data, the source of the photos are static URLs from the DOT's website.  I've added the ESRI service to ArcCatalog to explore how this service is constructed, and I've tried to recreate the service as identically as possible; starting with a geodatabase containing a point feature class with fields identical to the ESRI service.  I've added a coupole sample points (cameras) with fields populated with descriptions, dates, online status and URLs to FDOT cameras for testing.

Here is my QueryWidget configuration:

<?xml version="1.0" ?>
<configuration>
    <layer>http://sr-miletus/ArcGIS/services/TrafficCams/MapServer/0</layer>
    <titlefield>DESCRIPTION</titlefield>
    <linkfield>URL</linkfield>
    <fields all="true">

    </fields>
    <filterfield>
        <name></name>
        <alias></alias>
    </filterfield>
    <refreshrate></refreshrate>
    <zoomscale>5000</zoomscale>
    <query>1=1</query>
    <info>widgets/InfoTemplates/InfoPopupWidget.swf</info>
</configuration>


The only things that were changed were the service URL, and specifed fields changed to "all."  Of course the URL to the MapService will only work inside the intranet, I'm aware of this. The service ID is zero, since it is the only feature class in the MXD that the service was created from.  The layer displays fine when added as an operational layer to FlexViewer.

When the QueryWidget is launched, it returns the error:
[RPC Fault faultString="Unexpected < encountered" faultCode="null" faultDetail="null"]


My second question is: will InfoPopupWidget parse that URL field and load the image at that URL, or is it (as I'm expecting it to not work like the sample) just going to show the URL?
Tags (2)
0 Kudos
2 Replies
philippschnetzer
Occasional Contributor III
I've read on the forums before that sometimes there are quirks when the operational layer is ID = 0.  Maybe try to add a dummy layer in the mxd so that your camera points will be ID = 1...just a stab in the dark.

As for the image being displayed that will actually work quite flawlessly as long as the URL you are referencing ends in .jpg or .png or maybe even .bmp, something like this:

http://gov.ns.ca/tran/webcam/secure/images/rwis_cam/Amherst_1.jpg

you may have to resize the InfoPopUp window to fit your images better....if so, look here:

http://forums.arcgis.com/threads/13673-QueryWidget-InfoPopUp-resize?highlight=InfoPopUp
0 Kudos
VanessaS
New Contributor
Did you ever resolve this error message? I am getting the samething only with the advanced search widget.

Thanks in advance,
Vanessa
0 Kudos