Generic Tile Server

There are various different Tile Services options available, if you are using one which is not mentioned previously then you can configure the map using the details here.

{
 "roads":{
  "type": "xyz",
  "url": "URL with placeholders for ${z}, ${y}, and ${z}",
  "resolutions" : [Resolution list],
  "tileSize": [Tile Size],
  "tileOrigin" : [Tile Origin],
  "projection": "Projection Code",
  "projectionDef": "Projection Definition",
  "units": "m",
  "restrictedExtent": [Restricted extent],
  "maxExtent": [Maximum Extent]
 }
}

"type":

Set this value which is applicable to your Tile Service.

Note: If your tile service is one based, rather than zero based (i.e. the most zoomed out zoom level is 1 and the first row and column is 1 rather than 0), then use a "type" of "StratusLayer" rather than "XYZ".

"url":

This is the full URL for an individual tile. Use the placeholders ${z}, ${y} and ${x} to specify the relevant zoom, row and column in the URL.

"resolutions":

Enter a list of all the resolutions required.

e.g. "resolutions" : [ 42.3334180001693, 21.1667090000847, 10.5833545000423],

"tileSize":

This is the width and height of an individual tile, in pixels.

e.g. [256, 256] or [512, 512].

"tileOrigin":

This is the coordinates of the top left hand corner of the tile at row zero, column zero. This is only needed if it is different from the maxExtent

"projection":

Refer to Projections page for details.

"projectionDef":

Refer to Projections page for details.

"units":

must be entered as "m", as shown in the example. m = metres.

"restrictedExtent":

This is the maximum extent of the map that a user would be allowed to see. Does not need to be supplied if this is the same as the maxEtent below.

"maxExtent":

This is the minimum and maximum northings and eastings that the map covers.

It is specified as a comma separated list of coordinates inside the square brackets as follows: Minimum X,Minimum Y,Maximum X,Maximum Y