diff --git a/src/ol/interaction/Extent.js b/src/ol/interaction/Extent.js index 8698dcbae2..2b95e1f5be 100644 --- a/src/ol/interaction/Extent.js +++ b/src/ol/interaction/Extent.js @@ -23,12 +23,12 @@ import {createEditingStyle} from '../style/Style.js'; * initial extent. * @property {module:ol/style/Style~Style|Array.|module:ol/style~StyleFunction} [boxStyle] * Style for the drawn extent box. Defaults to - * {@link module:ol/style/Style~createEditing()[module:ol/geom/GeometryType.POLYGON]} + * {@link module:ol/style/Style~createEditing()['Polygon']} * @property {number} [pixelTolerance=10] Pixel tolerance for considering the * pointer close enough to a segment or vertex for editing. * @property {module:ol/style/Style~Style|Array.|module:ol/style~StyleFunction} [pointerStyle] * Style for the cursor used to draw the extent. Defaults to - * {@link module:ol/style/Style~createEditing()[module:ol/geom/GeometryType.POINT]} + * {@link module:ol/style/Style~createEditing()['Point']} * @property {boolean} [wrapX=false] Wrap the drawn extent across multiple maps * in the X direction? Only affects visuals, not functionality. */ diff --git a/src/ol/style/index.jsdoc b/src/ol/style/index.jsdoc index 160365d9fc..39f6db8644 100644 --- a/src/ol/style/index.jsdoc +++ b/src/ol/style/index.jsdoc @@ -25,19 +25,20 @@ * * A separate editing style has the following defaults: * ```js + * import GeometryType from ol/geom/GeometryType * var white = [255, 255, 255, 1]; * var blue = [0, 153, 255, 1]; * var width = 3; - * styles[module:ol/geom/GeometryType.POLYGON] = [ + * styles[GeometryType.POLYGON] = [ * new ol.style.Style({ * fill: new ol.style.Fill({ * color: [255, 255, 255, 0.5] * }) * }) * ]; - * styles[module:ol/geom/GeometryType.MULTI_POLYGON] = - * styles[module:ol/geom/GeometryType.POLYGON]; - * styles[module:ol/geom/GeometryType.LINE_STRING] = [ + * styles[GeometryType.MULTI_POLYGON] = + * styles[GeometryType.POLYGON]; + * styles[GeometryType.LINE_STRING] = [ * new ol.style.Style({ * stroke: new ol.style.Stroke({ * color: white, @@ -51,9 +52,9 @@ * }) * }) * ]; - * styles[module:ol/geom/GeometryType.MULTI_LINE_STRING] = - * styles[module:ol/geom/GeometryType.LINE_STRING]; - * styles[module:ol/geom/GeometryType.POINT] = [ + * styles[GeometryType.MULTI_LINE_STRING] = + * styles[GeometryType.LINE_STRING]; + * styles[GeometryType.POINT] = [ * new ol.style.Style({ * image: new ol.style.Circle({ * radius: width * 2, @@ -68,11 +69,11 @@ * zIndex: Infinity * }) * ]; - * styles[module:ol/geom/GeometryType.MULTI_POINT] = - * styles[module:ol/geom/GeometryType.POINT]; - * styles[module:ol/geom/GeometryType.GEOMETRY_COLLECTION] = - * styles[module:ol/geom/GeometryType.POLYGON].concat( - * styles[module:ol/geom/GeometryType.POINT] + * styles[GeometryType.MULTI_POINT] = + * styles[GeometryType.POINT]; + * styles[GEOMETRY_COLLECTION] = + * styles[GeometryType.POLYGON].concat( + * styles[GeometryType.POINT] * ); *``` *