example - layer-extent uses country bboxes
This commit is contained in:
@@ -4,14 +4,12 @@ title: Limited Layer Extent
|
||||
shortdesc: Restricting layer rendering to a limited extent.
|
||||
docs: >
|
||||
This example uses the <code>layer.setExtent()</code> method to
|
||||
modify the extent of the overlay layer. Use the controls below
|
||||
to limit rendering based on an extent.
|
||||
modify the extent of the overlay layer. Use the controls above
|
||||
to limit rendering based on an extent (approximate country bounds).
|
||||
tags: "extent, tilejson"
|
||||
---
|
||||
<div id="map" class="map"></div>
|
||||
<button type="button" class="btn btn-default" id="northwest">northwest</button>
|
||||
<button type="button" class="btn btn-default" id="northeast">northeast</button>
|
||||
<button type="button" class="btn btn-default" id="southeast">southeast</button>
|
||||
<button type="button" class="btn btn-default" id="southwest">southwest</button>
|
||||
<button type="button" class="btn btn-default" id="world">world</button>
|
||||
<button type="button" class="btn btn-default" id="draw">draw</button>
|
||||
<button type="button" class="btn btn-default" id="India">India</button>
|
||||
<button type="button" class="btn btn-default" id="Argentina">Argentina</button>
|
||||
<button type="button" class="btn btn-default" id="Nigeria">Nigeria</button>
|
||||
<button type="button" class="btn btn-default" id="Sweden">Sweden</button>
|
||||
|
||||
Reference in New Issue
Block a user