C# Class 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.

Inheritance: GraphicsLayer
Afficher le fichier Open project: Esri/arcgis-toolkit-sl-wpf Class Usage Examples

Méthodes publiques

Свойство Type Description
ClientCertificateProperty System.Windows.DependencyProperty
CredentialsProperty System.Windows.DependencyProperty
SourceProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
OnGraphicsSourceChanged ( IEnumerable oldValue, IEnumerable newValue ) : void

Called when the GraphicsSource property changes.

Private Methods

Méthode Description
loader_LoadCompleted ( object sender, GeoRssLoader e ) : void
loader_LoadFailed ( object sender, GeoRssLoader e ) : void

Method Details

GeoRssLayer() public méthode

Initializes a new instance of the GeoRssLayer class.
public GeoRssLayer ( ) : System
Résultat System

Initialize() public méthode

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
Résultat void

OnGraphicsSourceChanged() protected méthode

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.
Résultat void

Update() public méthode

Reloads the RSS feed from the endpoint.
public Update ( ) : void
Résultat void

Property Details

ClientCertificateProperty public_oe static_oe property

Identifies the ClientCertificate dependency property.
public static DependencyProperty,System.Windows ClientCertificateProperty
Résultat System.Windows.DependencyProperty

CredentialsProperty public_oe static_oe property

Identifies the Credentials dependency property.
public static DependencyProperty,System.Windows CredentialsProperty
Résultat System.Windows.DependencyProperty

SourceProperty public_oe static_oe property

Identifies the Source dependency property.
public static DependencyProperty,System.Windows SourceProperty
Résultat System.Windows.DependencyProperty