Allow short name to be extracted

This commit is contained in:
Tim Schaub
2022-08-15 16:58:42 -06:00
parent 1c65ac4c85
commit e566868a5b
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ import {assert} from '../asserts.js';
/** /**
* @classdesc * @classdesc
* Layer for vector tile data that is rendered client-side. * Layer for vector tile data that is rendered client-side.
* Note that any property set in the options is set as a {@link module:ol/Object~BaseObject BaseObject} * Note that any property set in the options is set as a {@link module:ol/Object~BaseObject}
* property on the layer object; for example, setting `title: 'My Title'` in the * property on the layer object; for example, setting `title: 'My Title'` in the
* options means that `title` is observable, and has get/set accessors. * options means that `title` is observable, and has get/set accessors.
* *
+2 -2
View File
@@ -17,9 +17,9 @@ import {METERS_PER_UNIT} from './Units.js';
* @property {import("../extent.js").Extent} [worldExtent] The world extent for the SRS. * @property {import("../extent.js").Extent} [worldExtent] The world extent for the SRS.
* @property {function(number, import("../coordinate.js").Coordinate):number} [getPointResolution] * @property {function(number, import("../coordinate.js").Coordinate):number} [getPointResolution]
* Function to determine resolution at a point. The function is called with a * Function to determine resolution at a point. The function is called with a
* `number` view resolution and a {@link module:ol/coordinate~Coordinate Coordinate} as arguments, and returns * `number` view resolution and a {@link module:ol/coordinate~Coordinate} as arguments, and returns
* the `number` resolution in projection units at the passed coordinate. If this is `undefined`, * the `number` resolution in projection units at the passed coordinate. If this is `undefined`,
* the default {@link module:ol/proj.getPointResolution getPointResolution()} function will be used. * the default {@link module:ol/proj.getPointResolution} function will be used.
*/ */
/** /**
+3 -3
View File
@@ -31,11 +31,11 @@ import {transformGeom2D} from '../../geom/SimpleGeometry.js';
/** /**
* @classdesc * @classdesc
* A concrete subclass of {@link module:ol/render/VectorContext~VectorContext VectorContext} that implements * A concrete subclass of {@link module:ol/render/VectorContext~VectorContext} that implements
* direct rendering of features and geometries to an HTML5 Canvas context. * direct rendering of features and geometries to an HTML5 Canvas context.
* Instances of this class are created internally by the library and * Instances of this class are created internally by the library and
* provided to application code as vectorContext member of the * provided to application code as vectorContext member of the
* {@link module:ol/render/Event~RenderEvent RenderEvent} object associated with postcompose, precompose and * {@link module:ol/render/Event~RenderEvent} object associated with postcompose, precompose and
* render events emitted by layers and maps. * render events emitted by layers and maps.
*/ */
class CanvasImmediateRenderer extends VectorContext { class CanvasImmediateRenderer extends VectorContext {
@@ -600,7 +600,7 @@ class CanvasImmediateRenderer extends VectorContext {
* Render a feature into the canvas. Note that any `zIndex` on the provided * Render a feature into the canvas. Note that any `zIndex` on the provided
* style will be ignored - features are rendered immediately in the order that * style will be ignored - features are rendered immediately in the order that
* this method is called. If you need `zIndex` support, you should be using an * this method is called. If you need `zIndex` support, you should be using an
* {@link module:ol/layer/Vector~VectorLayer VectorLayer} instead. * {@link module:ol/layer/Vector~VectorLayer} instead.
* *
* @param {import("../../Feature.js").default} feature Feature. * @param {import("../../Feature.js").default} feature Feature.
* @param {import("../../style/Style.js").default} style Style. * @param {import("../../style/Style.js").default} style Style.
+1 -1
View File
@@ -526,7 +526,7 @@ class VectorSource extends Source {
/** /**
* Remove all features from the source. * Remove all features from the source.
* @param {boolean} [fast] Skip dispatching of {@link module:ol/source/Vector.VectorSourceEvent#event:removefeature removefeature} events. * @param {boolean} [fast] Skip dispatching of {@link module:ol/source/Vector.VectorSourceEvent#event:removefeature} events.
* @api * @api
*/ */
clear(fast) { clear(fast) {
+1 -1
View File
@@ -268,7 +268,7 @@ function releaseCanvas(key) {
* *
* The GPU only receives the data as arrays of numbers. These numbers must be handled differently depending on what it describes (position, texture coordinate...). * The GPU only receives the data as arrays of numbers. These numbers must be handled differently depending on what it describes (position, texture coordinate...).
* Attributes are used to specify these uses. Specify the attribute names with * Attributes are used to specify these uses. Specify the attribute names with
* {@link module:ol/webgl/Helper~WebGLHelper#enableAttributes enableAttributes()} (see code snippet below). * {@link module:ol/webgl/Helper~WebGLHelper#enableAttributes} (see code snippet below).
* *
* Please note that you will have to specify the type and offset of the attributes in the data array. You can refer to the documentation of [WebGLRenderingContext.vertexAttribPointer](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) for more explanation. * Please note that you will have to specify the type and offset of the attributes in the data array. You can refer to the documentation of [WebGLRenderingContext.vertexAttribPointer](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) for more explanation.
* ```js * ```js