WmtsMapService Constructor |
Creates and initializes an instance of WmtsMapService.
Namespace:
Ptv.XServer.Controls.Map.Layers.WmtsLayer
Assembly:
Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax public WmtsMapService(
string urlTemplate,
string crs,
SelectTileMatrixDelegate selectTileMatrix,
IBoundingBox limits = null
)
Public Sub New (
urlTemplate As String,
crs As String,
selectTileMatrix As SelectTileMatrixDelegate,
Optional limits As IBoundingBox = Nothing
)
public:
WmtsMapService(
String^ urlTemplate,
String^ crs,
SelectTileMatrixDelegate^ selectTileMatrix,
IBoundingBox^ limits = nullptr
)
new :
urlTemplate : string *
crs : string *
selectTileMatrix : SelectTileMatrixDelegate *
?limits : IBoundingBox
(* Defaults:
let _limits = defaultArg limits null
*)
-> WmtsMapService
Parameters
- urlTemplate
- Type: SystemString
The template for settings up the URLs for requesting tiles. See remarks below. - crs
- Type: SystemString
The CRS of the WMTS service we're calling. - selectTileMatrix
- Type: Ptv.XServer.Controls.Map.Layers.WmtsLayerSelectTileMatrixDelegate
A function determining the best matching tile matrix for a given rendering request. - limits (Optional)
- Type: Ptv.XServer.Controls.Map.Tools.ReprojectionIBoundingBox
Optionally defines the limits of the MapService in EPSG:76131.
Remarks
The url template is expected to contain the placeholders "{x}", "{y}" and "{z}", e.g.
"http://mywmts.service.de/wmts/mylayer/mymatrixset/{z}/{x}/{y}.png". The placeholders will be
replaced when requesting tiles; the value of "{z}" will be taken from the identifier of the tile
matrix actually returned by the given SelectTileMatrixDelegate. Each web request created will be
passed to a delegate that allows additional modifications.
See Also