Rename _ol_interaction_Draw_ to Draw
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@ import _ol_Sphere_ from '../src/ol/Sphere.js';
|
||||
import _ol_View_ from '../src/ol/View.js';
|
||||
import LineString from '../src/ol/geom/LineString.js';
|
||||
import Polygon from '../src/ol/geom/Polygon.js';
|
||||
import _ol_interaction_Draw_ from '../src/ol/interaction/Draw.js';
|
||||
import Draw from '../src/ol/interaction/Draw.js';
|
||||
import _ol_layer_Tile_ from '../src/ol/layer/Tile.js';
|
||||
import _ol_layer_Vector_ from '../src/ol/layer/Vector.js';
|
||||
import _ol_source_OSM_ from '../src/ol/source/OSM.js';
|
||||
@@ -177,7 +177,7 @@ var formatArea = function(polygon) {
|
||||
|
||||
function addInteraction() {
|
||||
var type = (typeSelect.value == 'area' ? 'Polygon' : 'LineString');
|
||||
draw = new _ol_interaction_Draw_({
|
||||
draw = new Draw({
|
||||
source: source,
|
||||
type: type,
|
||||
style: new _ol_style_Style_({
|
||||
|
||||
Reference in New Issue
Block a user