13 lines
537 B
HTML
13 lines
537 B
HTML
---
|
|
layout: example.html
|
|
title: OSM Vector Tiles
|
|
shortdesc: Using OpenStreetMap vector tiles.
|
|
docs: >
|
|
A simple vector tiles map with Mapzen vector tiles. This example uses the TopoJSON format's `layerName` option to determine the layer ("water", "roads", "buildings") for styling. **Note**: [`ol/format/MVT`] is an even more efficient format for vector tiles.
|
|
tags: "vector, tiles, osm, mapzen"
|
|
cloak:
|
|
- key: vector-tiles-5eJz6JX
|
|
value: Your Mapzen API key from https://mapzen.com/developers
|
|
---
|
|
<div id="map" class="map"></div>
|