Skip to content

Commit

Permalink
Minor draw-features cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fredj committed Jan 22, 2014
1 parent 898ad63 commit ff4b858
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/draw-features.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<div class="span12">
<h4 id="title">Draw features example</h4>
<p id="shortdesc">Example of using the Draw interaction.</p>
<p id="shortdesc">Example of using the <code>ol.interaction.Draw</code> interaction.</p>
<form class="form-inline">
<label>Geometry type &nbsp;</label>
<select id="type">
Expand Down
3 changes: 1 addition & 2 deletions examples/draw-features.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ var draw; // global so we can remove it later
function addInteraction() {
draw = new ol.interaction.Draw({
source: source,
type: /** @type {ol.geom.GeometryType} */
(typeSelect.options[typeSelect.selectedIndex].value)
type: /** @type {ol.geom.GeometryType} */ (typeSelect.value)
});
map.addInteraction(draw);
}
Expand Down

0 comments on commit ff4b858

Please sign in to comment.