Select to view content in your preferred language

Traffic Camera

3414
4
Jump to solution
02-28-2012 09:35 PM
AysberqTundra
Deactivated User
Hello everyone!

I want to display a streaming video from a traffic camera (I have URL of this traffic camera and I have write this URL attribute table field(name is URL) of layer).
The ESRI help page (http://help.arcgis.com/en/webapps/flexviewer/help/index.html#//01m30000003m000000) shows that, this is possible using the Query widget.

But when I click a point of layer it displays only URL of camera, doesn't display streaming video.

The XML code of the Traffic Camera widget configuration file:
...
<layer>http://localhost/ArcGIS/rest/services/Mymap/MapServer/0</layer>
<query>1=1</query>
    <fields all="false">
        <field name="URL"/>
    </fields>
...

Can anyone help me?

Thanks!
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AysberqTundra
Deactivated User
Thanks for your answer, Robert.
This is very useful for displaying image on map.
But I want displaying online video of camera.
Can you give me an idea for solving this problem?

Thanks in advance!

View solution in original post

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Aysberq,


    Well to begin with you have a couple of things wrong. The example you are referencing DOES NOT have a video feed it has a traffic camera feed (an Image not a Video). Second you have not defined a link in your QueryWidget.xml so it is not going to work with out one.

<?xml version="1.0" ?>
<configuration label="Louisville Traffic Cameras">
    <layer>http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer/2</layer>
    <titlefield>DESCRIPTION</titlefield>
    <linkfield>URL</linkfield>
    <fields all="false">
        <field name="DESCRIPTION"/>
        <field name="URL"/>
        <field name="LAST_UPDATED" alias="Updated"/>
    </fields>
    <filterfield>
        <name></name>
        <alias></alias>
    </filterfield>
    <refreshrate></refreshrate>
    <zoomscale>18000</zoomscale>
    <query>1=1</query>
</configuration>

<!--
    See Query widget tag reference at
    http://links.esri.com/querywidget
-->



Or if you what to use popups when someone clicks on the feature in the map then this is the PopUp_Traffic_Cameras.xml:

<?xml version="1.0" ?>
<configuration>
    <title>{DESCRIPTION}</title>     
    <fields>
        <field name="DESCRIPTION"/>                
        <field name="ONLINE"/>       
        <field name="LAST_UPDATED">
            <format dateformat="shortDate"/>
        </field>  
        <field name="URL"/>
    </fields>
    <medias>
        <media type="image" caption="Latest Image {LAST_UPDATED} online: {ONLINE}" imagesource="{URL}" imagelink="{URL}"/>
    </medias> 
</configuration>

<!--
    Pop-up configuration file for:
    http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer/2
-->


Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below:
0 Kudos
AysberqTundra
Deactivated User
Thanks for your answer, Robert.
This is very useful for displaying image on map.
But I want displaying online video of camera.
Can you give me an idea for solving this problem?

Thanks in advance!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Aysberq,

   No there is no built in ability to display a video. You would have to do something custom.
0 Kudos
AysberqTundra
Deactivated User
Thanks Robert!
0 Kudos