1 | ---
|
2 | layout: example.html
|
3 | title: Limited Layer Extent
|
4 | shortdesc: Restricting layer rendering to a limited extent.
|
5 | docs: >
|
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).
|
9 | tags: "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>
|