Skip to content

Commit

Permalink
Remove suggestion to import the GeometryType enum
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Sep 27, 2021
1 parent 98527f5 commit 7e61229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/en/vector/draw.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Now, create a draw interaction configured to draw polygons and add them to our v

[import:'draw'](../../../src/en/examples/vector/draw.js)

The `type` property of the draw interaction controls what type of geometries are drawn. The value can be any of the GeoJSON geometry types. Note that we could have also imported the `GeometryType` enum (`import GeometryType from 'ol/geom/GeometryType';`) and used `GeometryType.POLYGON` instead of the `'Polygon'` string above.
The `type` property of the draw interaction controls what type of geometries are drawn. The value can be any of the GeoJSON geometry types.

With our draw interaction [in place]({{book.workshopUrl}}/), we can now add new features to our vector source.

Expand Down

0 comments on commit 7e61229

Please sign in to comment.