ArcGIS API for WPF - Library Reference
GeoRssLayer Class
Members  See Also  Send comments on this topic
ESRI.ArcGIS.Client.Toolkit.DataSources Namespace : GeoRssLayer Class

GeoRSS Layer.

Object Model

GeoRssLayer Class

Syntax

Visual Basic (Declaration) 
Public NotInheritable Class GeoRssLayer 
   Inherits ESRI.ArcGIS.Client.GraphicsLayer
   Implements ILegendSupport 
C# 
public sealed class GeoRssLayer : ESRI.ArcGIS.Client.GraphicsLayer, ILegendSupport  

Remarks

Only GeoRSS-simple feeds are supported. Geometries are returned in Geographic WGS84. If you are displaying the feed on top of a map in a different projection, they must be reprojected manually when the graphics collection gets features added.

The graphic will not have a symbol associated with them. You should specify a renderer on this layer, or manually assign symbols to the graphics when the graphics collection gets features added.

Recent earthquake's greater than M2.5 with map tips:

            <esri:GeoRssLayer Source="http://earthquake.usgs.gov/earthquakes/catalogs/1day-M2.5.xml" >
              <esri:GeoRssLayer.Renderer>
                <esri:SimpleRenderer Brush="Red" />
              </esri:GeoRssLayer.Renderer>
              <esri:GeoRssLayer.MapTip>
                <Border Padding="5" Background="White" esri:GraphicsLayer.MapTipHideDelay="0:0:0.5">
                  <StackPanel>
                    <TextBlock Text="{Binding [Title]}" FontWeight="Bold" FontSize="12" />
                    <TextBlock Text="{Binding [Summary]}" FontSize="10" />
                    <HyperlinkButton Content="Link" NavigateUri="{Binding [Link]}" Opacity=".5" FontSize="10" TargetName="_blank" />
                  </StackPanel>
                </Border>
              </esri:GeoRssLayer.MapTip>
            </esri:GeoRssLayer>
            

If you require a proxy, simply prefix the layer URI with a proxy prefix:

            <esri:GeoRssLayer Source="../proxy.ashx?url=http://earthquake.usgs.gov/earthquakes/catalogs/1day-M2.5.xml" />
            

The following attributes will be associated with each graphic:

Optionally, if the item is using any of the simple-georss extensions, these will also be included:

The Graphic's ESRI.ArcGIS.Client.Graphic.TimeExtent property will be set to a time instance matching the PublishDate.

Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         ESRI.ArcGIS.Client.Layer
            ESRI.ArcGIS.Client.GraphicsLayer
               ESRI.ArcGIS.Client.Toolkit.DataSources.GeoRssLayer

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© ESRI, Inc. All Rights Reserved.