How to Configure a Tile Server Base Map

This section explains how to configure a base map based on a map from a tile server. This type of base map is configured in a TileServerLayer node, as in the example below.

 

<TileServerLayer>

    <ID>osm</ID>

    <Default>True</Default>

    <DisplayName>OpenStreetMap</DisplayName>

    <Image>~/Content/img/widgetImages/Map_CloudMadeOSM.png</Image>

    <Url>http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png</Url>

    <SubDomains>a,b,c</SubDomains>

    <MaxZoom>19</MaxZoom>

    <Attribution>

      Map data and imagery from <a href="http://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors

    </Attribution>

</TileServerLayer>

 

In the XML structure of this type of base map, the following elements can be configured:

Node

Description

ID

Unique identifier of the base map.

Default

Whether the map will be displayed by default or not. Valid values: "True" and "False".

DisplayName

Name of the map to be displayed in the interface.

Image

Preview of the map to be displayed in the Maps window.

URL

URL of the data source used to generate the map.

SubDomains

Subdomains on which the tiles in the map are hosted.

MaxZoom

Maximum zoom level for the map.

Attribution

Description displayed at the bottom left corner of the map, indicating its origin.