[]
        
(Showing Draft Content)

C1.Win.FlexReport.CustomFields.Maps.KmlLayer

KmlLayer Class

Represents a map layer containing KML spatial data.

Implements
Namespace: C1.Win.FlexReport.CustomFields.Maps
Assembly: C1.Win.FlexReport.CustomFields.4.8.dll
Syntax
public class KmlLayer : LayerBase, ILegendItem

Constructors

Name Description
KmlLayer()
KmlLayer(Map)

Fields

Name Description
varItemName

The string "kmlItemName" used in KmlLayer's expressions will be replaced with the actual quoted KML item name at runtime prior to expression's evaluation. E.g. the following expression could be used to check for the country:

Country=kmlItemName
(note the absense of quotes around kmlName).

Properties

Name Description
BaseName

Gets a one word description of the item type (e.g. "Layer"). Also used to automatically generate new items' names.

Caption

Hides Caption as KML layers cannot be represented in legends.

EmbedKmlFile

Gets or sets a value indicating whether to embed KML data loaded from KmlFileName in the report definition file itself.

ItemFilterExpr

Gets or sets a filter string applied to the layer's data. When KML data is loaded into the layer, for each item being loaded this filter is applied to the layer data, and item expressions (ItemTrackExpr, ItemVisibleExpr, ItemStyleExpr) are evaluated in the context of the first data row matching the filter.

ItemStyle

Gets the default item style.

Note: the set accessor is for serialization only, and should not be used directly.

ItemStyleExpr

Gets or sets an expression that should evaluate to an index or a name of a style in the KmlItemStyles collection that will be applied to the item. The name may refer to a style in another Map object within the report.

ItemTrackExpr

Gets or sets an expression that determines whether a KML item's coordinates are used when calculating auto center/zoom. If this property is not specified, true is assumed.

ItemVisibleExpr

Gets or sets an expression that determines whether a KML item is visible.

KmlFileData

Gets or sets the KML file data.

KmlFileName

Gets or sets the KML/KMZ file name or network URL.

KmlFileNameXml

Used to persist KmlFileName.

LegendItemFillColor

Gets the legend item graphic's fill color.

LegendItemKind

Gets the kind of a legend item.

LegendItemStrokeColor

Gets legend item stroke color.

PointsLocationExpressions

Gets the list of lists of location expressions. The outer list corresponds to the point or points associated with each record of the layer - i.e. for a points layer, that list will contain one element, for lines - two etc. The inner list for each point is the collection of location expressions. E.g. it can be Country, City, Address.

PointsLocations

Gets the List<LonLat<string>> of locations.

Methods

Name Description
OnOwnerChanging()
OnPropertyChanged()