Configure iShare Maps/GIS to use custom OS Maps API WMTS & WMS base maps via ADS
From the zip folder grab the MapFile called
base_osmapsapi.mapand place it underE:\iShareData\LIVE\_MapServerConfig\if it doesn’t already exist.From the zip folder
MapSources V6grab the custom OS Leisure MapSource calledbase_osmapsapi_leisure_wmts_ads.xmland place it underD:\Astun\iShareGIS\LIVE\WebApps\WebService\config\mapsourcesAfter placing the files into the correct destinations, open Studio and import the MapSource under the
BaseMapsnode:Right-click on the
BaseMapsnode and selectImport MapSourceNavigate to the directory in which you placed the OS Leisure MapSource, open it, and give it an appropriate name such as OS Leisure:
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
Detailsnode and examine theURIand theWMS URIfields. TheURIfield is pointing to the WMTS Astun Data Services endpointhttps://map.services.astuntechnology.com/your-organisation-goes-here/osmaps/service?key=your-API-key-goes-hereand theWMS URIis pointing to the WMS Astun Data Services endpointhttps://map.services.astuntechnology.com/your-organisation-goes-here/osmaps/service?key=your-API-key-goes-hereto enable the printing functionality. In those URIs, you will see three placeholders, two that sayyour-API-key-goes-hereand 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 custom basemap MapSources:.
base_osmapsapi_leisure_25k.xmlbase_osmapsapi_leisure_50k.xmlbase_osmapsapi_leisure_grayscale_wmts_ads.xmlbase_osmapsapi_leisure_wmts_ads.xmlbase_osmapsapi_light_grayscale_wmts_ads.xmlbase_osmapsapi_outdoor_grayscale_wmts_ads.xmlbase_osmapsapi_road_grayscale_wmts_ads.xml
Please note the below:
In the
base_osmapsapi.mapwe have configured a file path for theMS_ERRORFILEparameter that is mostly common across installations. However, there is a possibility that you have a different file path configured for your MapServer logs. If you do please update theMS_ERRORFILEwith the correct pathLeave the Tile Matrix Set > Matrices section unchanged.
The High DPI option should be disabled for all the base maps, except the OS Leisure 50k & 25k. Check out why here Astun Data Services - Frequently Asked Questions (FAQs)
Keep the Boundary Settings under Start up as is.