-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert L examples to use strapless template
- Loading branch information
Showing
14 changed files
with
99 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
--- | ||
layout: example.html | ||
title: Layer WebGL clipping example | ||
layout: strapless.html | ||
title: Layer Clipping with WebGL | ||
shortdesc: Layer WebGL clipping example. | ||
docs: > | ||
This example shows how to use the <code>precompose</code> and <code>postcompose</code> rendering hooks to clip layers using WebGL. | ||
tags: "clipping, webgl, openstreetmap" | ||
--- | ||
<div class="row-fluid"> | ||
<div class="span12"> | ||
<div id="map" class="map"></div> | ||
</div> | ||
</div> | ||
<div id="map" class="map"></div> | ||
<div id="no-webgl" class="alert alert-danger" style="display: none"> | ||
This example requires a browser that supports <a href="http://get.webgl.org/">WebGL</a>. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#map { | ||
background: transparent; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
--- | ||
layout: example.html | ||
title: Layer clipping example | ||
layout: strapless.html | ||
title: Layer Clipping | ||
shortdesc: Layer clipping example | ||
docs: > | ||
Layer clipping example | ||
tags: "clipping, openstreetmap" | ||
--- | ||
<div class="row-fluid"> | ||
<div class="span12"> | ||
<div id="map" class="map"></div> | ||
</div> | ||
</div> | ||
<div id="map" class="map"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,54 @@ | ||
--- | ||
layout: example.html | ||
title: Layer group example | ||
layout: strapless.html | ||
title: Layer Groups | ||
shortdesc: Example of a map with layer group. | ||
docs: > | ||
Example of a map with layer group. | ||
tags: "tilejson, input, bind, group, layergroup" | ||
resources: | ||
- https://code.jquery.com/jquery-1.11.2.min.js | ||
--- | ||
<div class="row-fluid"> | ||
<div class="span6"> | ||
<div id="map" class="map"></div> | ||
</div> | ||
<div id="layertree" class="span6"> | ||
<h5>Click on layer nodes below to change their properties.</h5> | ||
<ul> | ||
<li><span>OpenAerial layer</span> | ||
<fieldset id="layer0"> | ||
<label class="checkbox" for="visible0"> | ||
<input id="visible0" class="visible" type="checkbox"/>visibility | ||
</label> | ||
<label>opacity</label> | ||
<input class="opacity" type="range" min="0" max="1" step="0.01"/> | ||
</fieldset> | ||
</li> | ||
<li><span>Layer group</span> | ||
<fieldset id="layer1"> | ||
<label class="checkbox" for="visible1"> | ||
<input id="visible1" class="visible" type="checkbox"/>visibility | ||
</label> | ||
<label>opacity</label> | ||
<input class="opacity" type="range" min="0" max="1" step="0.01"/> | ||
</fieldset> | ||
<ul> | ||
<li><span>Food insecurity layer</span> | ||
<fieldset id="layer10"> | ||
<label class="checkbox" for="visible10"> | ||
<input id="visible10" class="visible" type="checkbox"/>visibility | ||
</label> | ||
<label>opacity</label> | ||
<input class="opacity" type="range" min="0" max="1" step="0.01"/> | ||
</fieldset> | ||
</li> | ||
<li><span>World borders layer</span> | ||
<fieldset id="layer11"> | ||
<label class="checkbox" for="visible11"> | ||
<input id="visible11" class="visible" type="checkbox"/>visibility | ||
</label> | ||
<label>opacity</label> | ||
<input class="opacity" type="range" min="0" max="1" step="0.01"/> | ||
</fieldset> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</div> | ||
<div id="map" class="map"></div> | ||
<div id="layertree"> | ||
<h5>Click on layer nodes below to change their properties.</h5> | ||
<ul> | ||
<li><span>OpenAerial layer</span> | ||
<fieldset id="layer0"> | ||
<label class="checkbox" for="visible0"> | ||
<input id="visible0" class="visible" type="checkbox"/>visibility | ||
</label> | ||
<label>opacity</label> | ||
<input class="opacity" type="range" min="0" max="1" step="0.01"/> | ||
</fieldset> | ||
</li> | ||
<li><span>Layer group</span> | ||
<fieldset id="layer1"> | ||
<label class="checkbox" for="visible1"> | ||
<input id="visible1" class="visible" type="checkbox"/>visibility | ||
</label> | ||
<label>opacity</label> | ||
<input class="opacity" type="range" min="0" max="1" step="0.01"/> | ||
</fieldset> | ||
<ul> | ||
<li><span>Food insecurity layer</span> | ||
<fieldset id="layer10"> | ||
<label class="checkbox" for="visible10"> | ||
<input id="visible10" class="visible" type="checkbox"/>visibility | ||
</label> | ||
<label>opacity</label> | ||
<input class="opacity" type="range" min="0" max="1" step="0.01"/> | ||
</fieldset> | ||
</li> | ||
<li><span>World borders layer</span> | ||
<fieldset id="layer11"> | ||
<label class="checkbox" for="visible11"> | ||
<input id="visible11" class="visible" type="checkbox"/>visibility | ||
</label> | ||
<label>opacity</label> | ||
<input class="opacity" type="range" min="0" max="1" step="0.01"/> | ||
</fieldset> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
--- | ||
layout: example.html | ||
title: Layer Swipe example | ||
layout: strapless.html | ||
title: Layer Swipe | ||
shortdesc: Example of a Layer swipe map. | ||
docs: > | ||
Example of a Layer swipe map. | ||
tags: "swipe, openstreetmap" | ||
cloak: | ||
Ak-dzM4wZjSqTlzveKz5u0d4IQ4bRzVI309GxmkgSVr1ewS6iPSrOvOKhA-CJlm3: Your Bing Maps Key from http://bingmapsportal.com/ here | ||
--- | ||
<div class="row-fluid"> | ||
<div class="span12"> | ||
<div id="map" class="map"></div> | ||
<input id="swipe" type="range" style="width: 100%"> | ||
</div> | ||
</div> | ||
<div id="map" class="map"></div> | ||
<input id="swipe" type="range" style="width: 100%"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
--- | ||
layout: example.html | ||
title: LineString arrows example | ||
layout: strapless.html | ||
title: LineString Arrows | ||
shortdesc: Example of drawing arrows for each line string segment. | ||
docs: > | ||
Example of drawing arrows for each line string segment. | ||
tags: "draw, vector, arrow" | ||
--- | ||
<div class="row-fluid"> | ||
<div class="span12"> | ||
<div id="map" class="map"></div> | ||
</div> | ||
</div> | ||
<div id="map" class="map"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
--- | ||
layout: example.html | ||
title: Localized OpenStreetMap example | ||
layout: strapless.html | ||
title: Localized OpenStreetMap | ||
shortdesc: Example of a localized OpenStreetMap map with a custom tile server and a custom attribution. | ||
docs: > | ||
<p>The base layer is <a href="http://www.opencyclemap.org/">OpenCycleMap</a> with an overlay from <a href="http://www.openseamap.org/">OpenSeaMap</a>. The OpenSeaMap tile server | ||
does not support <a href="http://enable-cors.org/">CORS</a> headers.</p> | ||
tags: "cors, localized-openstreetmap, openseamap, openstreetmap" | ||
--- | ||
<div class="row-fluid"> | ||
<div class="span12"> | ||
<div id="map" class="map"></div> | ||
</div> | ||
</div> | ||
<div id="map" class="map"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters