@@ -287,17 +287,18 @@ directly. See the [WMTS specification](https://www.ogc.org/standard/wmts/).
287287```js
288288constructor(
289289 {
290- capabilities ?: Object ,
290+ url ?: string ,
291291 layer?: string,
292292 tileMatrixSet?: string,
293- style?: string,
294- dimensions?: Object ,
295- opacity = 1 : number,
296- color = 0xffffff : number | Color,
297- frame = null: Matrix4,
298- preprocessURL = null : function ,
299- alphaMask = false : boolean,
300- alphaInvert = false : boolean,
293+ style = ' default' : string,
294+ format = ' image/jpeg' : string,
295+ dimensions = null: Object < string, (string| number)> | null ,
296+ tileMatrixLabels = null: Array < string> | null ,
297+ tileMatrices = null: Array < WMTSTileMatrix> | null ,
298+ projection = null: string | null ,
299+ levels = 20 : number,
300+ tileDimension = 256 : number,
301+ contentBoundingBox = null: Array < number> | null ,
301302 }
302303)
303304` ` `
@@ -503,11 +504,18 @@ a URL template directly.
503504```js
504505constructor(
505506 {
506- capabilities ?: Object ,
507+ url ?: string ,
507508 layer?: string,
508509 tileMatrixSet?: string,
509- style?: string,
510- dimensions?: Object ,
510+ style = ' default' : string,
511+ format = ' image/jpeg' : string,
512+ dimensions = null: Object < string, (string| number)> | null ,
513+ tileMatrixLabels = null: Array < string> | null ,
514+ tileMatrices = null: Array < WMTSTileMatrix> | null ,
515+ projection = null: string | null ,
516+ levels = 20 : number,
517+ tileDimension = 256 : number,
518+ contentBoundingBox = null: Array < number> | null ,
511519 }
512520)
513521` ` `
@@ -1101,134 +1109,82 @@ Bounding box `bounds` arrays are in `[ minLon, minLat, maxLon, maxLat ]` order i
11011109constructor ( manager : LoadingManager )
11021110```
11031111
1104- ## WMTSImageSource
1105-
1106- _extends `TiledImageSource`_
1107-
1108- WMTS (Web Map Tile Service) image source for loading tiled map imagery.
1109-
1110- This class provides support for loading map tiles from WMTS-compliant services.
1111- It handles parsing WMTS capabilities documents and constructing proper tile URLs.
1112-
1113-
1114- ### .capabilities
1115-
1116- ```js
1117- capabilities: Object | null
1118- ```
1119-
1120- Parsed WMTS capabilities object
1112+ ## FeatureInfo
11211113
11221114
1123- ### .layer
1115+ ### .label
11241116
11251117```js
1126- layer : string | Object | null
1118+ label : string | null
11271119```
11281120
1129- The layer to render (identifier string or layer object)
1130-
1131-
1132- ### .tileMatrixSet
1121+ ### .propertyTable
11331122
11341123```js
1135- tileMatrixSet : string | Object | null
1124+ propertyTable : string | null
11361125```
11371126
1138- The tile matrix set to use (identifier string or object)
1139-
1140-
1141- ### .style
1127+ ### .nullFeatureId
11421128
11431129```js
1144- style: string | null
1130+ nullFeatureId: number | null
11451131```
11461132
1147- The style identifier
1148-
1149-
1150- ### .dimensions
1133+ ### .texture
11511134
11521135```js
1153- dimensions : Object
1136+ texture? : Object
11541137```
11551138
1156- Dimension values for the WMTS request
1139+ ## WMTSTileMatrix
11571140
11581141
1159- ### .url
1142+ ### .identifier
11601143
11611144```js
1162- url : string | null
1145+ identifier : string
11631146```
11641147
1165- The URL template for tile requests
1148+ TileMatrix identifier (e.g., 'Level0', 'EPSG:3857:0').
11661149
1167-
1168- ### .constructor
1150+ ### .matrixWidth
11691151
11701152```js
1171- constructor(
1172- {
1173- capabilities = null: Object ,
1174- layer = null: string | Object ,
1175- tileMatrixSet = null: string | Object ,
1176- style = null: string,
1177- url = null: string,
1178- dimensions = {}: Object ,
1179- }
1180- )
1153+ matrixWidth: number
11811154```
11821155
1183- Creates a new WMTSImageSource instance .
1156+ Number of tile columns at this level .
11841157
1185- ### .getUrl
1158+ ### .matrixHeight
11861159
11871160```js
1188- getUrl ( x : number, y : number, level : number ) : string
1161+ matrixHeight : number
11891162```
11901163
1191- Generates the URL for a specific tile.
1192-
1164+ Number of tile rows at this level.
11931165
1194- ### .init
1166+ ### .tileWidth
11951167
11961168```js
1197- init () : Promise < void >
1169+ tileWidth?: number
11981170```
11991171
1200- Initializes the image source by parsing capabilities and setting up the tiling scheme.
1201-
1202- This method:
1203- - Resolves layer, tileMatrixSet, and style from capabilities
1204- - Determines the projection (EPSG:4326 or EPSG:3857)
1205- - Configures the tiling scheme with proper bounds and tile sizes
1206- - Constructs the final URL template
1207-
1208-
1209- ## FeatureInfo
1172+ Tile width in pixels (defaults to tileDimension).
12101173
1211-
1212- ### .label
1174+ ### .tileHeight
12131175
12141176```js
1215- label : string | null
1177+ tileHeight?: number
12161178```
12171179
1218- ### .propertyTable
1180+ Tile height in pixels (defaults to tileDimension).
12191181
1220- ` ` ` js
1221- propertyTable: string | null
1222- ` ` `
1223-
1224- ### .nullFeatureId
1182+ ### .tileBounds
12251183
12261184```js
1227- nullFeatureId : number | null
1185+ tileBounds: Array< number>
12281186```
12291187
1230- ### .texture
1231-
1232- ` ` ` js
1233- texture?: Object
1234- ` ` `
1188+ Tile grid bounds in radians `[west, south, east, north]`.
1189+ Required because the actual coverage depends on TopLeftCorner and ScaleDenominator
1190+ from the capabilities XML and cannot be computed from grid dimensions alone.
0 commit comments