Example sources in the examples dir

This commit is contained in:
Tim Schaub
2015-04-14 10:27:32 -06:00
parent 8fd2e9f79f
commit 89f5e711e6
309 changed files with 21 additions and 16 deletions
+15
View File
@@ -0,0 +1,15 @@
---
template: example.html
title: Min/max resolution example
shortdesc: Show/hide layers depending on current view resolution.
docs: >
<p>Zoom in twice: the MapBox layer should hide whereas the OSM layer should be shown.</p>
<p>If you continue to zoom in, you'll see the OSM layer also disappear.</p>
<p>The rendering of the layers are here controlled using minResolution and maxResolution options.</p>
tags: "minResolution, maxResolution, resolution"
---
<div class="row-fluid">
<div class="span12">
<div id="map" class="map"></div>
</div>
</div>