Visual Basic (Declaration) | |
---|---|
Public NotInheritable Class GeoRssLayer Inherits ESRI.ArcGIS.Client.GraphicsLayer Implements ESRI.ArcGIS.Client.ILegendSupport |
C# | |
---|---|
public sealed class GeoRssLayer : ESRI.ArcGIS.Client.GraphicsLayer, ESRI.ArcGIS.Client.ILegendSupport |
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:
- Title (System.String)
- Summary (System.String)
- PublishDate (System.DateTime)
- Id (System.String)
- Link (System.Uri)
- FeedItem (System.ServiceModel.Syndication.SyndicationItem)
Optionally, if the item is using any of the simple-georss extensions, these will also be included:
- elev (System.Double)
- floor (System.Int32)
- radius (System.Double)
- featuretypetag (System.String)
- relationshiptag (System.String)
- featurename (System.String)
The Graphic's ESRI.ArcGIS.Client.Graphic.TimeExtent property will be set to a time instance matching the PublishDate.
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
ESRI.ArcGIS.Client.Layer
ESRI.ArcGIS.Client.GraphicsLayer
ESRI.ArcGIS.Client.Toolkit.DataSources.GeoRssLayer
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8