UNPKG

508 BHTMLView Raw
1---
2layout: example.html
3title: Canvas Tiles
4shortdesc: Renders tiles with coordinates for debugging.
5docs: >
6 The black grid tiles are generated on the client with an HTML5 canvas. The
7 displayed tile coordinates are OpenLayers tile coordinates. These increase
8 from bottom to top, but standard XYZ tiling scheme coordinates increase from
9 top to bottom. To calculate the `y` for a standard XYZ tile coordinate, use
10 `-y - 1`.
11tags: "layers, openstreetmap, canvas"
12---
13<div id="map" class="map"></div>