UNPKG

686 BHTMLView Raw
1---
2layout: example.html
3title: Limited Layer Extent
4shortdesc: Restricting layer rendering to a limited extent.
5docs: >
6 This example uses the <code>layer.setExtent()</code> method to
7 modify the extent of the overlay layer. Use the controls above
8 to limit rendering based on an extent (approximate country bounds).
9tags: "extent, tilejson"
10---
11<div id="map" class="map"></div>
12<button type="button" class="btn btn-default" id="India">India</button>
13<button type="button" class="btn btn-default" id="Argentina">Argentina</button>
14<button type="button" class="btn btn-default" id="Nigeria">Nigeria</button>
15<button type="button" class="btn btn-default" id="Sweden">Sweden</button>