Tag

tiles

4
Aug
2020
4

Creating your own vector tiles

As part of our developer series, we recently discussed the benefits of vector tiles in one of our previous blog posts.

OS Open Zoomstack and the OS Vector Tile API already offer some amazing mapping which can be used as the basis for overlaying other information. There are various ways to add data overlays to your base map including data received from Web Feature Services (WFS) such as the OS Features API or simply GeoJSON files which are stored on your web server.

Although both these options are perfect for smaller volumes of data (in terms of number of features and/or geometric complexity), sometimes it makes more sense to take advantage tiled vector data which can enable data of any size to be quickly rendered in your browser.

The OS Vector Tile API already offers a selection of data overlays but, with the right tooling and a bit of data processing, it is relatively straight-forward to generate your own.

In this blog, we are going to look at the steps involved in creating your own vector tile overlay using the parliamentary constituency polygons from the Boundary-Line dataset. Although we are using the parliamentary constituencies in this example, it is possible to swap in any of the administrative and electoral boundaries (or alternatively the entire dataset as demonstrated here). Read More