Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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.

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 below.

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.

  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.png

    chrome_ah04CvpTL8.png

  6. Follow the same procedure

  • No labels