Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

As we described in the Overview page Overview of base mapping available via ADS & OS Maps API, you can have access to Ordance Survey’s WMTS Basemaps in different styles directly through the OS Maps API and to the custom OS Maps API basemaps through the Astun Map Services. To configure the available basemaps in iShare (either Maps or GIS) you need to first obtain an API key from OS Data Hub. You can see how to do so here How to create a Project and generate an API key in OS Data Hub. After you obtain your API key you are ready to configure the OS WMTS basemaps in Studio as described in the following steps. Please note that the process is the same whether you use Maps or GIS.

...

In the zip folder that is attached to this guide, you will find several MapSources and a MapFile. The MapSources that have the prefix _direct are those powered by OS Maps API directly and the MapSources that have the _wmts_ads prefix are those powered by OS Maps API through the Astun Map Services. For example purposes, we are going to use the MapSource that holds the OS Road style on the GIS server. The process remains the same for the rest of the styles.

  1. From the zip folder MapSources V6 grab the MapFile called base_osmapsapi.map and place it under E:\iShareData\LIVE\_MapServerConfig\

  2. From the zip folder MapSources V6 grab the OS Road MapSource called base_osmapsapi_road_direct.xml and place it under D:\Astun\iShareGIS\LIVE\WebApps\WebService\config\mapsources

  3. After placing the files into the correct destinations, open Studio and import the MapSource under the BaseMaps node:

    1. Right-click on the BaseMaps node and select Import MapSource

      mstsc_VBm2djSnzQ.png

    2. Navigate to the directory in which you placed the OS Road MapSource, open it, and give it an appropriate name:

      mstsc_7aFfFqyTed.pngmstsc_gvDHiyX8AM.png

  4. After the import, you will notice that everything is prefilled for you. All you have to do is add your API key and your organization’s/council’s name in the correct places:

    1. Navigate to the Details node and examine the URI and the WMS URI fields. You will see three placeholders, two that say your-API-key-goes-here and one that says your-organization-goes-here. Replace those placeholders with your actual API key and the council’s name, and don't forget to save your changes:

      mstsc_E7dGRZgnUo.png

  5. Load the Basemap into the profile you want it to display for your users, save and test that the basemap is displaying correctly:

    mstsc_KBfrfCiAMr.pngImage Added

    chrome_ah04CvpTL8.pngImage Added

  6. Follow the same procedure