How to Configure a WMS Base Map

This section explains how to configure a base map using a WMS map. This type of base map is configured in a WmsLayer node, as in the example below.

 

<WmsLayer>
  <Default>True</Default>
    <ID>BH1Layer</ID>
    <DisplayName>Example/DisplayName>
    <Image>~/Content/img/widgetImages/Map_MapQuestOSM.png</Image>
    <Url>https://map.agency.gov:443/map/ows</Url>
    <Layers>SIDS:BASE_MAP</Layers>
    <Format>image/png</Format>
    <Transparent>True</Transparent>

    <Attribution>

      Map data and imagery from <a href="http://open.mapquest.co.uk" target="_blank">MapQuest</a> and <a href="http://www.openstreetmap.org/" target="_blank">OpenStreetMap</a>.

    </Attribution>

  </WmsLayer>

 

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

Node

Description

Default

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

ID

Unique identifier of the base map.

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.

Layers

If the server is providing more than one map as a layer, this parameter is used to specify which layers should be retrieved.

Format

Format of the image used by the map, preceded by "image/". Valid values: "png", "gif" and "jpg".

Transparent

If the image of the map will be transparent when displayed. Valid values: "True" and "False".

Attribution

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