Click or drag to resize

LayerFactory Class

Generates layer objects based on xServer 2.
Inheritance Hierarchy
SystemObject
  Ptv.XServer.Controls.Map.Layers.Xmap2LayerFactory

Namespace:  Ptv.XServer.Controls.Map.Layers.Xmap2
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public class LayerFactory

The LayerFactory type exposes the following members.

Properties
  NameDescription
Public propertyAvailableMapStyles
All available map styles configured on the corresponding xMap2 server.
Public propertyBackgroundLayer
An ILayer object providing a tile-based (i.e. more responsive) rendering. The geographical content is defined by the list of background themes, see BackgroundThemes. This layer object should be inserted in a Map before the LabelLayer.
Public propertyBackgroundThemes
Collection of themes which determine the geographical content of the BackgroundLayer, for example themes like background or transport.
Public propertyBaseUrl
URL specifying the root part of the URL from which a service like rendering a map can be composed. For example, https://xserver2-europe-eu-test.cloud.ptvgroup.com can be used as a base URL providing access to a Cloud based XServer2 system. The renderMap service is composed to: https://xserver2-europe-eu-test.cloud.ptvgroup.com/services/rs/XMap/{version}/renderMap
Public propertyFeatureLayers
Provides functionality all around Feature Layers.
Public propertyLabelLayer
An ILayer object providing an untiled rendering, the whole map is comprised in a single bitmap. The geographical content is defined by the list of foreground themes, see LabelThemes. This layer object should be inserted in a Map after the BackgroundLayer.
Public propertyLabelThemes
Collection of themes which determine the geographical content for the LabelLayer, for example themes like labels or PTV_TruckAttributes. The major intention of this layer is to avoid blurred objects like texts or traffic signs when fractional rendering is applied. Fractional rendering is provided by the Map object allowing seamless zooming. In most mapping frameworks there are only zoom levels available according the classification of tile sizes. Only in such environments a tile-based rendering is recommended.
Public propertyMapLanguage
Function which returns the language, used for geographical objects in the map like names for town and streets. The language code is defined in BCP47, for example en, fr or de.
Public propertyMapStyle
Style of a map.
Public propertyPreferredRouteTypes
A set of network classifications of the preferred routes. Examples are BK_2.
Public propertyToken
For xServer internet, a token must be specified for authentication.
Public propertyUserLanguage
The language used for textual messages, for example provided by the theme traffic incidents. The language code is defined in BCP47, for example en, fr or de.
Top
Fields
  NameDescription
Public fieldStatic memberModifyRequest
Callback for a final adaptation of a WebRequest before it is sent to XMap2 server.
Public fieldStatic memberReportXServerError
Callback for a reporting of errors which may occur during xServer requests.
Top
Extension Methods
  NameDescription
Public Extension MethodToJson
Converts an object to a JSON string representation.
(Defined by JSONWriter.)
Top
Remarks
The provided layers have to be inserted into the Map's layer management client-side. There exist two different layers to make it is possible to 'inject' additional layers between background and label layer.
See Also