Jump to the following:

Ordnance Survey logo

Discover Ordnance Survey

Site Search

Using OS OnDemand WMTS FAQs

How can I add more URLs to my API key?

Contact us and we will register the new URLs against your API key.

I have input the correct API key provided but I am unable to obtain any mapping. Why is this?

Firstly, ensure that the API key has been included in lower case. If this does not resolve the issue, please contact us.

How can I obtain access to the zoom map stack?

You will need to be licensed for GB coverage of our OSVectorMap Local product. Once this has been arranged, the layers will be made available. Details of the product layers can be found in the table above.

Why can I not see the mapping for all the requested layers?

If you are using a combination of layers from both the original and from the zoom map stack, you will need to include them in your code, ordered by resolution. This will ensure that mapping will be shown for all layers that have an overlapping resolution. See exmaple below:

{products: ["OV0", "OV1", "OV2", "CS04", "250KR", "CS05", "250K", "VMDR", "VMD", "VMLR", "VML"]};

Can I gain access to the service through OpenLayers?

Although OS OnDemand WMTS-like can be accessed directly through OpenLayers, we cannot offer support for this access method.

Can I use the Web-Map Builder tool to create some code?

Yes, subject to some small code changes. Copy the code created in the WebMap Builder tool and paste it into Notepad or another text file programme.

src="http://ondemandapi.ordnancesurvey.co.uk/osmapapi/openspace.js?key=insert_your_api_key_here" type="text/javascript"

Locate the line towards the top where the URL and API key for OS OnDemand is inserted between the script tags (see example below):

type="text/javascript" src=http://openspace.ordnancesurvey.co.uk/osmapapi/openspace.js?key=insert_your_api_key_here

change to

type="text/javascript" src=http://ondemandapi.ordnancesurvey.co.uk/osmapapi/openspace.js?key=insert_your_api_key_here

the text 'insert_your_api_key_here'

the text 'insert_your_api_key_here' should be overtyped with the API key provided to you in your welcome letter.

A second change is required to the section in the code that declares map options. Locate the line:

//initiate the map

var options = {resolutions: [2500, 1000, 500, 200, 100, 50, 25, 10, 5, 4, 2.5, 2, 1]};

osMap = new OpenSpace.Map('map', options);

change to

var options = {products: ["OV0", "OV1", "OV2", "MSR", "MS", "250KR", "250K", "50KR", "50K", "25KR", "25K", "VMDR", "VMD", "VMLR", "VML", "SVR", "SV"]};

osMap = new OpenSpace.Map('map',options);

The product codes for the zoom map stack can also be added here.

For general enquiries, complaints, feedback or suggestions, email: customerservices@ordnancesurvey.co.uk or call us on 08456 05 05 05