Select to view content in your preferred language

Renderer, Symbol, GeoRssLayer and Binding question

1622
3
08-10-2010 03:52 AM
linusang
Emerging Contributor
Hi,

I'm using a TemporalRenderer for the new GeoRssLayer type, I added a Magnitude Attribute to each Graphic in the GraphicsCollection. Each graphic's size is based upon the Magnitude value using the ClassBreaksRenderer in the TemporalRender... Like this xaml below...

<esri:TemporalRenderer x:Key="EarthquakeRenderer">

 <!--ObservationRenderer-->
        <esri:TemporalRenderer.ObservationRenderer>
            <esri:ClassBreaksRenderer Attribute="Magnitude" >
             <esri:ClassBreakInfo MinimumValue="0" MaximumValue="3.9" Symbol="{StaticResource MySmallMarkerSymbol}" />
             <esri:ClassBreakInfo MinimumValue="4" MaximumValue="6.9" Symbol="{StaticResource MyMediumMarkerSymbol}" />
             <esri:ClassBreakInfo MinimumValue="7" MaximumValue="10" Symbol="{StaticResource MyLargeMarkerSymbol}" />
            </esri:ClassBreaksRenderer>
        </esri:TemporalRenderer.ObservationRenderer>

        <!--SymbolAger-->
        <esri:TemporalRenderer.SymbolAger>
            <esri:RampInterpolator>
                <esri:RampInterpolator.ColorRange>                    
                    <esri:ColorRange From="Yellow" To="Red" />
                </esri:RampInterpolator.ColorRange>
            </esri:RampInterpolator>
        </esri:TemporalRenderer.SymbolAger>
</esri:TemporalRenderer>


Questions:
1) I would like the user to be able to change the size of the Symbols using a slider. How do i bind the Slider's value to the Symbols?
2) The SymbolAger does not work... how can i get this to work?

Thanks
0 Kudos
3 Replies
JenniferNery
Esri Regular Contributor
The RampInterpolator also includes SizeRange, which has From and To values. You can add this with your ColorRange if you wanted to interpolate symbols in both size and color.

If your layer is Time-Aware, you can use the TimeSlider and bind its value to the layer's TimeExtent, like in this example:http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#TimeSliderFeatureLayer

Jennifer
0 Kudos
linusang
Emerging Contributor
hi,

thanks for the clarification..

The layer is of type GeoRssLayer which inherits from GraphicsLayer and not FeatureLayer... therefore i believe it is not time-aware?

Which is also the cause of the SymbolAger in TemporalRenderer not working?

If it is, how can i make them to work?

regards
0 Kudos
JenniferNery
Esri Regular Contributor
GraphicsLayer is TimeAware layer. For GeoRssLayer, it's PublishDate will be used as the TimeExtent. I'm not sure if we are using the same layer. I tried to view graphic attributes from this sample http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GeoRssSimple and found that all graphics have the same PublishDate. This is the reason why the Temporal Renderer did not look like it worked because all of them have the same date.

Jennifer
0 Kudos