Class: IWWMTSUtils

IWWMTSUtils

A class with utility functions for easy integration of WMTS services. The static functions of this class have to be called with layers returned by IWWMTSParser.

new IWWMTSUtils()

Methods


<static> createMapTypeFromWMTSLayer(map, layer)

Returns a new map type which loads map tiles from the provided WMTS service.
Parameters:
Name Type Description
map IWMap the map to show the layer on
layer object a layer as returned by IWWMTSParser
Returns:
the new map type
Type
IWMapType

<static> showWMTSLayerAsBaseMap(map, layer)

Creates a new map type from a WMTS layer and uses it as base map.
Parameters:
Name Type Description
map IWMap the map to show the layer on
layer object a layer as returned by IWWMTSParser
Returns:
the new map type
Type
IWMapType

<static> showWMTSLayerAsOverlay(map, layer)

Shows the provided WMTS layer as an overlay on the current map type.
Parameters:
Name Type Description
map IWMap the map to show the layer on
layer object a layer as returned by IWWMTSParser
Returns:
the new map type
Type
IWMapType