Skip to content

Commit

Permalink
Add flat style types to draw and modify interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Aug 25, 2022
1 parent 5c83cb6 commit 87be1b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ol/interaction/Draw.js
Expand Up @@ -70,7 +70,7 @@ import {getStrideForLayout} from '../geom/SimpleGeometry.js';
* that takes an {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
* boolean to indicate whether the drawing can be finished. Not used when drawing
* POINT or MULTI_POINT geometries.
* @property {import("../style/Style.js").StyleLike} [style]
* @property {import("../style/Style.js").StyleLike|import("../style/flat.js").FlatStyleLike} [style]
* Style for sketch features.
* @property {GeometryFunction} [geometryFunction]
* Function that is called when a geometry's coordinates are updated.
Expand Down
2 changes: 1 addition & 1 deletion src/ol/interaction/Modify.js
Expand Up @@ -106,7 +106,7 @@ const ModifyEventType = {
* features. Default is {@link module:ol/events/condition.always}.
* @property {number} [pixelTolerance=10] Pixel tolerance for considering the
* pointer close enough to a segment or vertex for editing.
* @property {import("../style/Style.js").StyleLike} [style]
* @property {import("../style/Style.js").StyleLike|import("../style/flat.js").FlatStyleLike} [style]
* Style used for the modification point or vertex. For linestrings and polygons, this will
* be the affected vertex, for circles a point along the circle, and for points the actual
* point. If not configured, the default edit style is used (see {@link module:ol/style/Style~Style}).
Expand Down

0 comments on commit 87be1b3

Please sign in to comment.