- Home
-
Public Sector
Public Sector
Quick links to popular content
- Business
-
Leisure
Leisure
OS getamap – print your route
Have your map custom made
Visit our shop
Read our magazine
-
Education & Research
Education & Research
Schools
Further & Higher Education
Research
General interest
-
About us
About us
Quick links
- Support
OS OnDemand WMTS-like code playground
Our code playground is an interactive way for you to explore how you can use our code with your own code. You can edit these examples and then download your bespoke code.
Have a play with the code now
1. Click on one of the example links below, it will show the end result of the example code.
2. Click on ‘Edit in Code Playground’ to see the HTML and JavaScript codes. You can also click on ‘Real-time preview’ to see the map change as you change the code.
3. Click ‘Render’ to go back to the full view of the map.
4. Click ‘Download’ to download the full code merged into one HTML file, ready for you to use.
You will need to make some small changes, as OS OnDemand WMTS-like uses product codes rather than resolutions. You will also need to change the API URL to the one provided to you in your welcome pack. Please see OS OnDemand Web Map Tile Service (WMTS-like) for more information.
Further information on the OS OnDemand WMTS-like service is available.
How to get the best out of OS OnDemand guide
