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 stepsguides. Please note that the process is the same whether you use Maps or GIS.

To make this process smoother for you we have already prepared the MapSources and a basic MapFile ready to be loaded into iShare. All you need to do is place the MapSourcesand the corresponding MapFile in the correct directories, Import the MapSources into Studio, and enter your API key in the appropriate places, which we have highlighted belowin the guides.

In the zip folder that is attached to the end of 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.

...

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

...

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

...

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.pngImage Removed

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

    mstsc_7aFfFqyTed.pngImage Removedmstsc_gvDHiyX8AM.pngImage Removed

...

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.pngImage Removed

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

...

chrome_ah04CvpTL8.pngImage Removed

...

Below you will find two pages guiding you through how to set up the Basemaps via OS and the Basemaps via the Astun Map Services.

Configuring iShare Maps/GIS to use standard OS Maps API WMTS direct from the OS and WMS (for printing) via ADS