Select to view content in your preferred language

Heat Map Widget - Time functionality

836
3
Jump to solution
05-21-2013 07:35 AM
StevenMenefee1
Emerging Contributor
I've succesfully imported and set up the Heat Map for the ArcGIS Viewer for flex here:

http://www.arcgis.com/home/item.html?id=43daf0ffb1d34e31ad752da1340aeb40

However, I am unable to get the time functionality to show up.  Any ideas on why it wouldn't show up at all?  I'm not sure where I change the code to point it to the date field as well.

[ATTACH=CONFIG]24546[/ATTACH]

Here is my code:

<configuration>
    <layers>
        <layer>
            <name>Part I Offenses HeatMap</name>
            <url>http://server1:6080/arcgis/rest/services/Map/Op_Crime_All_Dynamic_SP/MapServer/0</url>
            <outFields>addtime,Category</outFields>
            <useproxy>false</useproxy>
            <useamf>true</useamf>
            <defaultquery>1=1</defaultquery>
            <querytemplate>Category = REPLACE_STR</querytemplate>
            <types>'Aggravated Assaults','Arson','Burglary','Homicide','Larceny/Theft','Rape','Robbery','Stolen Vehicles'</types>
            <type_descs>Aggravated Assaults,Arson,Burglary,Homicide,Larceny/Theft,Rape,Robbery,Stolen Vehicles</type_descs>
        </layer>
    </layers>
    <ui>
        <widget_dimensions>
            <width>410</width>
            <height>206</height>
        </widget_dimensions>
        <icons>
            <base_url>widgets/HeatMap/assets/images/</base_url>
            <main_icon>i_rainbow.png</main_icon>
            <main_label>Main Panel</main_label>
            <settings_icon>i_options.png</settings_icon>
            <settings_label>Settings Panel</settings_label>
        </icons>
        <refresh_label>Refreshing Layer...</refresh_label>
        <query>
            <comp_label>Part I Offenses:</comp_label>
            <heatmapquery_prompt>All Offenses</heatmapquery_prompt>
            <featurecount_label>Features Contained</featurecount_label>
        </query>
        <timeslider>
            <loop>true</loop>
            <thumbcount>2</thumbcount>
            <thumbmovingrate>1200</thumbmovingrate>
            <dateformat>MM/DD/YYYY</dateformat>
        </timeslider>
        <transparency>
            <comp_label>Transparency:</comp_label>
            <defaulttransparency>0.8</defaulttransparency>
        </transparency>
        <density>
            <comp_label>Heat radius:</comp_label>
            <defaultdensity>15</defaultdensity>
        </density>
        <symbol>
            <comp_label>Colors:</comp_label>
            <defaulttheme>CUSTOM</defaulttheme>
            <customtheme>0xEBED95,0xEDB019,0xD24F0B,0xD21813,0xBA5B6D</customtheme>
        </symbol>
    </ui>
</configuration>
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Honored Contributor
Steven,

Have you made the layer time aware in ArcMap before you publish it through server:

http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//005z0000000p000000.htm

Regards

Anthony

View solution in original post

0 Kudos
3 Replies
AnthonyGiles
Honored Contributor
Steven,

Have you made the layer time aware in ArcMap before you publish it through server:

http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//005z0000000p000000.htm

Regards

Anthony
0 Kudos
sofialoulad
Emerging Contributor
hi,
im trying to devellop a widget like heat map widget but usin polygon features to represent devloppement of (vegetation , builts ) in many years
can some1 give me ideas about this ...?
tnk a lot
0 Kudos
StevenMenefee1
Emerging Contributor
Thanks Ad Giles, I enabled Time on the layer and republished the service and it works now!
0 Kudos