C# Класс MapAround.Mapping.MapWorkspace

Represents a map workspace.

Instances of this class is used to store map settings like a list of layers; data sources, colors, fonts, visible area, the scale of the map etc.

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

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

Метод Описание
Load ( string fileName ) : void

Loads a workspace from a file containing an xml-representation of workspace.

Save ( string fileName ) : void

Saves xml-representation of this workspace to file.

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

Метод Описание
addAppDataElement ( LayerBase layer, XmlDocument doc, XmlElement layerElement ) : void
addAttribute ( XmlDocument doc, XmlElement element, string attributeName, string attributeValue ) : void
addAutoTitleSettingsElement ( FeatureLayer layer, XmlDocument doc, XmlElement layerElement ) : void
addDataProviderElement ( LayerBase layer, XmlDocument doc, XmlElement layerElement ) : void
addFeatureLayerExtesions ( IEnumerable featureLayerExtensions, XmlDocument doc, XmlElement layerElement ) : void
addIndiciesElements ( FeatureLayer layer, XmlDocument doc, XmlElement layerElement ) : void
addLayerElement ( LayerBase layer, XmlDocument doc, XmlElement layersElement ) : void
addLegendElement ( FeatureLayer layer, XmlDocument doc, XmlElement layerElement ) : void
addPointStyleElement ( PointStyle PointStyle, XmlDocument doc, XmlElement layerElement ) : void
addPolygonStyleElement ( PolygonStyle PolygonStyle, XmlDocument doc, XmlElement layerElement ) : void
addPolylineStyleElement ( PolylineStyle PolylineStyle, XmlDocument doc, XmlElement layerElement ) : void
addRasterStyleElement ( RasterLayer layer, XmlDocument doc, XmlElement layerElement ) : void
addRasterbindingElement ( RasterLayer layer, XmlDocument doc, XmlElement layerElement ) : void
addTitleStyleElement ( TitleStyle TitleStyle, XmlDocument doc, XmlElement layerElement ) : void
floatArrayToString ( float arr ) : string
getXml ( ) : string
processAppData ( XmlNode layerNode, LayerBase l ) : void
processAutoTitlesSettings ( XmlNode layerNode, FeatureLayer l ) : void
processBinding ( XmlNode layerNode, RasterLayer l ) : void
processDataProvider ( XmlNode layerNode, LayerBase l ) : void
processIndicies ( XmlNode layerNode, FeatureLayer l ) : void
processLayer ( XmlNode node ) : void
processLayerExtension ( XmlNode layerExtension, FeatureLayer fl ) : void
processLegendSettings ( XmlNode layerNode, FeatureLayer l ) : void
processPointStyle ( XmlNode layerNode, PointStyle PointStyle ) : void
processPolygonStyle ( XmlNode layerNode, PolygonStyle PolygonStyle ) : void
processPolylineStyle ( XmlNode layerNode, PolylineStyle PolylineStyle ) : void
processRaster ( XmlNode mapNode ) : void
processRasterStyle ( XmlNode layerNode, RasterLayer l ) : void
processTitleStyle ( XmlNode layerNode, TitleStyle TitleStyle ) : void
processViewBox ( XmlNode workspaceNode ) : void
setXml ( string value ) : void
stringToFloatArray ( string str ) : float[]
tryGetNodeByName ( XmlNodeList nodes, string name ) : XmlNode

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

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

Loads a workspace from a file containing an xml-representation of workspace.
public Load ( string fileName ) : void
fileName string File name
Результат void

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

Saves xml-representation of this workspace to file.
public Save ( string fileName ) : void
fileName string File name
Результат void