C# Class ESRI.ArcGIS.Client.Toolkit.DataSources.Kml.FeatureDefinition

Metadata storage for all elements in a KML file.
显示文件 Open project: Esri/arcgis-toolkit-sl-wpf Class Usage Examples

Public Properties

Property Type Description
styles KMLStyle>.Dictionary

Public Methods

Method Description
AddContainer ( ContainerInfo container ) : void

Adds a container to the list.

AddGroundOverlay ( GroundOverlayDescriptor fd ) : void

Adds a grounoaverlay to the list.

AddPlacemark ( PlacemarkDescriptor fd ) : void

Adds a placemark descriptor to the list.

AddStyle ( string key, KMLStyle style ) : void

Adds a KML style to the list.

Clear ( ) : void

Clear all features. This is invoked by the KML engine so that it can cleanly process multiple KML files with each as a separate graphics layer.

CreateGraphics ( KmlGraphicsLayer layer, ImageBrush>.IDictionary images ) : void

Creates graphic elements and adds them to the graphics layer.

CreateGroundOverlays ( ElementLayer layer, ImageBrush>.IDictionary images, Map map ) : void

Createsground overlays and adds them to the element layer.

FeatureDefinition ( Uri baseUri ) : ESRI.ArcGIS.Client.Toolkit.DataSources.Kml.Zip

Initializes a new instance of the FeatureDefinition class.

Private Methods

Method Description
ComputeIconTranslationValues ( KMLStyle style, ESRI.ArcGIS.Client.Toolkit.DataSources.Kml.KmlPlaceMarkerSymbol ms, BitmapImage bi ) : void
GetFeaturePlacemarkerDescriptor ( DependencyObject graphic ) : PlacemarkDescriptor
GetIconImage ( ZipFile zipFile, string imageName ) : System.Windows.Media.ImageBrush
GetIconImage ( string IconHref ) : System.Windows.Media.ImageBrush

Returns the bitmap image brush associated with the icon href for the point feature.

GetImageBrushKey ( DependencyObject bitmapImage ) : string
GetRendererInfo ( PlacemarkDescriptor feature, KMLStyle style, string &label, string &description ) : void
IsWebMercator ( SpatialReference spatialReference ) : bool
SetFeaturePlacemarkerDescriptor ( DependencyObject graphic, PlacemarkDescriptor feature ) : void
SetImageBrushKey ( DependencyObject bitmapImage, string key ) : void
UpdateGraphicsAndRenderer ( KmlGraphicsLayer layer, UniqueValueRenderer renderer, string key ) : void

Method Details

AddContainer() public method

Adds a container to the list.
public AddContainer ( ContainerInfo container ) : void
container ContainerInfo The container.
return void

AddGroundOverlay() public method

Adds a grounoaverlay to the list.
public AddGroundOverlay ( GroundOverlayDescriptor fd ) : void
fd GroundOverlayDescriptor The groundoverlay descriptor.
return void

AddPlacemark() public method

Adds a placemark descriptor to the list.
public AddPlacemark ( PlacemarkDescriptor fd ) : void
fd PlacemarkDescriptor Placemark description.
return void

AddStyle() public method

Adds a KML style to the list.
public AddStyle ( string key, KMLStyle style ) : void
key string Unique key associated with the style, typically an id, filename or GUID.
style KMLStyle Style description.
return void

Clear() public method

Clear all features. This is invoked by the KML engine so that it can cleanly process multiple KML files with each as a separate graphics layer.
public Clear ( ) : void
return void

CreateGraphics() public method

Creates graphic elements and adds them to the graphics layer.
public CreateGraphics ( KmlGraphicsLayer layer, ImageBrush>.IDictionary images ) : void
layer KmlGraphicsLayer Graphics layer that will have features added to it.
images ImageBrush>.IDictionary Dictionary of images coming from kmz content or from previous parsing
return void

CreateGroundOverlays() public method

Createsground overlays and adds them to the element layer.
public CreateGroundOverlays ( ElementLayer layer, ImageBrush>.IDictionary images, Map map ) : void
layer ElementLayer Element layer that will have overlays added to it.
images ImageBrush>.IDictionary Dictionary of images coming from kmz content or from previous parsing
map Map The map the KML layer belongs to (useful to know the SR)
return void

FeatureDefinition() public method

Initializes a new instance of the FeatureDefinition class.
public FeatureDefinition ( Uri baseUri ) : ESRI.ArcGIS.Client.Toolkit.DataSources.Kml.Zip
baseUri System.Uri
return ESRI.ArcGIS.Client.Toolkit.DataSources.Kml.Zip

Property Details

styles public_oe property

public Dictionary styles
return KMLStyle>.Dictionary