Click or drag to resize

UntiledProvider Class

Loads untiled bitmaps from a given xServer 2 URL, like http://xserver-2:40000/services/rs/XMap/renderMap. Its main purpose is to get labels from xServer 2, which shows a proper rendering of textual objects independent from the current scale. By means of tiled access some unpleasant artifacts may occur when fractional rendering is used. With untiled rendering this issue can be avoided.
Inheritance Hierarchy
SystemObject
  Ptv.XServer.Controls.Map.Layers.Xmap2UntiledProvider

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 UntiledProvider : IUntiledProviderWithMapObjects, 
	IUntiledProvider

The UntiledProvider type exposes the following members.

Constructors
  NameDescription
Public methodUntiledProvider
Initializes a new instance of the UntiledProvider class
Top
Properties
  NameDescription
Public propertyContentSnapshotId
ID of the content snapshot.
Public propertyMapLanguage
The language code 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 propertyPreferredRouteTypes
A set of network classifications of the preferred routes. Examples are BK_2.
Public propertyReferenceTime
For SnapshotTimeConsideration and TimeSpanConsideration it is necessary to define a reference time to determine which time dependent features should be active or not. This reference time comes along with the following format: yyyy-MM-ddTHH:mm:ss[+-]HH:mm, for example 2018-08-05T04:00:00+02:00.
Public propertyRequestUriString
URL of the service which provides untiled access of a map image via JSON request.
Public propertyShowOnlyRelevantByTime
Indicator if the non-relevant features should be shown or not.
Public propertyStoredProfile
Profile containing the styles of a map.
Public propertyThemesForRendering
A set of themes for which a map should be rendered. Examples are labels, but also Feature Layer themes like Truck Attributes.
Public propertyThemesWithMapObjects
A set of themes for which map object information should be calculated during the renderMap service request. Commonly, this set is restricted to Feature Layer themes like Truck Attributes.
Public propertyTimeConsiderationScenario
Time consideration scenario which should be used when the map is rendered and map objects are retrieved. Currently supported scenarios are OptimisticTimeConsideration, SnapshotTimeConsideration and TimeSpanConsideration. For all other return values (including null string), no scenario is used and all time dependent features are not relevant.
Public propertyTimeSpan
Time span (in seconds) which is added to the reference time and needed for the TimeSpanConsideration scenario.
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.
Public propertyXToken
xToken needed for authentication in cloud based environments.
Top
Methods
  NameDescription
Public methodGetImageStream
Returns a bitmap for a map section specified in PTV-internal Mercator format.
Public methodGetImageStreamAndMapObjects
Returns a bitmap for a map section specified in PTV-internal Mercator format.
Top
Extension Methods
  NameDescription
Public Extension MethodToJson
Converts an object to a JSON string representation.
(Defined by JSONWriter.)
Top
See Also