Tiled Map Configuration for Web Map Services

It is advised to read first the documentation about Web Based Resources.

Web Services in HTML5 webclient

Direct connection to WMS\WMTS is not possible for HTML5 webclient. The OTM (Orbit TileMap) is an abstract image format that supports reading and rendering online image data.

It has several advantages in comparison with direct connection to a remote resource:

The following configuration parameters need to be defined in the '.otm' file for WMS service:

Format=WMS
MapUrl=http://kartor.stockholm.se:80/bios/wms/app/baggis/web/WMS_STHLM_STOCKHOLMSKARTA_GRA_FORENKLAD_RASTER?
ImageFormat=image/jpg
Layer=p_1002800
CRS=3011
PixelSize=0.5

The following configuration parameters need to be defined in the '.otm' file for WMTS service:

Format=WMTS
MapUrl=http://tile.informatievlaanderen.be/ws/raadpleegdiensten/wmts?
Layer=grb_bsk
PreferredCRS=31370
UserName=
Password=
Format=WMS
MapUrl=https://geoservices.informatievlaanderen.be/raadpleegdiensten/omwrgbmrvl/wms?
Layer=Ortho
CRS=31370
PixelSize=0.5

Parameters present in *.otm file:

Check the capabilities document of the WM(T)S server to find the right parameter values.
For WMS server append “?REQUEST=GetCapabilities” to the URL to download this xml document.
For WMTS append “?Service=WMTS&Request=GetCapabilities&Version=1.0.0” to the URL to download this xml document.

example:
http://maps.wien.gv.at/basemap/1.0.0/WMTSCapabilities.xml?Service=WMTS&Request=GetCapabilities&Version=1.0.0