New example

This commit is contained in:
mike-000
2021-06-19 11:55:51 +01:00
parent ee5553debb
commit 6304b56501
2 changed files with 75 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
---
layout: example.html
title: Custom Canvas Tiles
shortdesc: Renders tiles with TMS coordinates for debugging.
docs: >
The black grid tiles are generated on the client with an HTML5 canvas.
The displayed TMS tile coordinates are produced using a custom template
for TMS, the vector tile source's 512 pixel tile grid and the
<code>zDirection</code> setting for vector tiles.
Notice how the country polygons can be split between tiles and vector
labels may appear in each tile.
tags: "layers, vector tiles, tms, canvas"
---
<div id="map" class="map"></div>