...
In the zip folder that is attached to this guide, you will find several MapSources and a Mapfile. Below you will find detailed steps on how to set up an OS Maps API WMS base map via the Astun Data Services as well as the zip folder at the end of the page.
Info |
---|
Please notice that if you are using an earlier version of iShare than 5.8 you will need to add an & after your API key in the URI see step 4a |
Steps
From the zip folder
grab the MapFile calledView file name MapSources_v5.8.zip base_osmapsapi.map
and place it underE:\iShareData\LIVE\_MapServerConfig\
From the zip folder
MapSources v5_8
grab the OS Road MapSource calledbase_osmapsapi_road_wms.xml
and place it underD:\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:Right-click on the
BaseMaps
node and selectImport MapSource
Navigate to the directory in which you placed the OS Road MapSource, open it, and give it an appropriate name such as OS Road in Studio:
After the import, you will notice that everything is prefilled for you. All you have to do is add your API key and your organisation's name in the correct places:
Navigate to the
Details
node and examine theURI
field. TheURI
field is pointing to the WMS Astun Data Services endpointhttps://map.services.astuntechnology.com/your-organisation-goes-here/osmaps/service?key=your-API-key-goes-here
. In the URI, you will see two placeholders, one that saysyour-API-key-goes-here
and one that saysyour-organization-goes-here
. Replace those placeholders with your alpha-numeric OS Data Hub Project API Key and organisation name, and don't forget to save your changes. If you are unsure of your organisation name, please contact us via support.
Add the base map to a MyMaps MapSource, save and test that the base map is displaying correctly:
Follow the same procedure for the rest of the direct basemap MapSources:
base_osmapsapi_leisure_25k_wms.xml
base_osmapsapi_leisure_50k_wms.xml
base_osmapsapi_leisure_grayscale_wms.xml
base_osmapsapi_leisure_wms.xml
base_osmapsapi_light_grayscale_wms.xml
base_osmapsapi_light_wms.xml
base_osmapsapi_outdoor_grayscale_wms.xml
base_osmapsapi_outdoor_wms.xml
base_osmapsapi_road_grayscale_wms.xml
...
Please note the below:
Info |
---|
|
...