UNPKG

483 BHTMLView Raw
1---
2layout: example.html
3title: Layer Clipping with WebGL
4shortdesc: Layer WebGL clipping example.
5docs: >
6 This example shows how to use the <code>precompose</code> and <code>postcompose</code> rendering hooks to clip layers using WebGL.
7tags: "clipping, webgl, openstreetmap"
8---
9<div id="map" class="map"></div>
10<div id="no-webgl" class="alert alert-danger" style="display: none">
11 This example requires a browser that supports <a href="http://get.webgl.org/">WebGL</a>.
12</div>