C# Класс ESRI.ArcGIS.Client.Toolkit.DataSources.GeoRssLayer

GeoRSS Layer.

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 (String) Summary (String) PublishDate (DateTime) Id (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 (double) floor (System.Int32) radius (double) featuretypetag (string) relationshiptag (string) featurename (string)

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

Наследование: GraphicsLayer
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ClientCertificateProperty System.Windows.DependencyProperty
CredentialsProperty System.Windows.DependencyProperty
SourceProperty System.Windows.DependencyProperty

Открытые методы

Метод Описание
GeoRssLayer ( ) : System

Initializes a new instance of the GeoRssLayer class.

Initialize ( ) : void

Initializes the resource.

Override this method if your resource requires asyncronous requests to initialize, and call the base method when initialization is completed.

Upon completion of initialization, check the ESRI.ArcGIS.Client.Layer.InitializationFailure for any possible errors.

Update ( ) : void

Reloads the RSS feed from the endpoint.

Защищенные методы

Метод Описание
OnGraphicsSourceChanged ( IEnumerable oldValue, IEnumerable newValue ) : void

Called when the GraphicsSource property changes.

Приватные методы

Метод Описание
loader_LoadCompleted ( object sender, GeoRssLoader e ) : void
loader_LoadFailed ( object sender, GeoRssLoader e ) : void

Описание методов

GeoRssLayer() публичный Метод

Initializes a new instance of the GeoRssLayer class.
public GeoRssLayer ( ) : System
Результат System

Initialize() публичный Метод

Initializes the resource.

Override this method if your resource requires asyncronous requests to initialize, and call the base method when initialization is completed.

Upon completion of initialization, check the ESRI.ArcGIS.Client.Layer.InitializationFailure for any possible errors.

public Initialize ( ) : void
Результат void

OnGraphicsSourceChanged() защищенный Метод

Called when the GraphicsSource property changes.
Thrown when property is changed on a .
protected OnGraphicsSourceChanged ( IEnumerable oldValue, IEnumerable newValue ) : void
oldValue IEnumerable Old value of the GraphicsSource property.
newValue IEnumerable New value of the GraphicsSource property.
Результат void

Update() публичный Метод

Reloads the RSS feed from the endpoint.
public Update ( ) : void
Результат void

Описание свойств

ClientCertificateProperty публичное статическое свойство

Identifies the ClientCertificate dependency property.
public static DependencyProperty,System.Windows ClientCertificateProperty
Результат System.Windows.DependencyProperty

CredentialsProperty публичное статическое свойство

Identifies the Credentials dependency property.
public static DependencyProperty,System.Windows CredentialsProperty
Результат System.Windows.DependencyProperty

SourceProperty публичное статическое свойство

Identifies the Source dependency property.
public static DependencyProperty,System.Windows SourceProperty
Результат System.Windows.DependencyProperty