Heat map widget question

616
3
07-30-2012 03:41 AM
JerryBiedenbender
New Contributor
Hello,

Excellent widget but i need some help modifying it.

        Instead of greater than or equal to... Can I do a "between". I have over 100 years of data and i would like to display it by 5 or 10 years at a time rather than year by year.


Below is an example of how it looks year by year by but if i keep this up the list will be too big. 
<querytemplate>RSL = REPLACE_STR</querytemplate>
            <types>0,1,2,3,4,5</types>
            <type_descs>Years = 0,Years = 1,Years = 2,Years = 3,Years = 4,Years = 5</type_descs>



Is there code like this...
<type_descs>Years Between (0&5),Years Between (5&10), Years Between (10&15), Years Between (15&20)</type_descs>


Thanks,
Jerry
Tags (2)
0 Kudos
3 Replies
philippschnetzer
Occasional Contributor III
I was able to change the step intervals not by changing the code in the widget, but rather changing the values in layer properties in ArcMap...look under Layer Properties --> Time, and then change the Time Step Interval and those changes should be reflected in your app.
0 Kudos
JerryBiedenbender
New Contributor
How do you get the time slider to even show up in your widget? When I run my application its nowhere to be found.

It looks like I have it in my code but it does not show up when I run the application

<configuration>
    <layers>
        <layer>
            <name>Date Installed HeatMap</name>
            <url>http://gis02/ArcGIS/rest/services/Random/GravitySewerValuation/MapServer/0</url>
            <outFields>EYI</outFields>
            <useproxy>false</useproxy>
            <useamf>true</useamf>
            <defaultquery>1=1</defaultquery>
            <querytemplate>EYI = REPLACE_STR</querytemplate>
            <types>1910,1950,1960,1980,1985,1995,2000,2005</types>
            <type_descs>Date Installed = 1910,Date Installed = 1950,Date Installed = 1960,Date Installed = 1980,Date Installed = 1985,Date Installed = 1995,Date Installed = 2000,Date Installed = 2005</type_descs>
        </layer>
    </layers>
    <ui>
        <widget_dimensions>
            <width>378</width>
            <height>206</height>
        </widget_dimensions>
        <icons>
            <base_url>widgets/HeatMap/assets/</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>Earthquake Magnitude:</comp_label>
            <heatmapquery_prompt>default selection</heatmapquery_prompt>
            <featurecount_label>features contained</featurecount_label>
        </query>
        <timeslider>
            <loop>true</loop>
            <thumbcount>2</thumbcount>
            <thumbmovingrate>1200</thumbmovingrate>
            <dateformat>MMM,yyyy</dateformat>
        </timeslider>
        <transparency>
            <comp_label>Transparency:</comp_label>
            <defaulttransparency>0.8</defaulttransparency>
        </transparency>
        <symbol>
            <comp_label>Theme:</comp_label>
            <defaulttheme>RAINBOW</defaulttheme>
        </symbol>
    </ui>
</configuration>


Jerry
0 Kudos
philippschnetzer
Occasional Contributor III
I'm using the 2.5 compiled version.  Here is my configuration file contents:

<?xml version="1.0" ?>
<configuration>
 <layers>
        <layer>
            <name>(layer name matched with the layers name in your main config.xml)</name>
            <url>http://www.xxxxxxxxxxxxxxxx.com/ArcGIS/rest/services/xxxxxxxxxxxxxx/FeatureServer/1</url>
            <outFields>Date_Submi,Contribu_1</outFields>
   <useamf>true</useamf>
   <defaultquery>1=1</defaultquery>
   <querytemplate></querytemplate>
   <types></types>
   <type_descs></type_descs>
        </layer>
 </layers>
 <ui>
  <widget_dimensions>
   <width>1</width>
   <height>1</height>
  </widget_dimensions>
  <icons>
   <main_icon>i_rainbow.png</main_icon><!-- Icon must exist under assets/images in viewer -->
   <main_label>Main Panel</main_label><!-- Title/label for icon across the top widget panel -->
   <settings_icon>i_options.png</settings_icon>
   <settings_label>Settings Panel</settings_label>
  </icons>
  <refresh_label>refreshing layer...</refresh_label>
  <query>
   <comp_label>Earthquake Magnitude:</comp_label>
   <heatmapquery_prompt>default selection</heatmapquery_prompt>
   <featurecount_label> features contained</featurecount_label>
  </query>
  <transparency>
   <comp_label>Transparency:</comp_label>
   <defaulttransparency>0.4</defaulttransparency>
  </transparency>
  <symbol>
   <comp_label>Theme:</comp_label>
   <defaulttheme>RAINBOW</defaulttheme><!-- Must be one of RED_WHITE_BLUE, RAINBOW, or THERMAL -->
  </symbol>
 </ui>
</configuration>


And then, like I said earlier, I used the Time properties through layer properties in ArcMap to manipulate the time step interval.
0 Kudos