Create a web application using the OS Vector Tile API
Last updated
Last updated
This guide explains how to create a web application using the OS Vector Tile API and the Ordnance Survey GitHub Demo repository.
Basic web development skills.
Access to an IDE.
Access to the OS Data Hub API Demos GitHub repository.
OS Vector Tiles API Project key. See Getting started with an API project for more information.
Open the OS Data Hub API Demos repository on GitHub.
Click the green Code button and then click Download ZIP.
Navigate to your downloads page, unzip the OSVectorTileAPI
folder from the newly downloaded file and place it in your IDE project repository. When you open your IDE, the new files should appear automatically in your project window.
The folders you have installed contain all the code required to call and interact with the code libraries.
To launch the web application, navigate to and open the index.html
file found in the OpenLayers
folder, and then run the application.
Methods on how to do this differ between IDEs.
Running the project launches a window in your browser that looks like this: