LayerFactory Class |
Namespace: Ptv.XServer.Controls.Map.Layers.Xmap2
The LayerFactory type exposes the following members.
Name | Description | |
---|---|---|
AvailableMapStyles | All available map styles configured on the corresponding xMap2 server. | |
BackgroundLayer | 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. | |
BackgroundThemes | Collection of themes which determine the geographical content of the BackgroundLayer,
for example themes like background or transport.
| |
BaseUrl | 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
| |
FeatureLayers | Provides functionality all around Feature Layers. | |
LabelLayer | 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. | |
LabelThemes | 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. | |
MapLanguage | 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. | |
MapStyle | Style of a map. | |
PreferredRouteTypes | A set of network classifications of the preferred routes. Examples are BK_2. | |
Token | For xServer internet, a token must be specified for authentication. | |
UserLanguage | 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. |
Name | Description | |
---|---|---|
ModifyRequest | Callback for a final adaptation of a WebRequest before it is sent to XMap2 server. | |
ReportXServerError | Callback for a reporting of errors which may occur during xServer requests. |
Name | Description | |
---|---|---|
ToJson | Converts an object to a JSON string representation. (Defined by JSONWriter.) |