ol-ext/index.html
2016-06-11 16:58:57 +02:00

363 lines
11 KiB
HTML

<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Ol3-ext</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Cool extensions to use with OL3." />
<meta name="keywords" content="ol3,extension,animation,layer,selection,control,openlayers,popup" />
<style>
body
{ font-family: 'Lucida Grande',Verdana,Geneva,Lucida,Arial,Helvetica,sans-serif;
font-size: 16px;
margin: 0.5em;
}
a
{ color: #337ab7;
text-decoration: none;
}
.navbar
{ top:0; left: 0;
right: 0;
width:100%;
position: fixed;
z-index: 0;
background-color: #1f6b75;
color: white;
}
.navbar img
{ height:1.5em;
vertical-align: middle;
}
.navbar h1
{ display: inline-block;
font-size:1.5em;
margin: 0.5em;
}
h2
{ clear:both;
margin:1em 0 0;
}
.container
{ width:1170px;
max-width: 100%;
margin:auto;
}
.small, small
{ font-size: 0.85em;
}
#examples
{ margin-top:4em;
}
#examples > div
{ box-sizing: border-box;
display: inline-block;
float: left;
padding: 0.5em;
width: 33.3333%;
}
@media (max-width: 1500px)
{ #examples > div
{ width: 50%;
}
}
@media (max-width: 900px)
{ #examples > div
{ width: 100%;
}
}
.example,
.desc
{ background-color: #f5f5f5;
margin: 0;
overflow: auto;
padding: 10px;
}
#examples > div.desc
{ margin:-0.5em 0 1em;
padding:1em;
width:100%;
box-sizing: content-box;
}
.example:hover
{ background-color: #ddd;
}
.example p.description
{ font-size: 0.9em;
margin: 5px 0;
}
.example p.tag
{ font-size: 0.8em;
color:#693;
margin: 0;
}
.example img
{ display:none;
margin:auto;
float:right;
width:180px;
}
</style>
<!-- jQuery -->
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{ $(".example").wrap($("<div>"));
$(".example a.mainlink").each(function()
{ var href = /[^\/]*$/.exec( $(this).attr('href') ).pop();
$("<small>").text("("+href+")")
.appendTo($(this));
$("<img>").attr('src',"img/"+href.replace('html','jpg'))
.appendTo($(this))
.load(function(e)
{ console.log(e)
$(this).show();
});
})
$('#keywords').on('keyup', function()
{ var s = new RegExp ( $(this).val() , "i");
var k = 0;
$(".example").each(function()
{ var text = $(this).text();
var t = s.test(text);
if (!t)
{ $(this).parent().hide();
}
else
{ k++;
$(this).parent().show();
}
});
$("#count").text("("+k+")");
});
});
</script>
</head>
<body>
<header role="navigation" class="navbar navbar-fixed-top">
<div class="container">
<h1><img src="http://openlayers.org/en/master/examples/resources/logo-70x70.png">&nbsp;OL3-ext: Extensions for OpenLayers 3</h1>
<input type="text" placeholder="Search" class="search-query" id="keywords" name="q">
<span id="count"></span>
</div>
</header>
<div id="examples">
<a href="https://github.com/Viglino/ol3-ext"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
<div class="desc">
Cool extensions for OpenLayers 3 (OL3).
<br />
<br />
If you like this, you may like <a href="http://viglino.github.io/OL3-AnimatedCluster/">OL3-AnimatedCluster</a>
</div>
<h2>Styles</h2>
<div class="example">
<a class="mainlink" href="examples/map.style.font.html">
<strong>Font style</strong><br>
</a>
<p class="description">Draw points using an iconic font (font Awesome) gives you scalable vector icons that can instantly be customized (form, size, color, drop shadow) using attributes..</p>
<p class="tag">style, vector, font, fontawesome, icon, maki</p>
</div>
<div class="example">
<a class="mainlink" href="examples/map.style.photo.html">
<strong>Photo style</strong><br>
</a>
<p class="description">The ol.style.Photo is an image style to show photos or images on a map.
The photos are drawn in a box and can be anchored.
</p>
<p class="tag">style, vector, photo</p>
</div>
<div class="example">
<a class="mainlink" href="examples/map.style.chart.html">
<strong>Statistic charts style</strong><br>
</a>
<p class="description">The ol.style.Chart is an image style to draw statistical graphics (bar or pie charts) on a map.
</p>
<p class="tag">style, vector, statistic, chart, pie, animation</p>
</div>
<div class="example">
<a class="mainlink" href="examples/map.style.pattern.html">
<strong>Fill pattern style</strong><br>
</a>
<p class="description">The ol.style.FillPattern is a fill style with a set of cartographic patterns to use in your maps.
</p>
<p class="tag">style, vector, fill, pattern, hatch</p>
</div>
<h2>Animation</h2>
<div class="example">
<a class="mainlink" href="examples/map.pulse.html">
<strong>Pulse!</strong><br>
</a>
<p class="description">A pulse function to pulse points on a map.</p>
<p class="tag">map, animation, pulse</p>
</div>
<h2>Canvas</h2>
<div class="example">
<a class="mainlink" href="examples/map.canvas.control.html">
<strong>Canvas control</strong><br>
</a>
<p class="description">Example of canvas controls, ie. controls that are drawn on the canvas to use with export (jepg/png) functions.</p>
<p class="tag">control, canvas, scale line, attribution, title, export</p>
</div>
<div class="example">
<a class="mainlink" href="examples/map.pirate.html">
<strong>Pirate map.</strong><br>
</a>
<p class="description">The <i>ol.control.PirateMap </i> adds an old map effect on a canvas renderer.
It colors the map, adds a parchment texture and compass onto the map.</p>
<p class="tag">control, canvas, pirate, compass, effect</p>
</div>
<div class="example">
<a class="mainlink" href="examples/map.target.control.html">
<strong>Target control.</strong><br>
</a>
<p class="description">The <i>ol.control.Target </i> draw a target to materialize the center of the map.</p>
<p class="tag">control, canvas, target</p>
</div>
<h2>Interactions</h2>
<div class="example">
<a class="mainlink" href="examples/map.interaction.transform.html">
<strong>Transform interaction</strong><br>
</a>
<p class="description">The <i>ol.interaction.Transform</i> is an interaction to transform features (scale, translate, rotate).</p>
<p class="tag">interaction, transform, scale, translate, rotate, vector</p>
</div>
<div class="example">
<a class="mainlink" href="examples/map.interaction.drawregular.html">
<strong>Draw regular interaction</strong><br>
</a>
<p class="description"><i>ol.interaction.DrawRegular</i> is an interaction to draw regular polygon (circle/ellipse, triangle, square/rectangles, etc).</p>
<p class="tag">interaction, regular, interaction, draw, circle, triangle</p>
</div>
<h2>Controls</h2>
<div class="example">
<a class="mainlink" href="examples/map.switcher.html">
<strong>Layer switcher control example</strong><br>
</a>
<p class="description">Example of a layer switcher control with visibility, opacity and ordering.</p>
<p class="tag">layerswitcher, control, jQuery</p>
</div>
<div class="example">
<a class="mainlink" href="examples/map.switcher.image.html">
<strong>LayerSwitcher image</strong><br>
</a>
<p class="description">A simple layer switcher with image buttons.</p>
<p class="tag">layerswitcher, control, preview, jQuery</p>
</div>
<div class="example">
<a class="mainlink" href="examples/map.switcher.popup.html">
<strong>LayerSwitcher popup</strong><br>
</a>
<p class="description">A simple layer switcher as a menu.</p>
<p class="tag">layerswitcher, control, jQuery</p>
</div>
<div class="example">
<a class="mainlink" href="examples/map.overview.html">
<strong>Overview map</strong><br>
</a>
<p class="description">An overview map with zoom limit and custom styles.</p>
<p class="tag">overview, control</p>
</div>
<h2>Popup</h2>
<div class="example">
<a class="mainlink" href="examples/map.popup.html">
<strong>Popup!</strong><br>
</a>
<p class="description">Show popup on a map with style.</p>
<p class="tag">popup, overlay, jQuery</p>
</div>
<div class="example">
<a class="mainlink" href="examples/map.popup.anim.html">
<strong>Animated popup!</strong><br>
</a>
<p class="description">This example uses a CSS to add a bounce effect to the popup display.</p>
<p class="tag">popup, overlay, animation, jQuery</p>
</div>
<h2>Layer / source</h2>
<div class="example">
<a class="mainlink" href="examples/map.geoimage.html">
<strong>Georeference images on a map</strong><br>
</a>
<p class="description"><i>ol.source.GeoImage</i> georeference images on a map.</p>
<p class="tag">layer, georeference, georeferencing, image, photo</p>
</div>
<div class="example">
<a class="mainlink" href="examples/map.preview.html">
<strong>Preview of a layer</strong><br>
</a>
<p class="description">Add a <i>getPreview</i> function to ol.layer that retrieve a preview of the layer.</p>
<p class="tag">layer, preview</p>
</div>
<div class="example">
<a class="mainlink" href="examples/map.dbpedia.html">
<strong>BDpedia layer</strong><br>
</a>
<p class="description">A BDpedia tile vector layer that use RDF of the <a href="http://fr.dbpedia.org/">french DBpedia project</a>.</p>
<p class="tag">layer, vector, wikipedia, dbpedia</p>
</div>
<h2>Full map</h2>
<div class="example">
<a class="mainlink" href="examples/map.layer.3D.html">
<strong>Layer 2.5/3D</strong><br>
</a>
<p class="description">This example is an attempt to represent 2.5/3D informations on an OL3 map.</p>
<p class="tag">layer, vector, 3D, buildings, animation</p>
</div>
<div class="example">
<a class="mainlink" href="examples/map.dbpedia.photo.html">
<strong>BDpedia photo map</strong><br>
</a>
<p class="description">An example using a BDpedia layer with clusters to show photos on a map.</p>
<p class="tag">layer, vector, cluster, photo, style, dbpedia, animation</p>
</div>
</div>
</body>
</html>