Class: WMTS

bu.ortho.source. WMTS

Layer source for BlomUrbex Ortho WMTS services. This source do not inherits from ol.source.WMTS because this source adds important functionality to that. First it connects to GetCapabilities service during constructor to retrieve info from the server and store it for initializing options. Also, this allows to change layer and matrixSet on demand. This type of functionality is not possible inheriting from ol.source.WMTS.


new WMTS(options)

Parameters:
Name Type Description
options bu.ortho.source.WMTSOptions
Source:
bu-ortho/source/wmts.js

Extends

  • ol.source.TileImage

Methods


changeOptions(forceChange [, layerType], rotation, resolution, time)

Change internal options for the WMTS layer and matrixSet passed.

Parameters:
Name Type Argument Description
forceChange boolean

If force a change even if params will stay the same.

layerType bu.BlomURBEXBaseLayerType <optional>

LayerType.

rotation number <nullable>

The rotation in decimal degrees.

resolution number <nullable>

The resolution in map units per pixel.

time string <nullable>

The time filter.

Source:
bu-ortho/source/wmts.js

getAutoSwitchLayer()

Gets autoSwitchLayer value, that indicates if layer param is updated when map rotation changes or not.

Source:
bu-ortho/source/wmts.js
Returns:
Type
boolean

getBaseUrl()

Return the base URL used to request tiles.

Source:
bu-ortho/source/wmts.js
Returns:

Base URL.

Type
string

getCapabilities()

Source:
bu-ortho/source/wmts.js
Returns:

Return an object representing the WMTS capabilities.

Type
Object

getDimensions()

Get the dimensions, i.e. those passed to the constructor through the "dimensions" option, and possibly updated using the updateDimensions method.

Source:
bu-ortho/source/wmts.js
Returns:

Dimensions.

Type
Object

getFormat()

Return the image format of the WMTS source.

Source:
bu-ortho/source/wmts.js
Returns:

Format.

Type
string

getLayer()

Return the layer of the WMTS source.

Source:
bu-ortho/source/wmts.js
Returns:

Layer.

Type
bu.BlomURBEXBaseLayer

getLayerForRotation(rotation)

Gets the layer to request for a given rotation.

Parameters:
Name Type Description
rotation number

The rotation in decimal degrees.

Source:
bu-ortho/source/wmts.js
Returns:
Type
string

getMatrixSet()

Return the matrix set of the WMTS source.

Source:
bu-ortho/source/wmts.js
Returns:

MatrixSet.

Type
string

getOrthoZoom(resolution)

Returns zoom level in corresponding 'BlomURBEX:ORTHO' layer to given resolution. If GetCapabilities infomation is still not available undefinded is returned.

Parameters:
Name Type Description
resolution number | undefined

Center currently visible in current source projection.

Source:
bu-ortho/source/wmts.js
Returns:

zoom Zoom level.

Type
number

getOverlay()

Return the overlay of the WMTS source.

Source:
bu-ortho/source/wmts.js
Returns:

Overlay.

Type
string

getRequestedLayer()

Return the real requested layer of the WMTS source.

Source:
bu-ortho/source/wmts.js
Returns:

Layer.

Type
bu.BlomURBEXBaseLayer

getRequestEncoding()

Return the request encoding, either "KVP" or "REST".

Source:
bu-ortho/source/wmts.js
Returns:

Request encoding.

Type
ol.source.WMTSRequestEncoding

getStyle()

Return the style of the WMTS source.

Source:
bu-ortho/source/wmts.js
Returns:

Style.

Type
string

getVersion()

Return the version of the WMTS source.

Source:
bu-ortho/source/wmts.js
Returns:

Version.

Type
string

<protected> handleWMTSError()

Source:
bu-ortho/source/wmts.js

<protected> handleWMTSResponse(response)

Parameters:
Name Type Description
response Object

An object representing the WMTS capabilities.

Source:
bu-ortho/source/wmts.js

updateAttributions(center, resolution)

Updates attributions with the given parameters.

Parameters:
Name Type Description
center ol.Coordinate

Center currently visible in current source projection.

resolution number

Resolution of level currently visible.

Source:
bu-ortho/source/wmts.js

updateDimensions(dimensions)

Update the dimensions.

Parameters:
Name Type Description
dimensions Object

Dimensions.

Source:
bu-ortho/source/wmts.js