Minor draw-features cleanup

This commit is contained in:
Frederic Junod
2014-01-22 14:12:32 +01:00
parent 898ad63a8b
commit ff4b85811d
2 changed files with 2 additions and 3 deletions

View File

@@ -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);
}