Dynamically selected renderer in draw feature example

This commit is contained in:
Guillaume Beraudo
2014-11-07 11:50:05 +01:00
parent 6abe3047ec
commit c05ffff629
2 changed files with 2 additions and 1 deletions

View File

@@ -32,7 +32,7 @@
<div class="span12">
<h4 id="title">Draw features example</h4>
<p id="shortdesc">Example of using the ol.interaction.Draw interaction.</p>
<p id="shortdesc">Example of using the ol.interaction.Draw interaction. Webgl renderering is experimental and limited to points.</p>
<form class="form-inline">
<label>Geometry type &nbsp;</label>
<select id="type">

View File

@@ -38,6 +38,7 @@ var vector = new ol.layer.Vector({
var map = new ol.Map({
layers: [raster, vector],
renderer: exampleNS.getRendererFromQueryString(),
target: 'map',
view: new ol.View({
center: [-11000000, 4600000],