Skip to content

Commit a28468d

Browse files
committed
Website updates
1 parent 5679edc commit a28468d

File tree

6 files changed

+82
-71
lines changed

6 files changed

+82
-71
lines changed

dist/en/main/apidoc/module-ol_expr_expression.html

+43-32
Original file line numberDiff line numberDiff line change
@@ -364,39 +364,50 @@ <h4 class="name">
364364
<p>Base type used for literal style parameters; can be a number literal or the output of an operator,
365365
which in turns takes <a href="module-ol_expr_expression.html#~ExpressionValue"><code>ExpressionValue</code></a> arguments.</p>
366366
<p>See below for details on the available operators (with notes for those that are WebGL or Canvas only).</p>
367-
<p>Reading operators:
368-
<code>['band', bandIndex, xOffset, yOffset]</code> For tile layers only. Fetches pixel values from band
369-
<code>bandIndex</code> of the source's data. The first <code>bandIndex</code> of the source data is <code>1</code>. Fetched values
370-
are in the 0..1 range. <a href="module-ol_source_TileImage-TileImage.html"><code>TileImage</code></a> sources have 4 bands: red,
371-
green, blue and alpha. <a href="module-ol_source_DataTile-DataTileSource.html"><code>DataTileSource</code></a> sources can have any number
372-
of bands, depending on the underlying data source and
373-
<a href="module-ol_source_GeoTIFF.html#~Options"><code>configuration</code></a>. <code>xOffset</code> and <code>yOffset</code> are optional
374-
and allow specifying pixel offsets for x and y. This is used for sampling data from neighboring pixels (WebGL only).
375-
<code>['get', attributeName]</code> fetches a feature property value, similar to <code>feature.get('attributeName')</code>.
376-
<code>['get', attributeName, keyOrArrayIndex, ...]</code> (Canvas only) Access nested properties and array items of a
377-
feature property. The result is <code>undefined</code> when there is nothing at the specified key or index.
378-
<code>['geometry-type']</code> returns a feature's geometry type as string, either: 'LineString', 'Point' or 'Polygon'
379-
<code>Multi*</code> values are returned as their singular equivalent
380-
<code>Circle</code> geometries are returned as 'Polygon'
381-
<code>GeometryCollection</code> geometries are returned as the type of the first geometry found in the collection (WebGL only).
382-
<code>['resolution']</code> returns the current resolution
383-
<code>['time']</code> The time in seconds since the creation of the layer (WebGL only).
384-
<code>['var', 'varName']</code> fetches a value from the style variables; will throw an error if that variable is undefined
385-
<code>['zoom']</code> The current zoom level (WebGL only).
386-
<code>['line-metric']</code> returns the M component of the current point on a line (WebGL only); in case where the geometry layout of the line
387-
does not contain an M component (e.g. XY or XYZ), 0 is returned; 0 is also returned for geometries other than lines.
388-
Please note that the M component will be linearly interpolated between the two points composing a segment.</p>
389-
<p>Math operators:
390-
<code>['*', value1, value2, ...]</code> multiplies the values (either numbers or colors)
391-
<code>['/', value1, value2]</code> divides <code>value1</code> by <code>value2</code>
392-
<code>['+', value1, value2, ...]</code> adds the values
393-
<code>['-', value1, value2]</code> subtracts <code>value2</code> from <code>value1</code>
394-
<code>['clamp', value, low, high]</code> clamps <code>value</code> between <code>low</code> and <code>high</code>
395-
<code>['%', value1, value2]</code> returns the result of <code>value1 % value2</code> (modulo)
396-
<code>['^', value1, value2]</code> returns the value of <code>value1</code> raised to the <code>value2</code> power
397-
<code>['abs', value1]</code> returns the absolute value of <code>value1</code>
398-
<code>['floor', value1]</code> returns the nearest integer less than or equal to <code>value1</code></p>
367+
<p>Reading operators:</p>
399368
<ul>
369+
<li><code>['band', bandIndex, xOffset, yOffset]</code> For tile layers only. Fetches pixel values from band
370+
<code>bandIndex</code> of the source's data. The first <code>bandIndex</code> of the source data is <code>1</code>. Fetched values
371+
are in the 0..1 range. <a href="module-ol_source_TileImage-TileImage.html"><code>TileImage</code></a> sources have 4 bands: red,
372+
green, blue and alpha. <a href="module-ol_source_DataTile-DataTileSource.html"><code>DataTileSource</code></a> sources can have any number
373+
of bands, depending on the underlying data source and
374+
<a href="module-ol_source_GeoTIFF.html#~Options"><code>configuration</code></a>. <code>xOffset</code> and <code>yOffset</code> are optional
375+
and allow specifying pixel offsets for x and y. This is used for sampling data from neighboring pixels (WebGL only).</li>
376+
<li><code>['get', attributeName]</code> fetches a feature property value, similar to <code>feature.get('attributeName')</code>.</li>
377+
<li><code>['get', attributeName, keyOrArrayIndex, ...]</code> (Canvas only) Access nested properties and array items of a
378+
feature property. The result is <code>undefined</code> when there is nothing at the specified key or index.</li>
379+
<li><code>['geometry-type']</code> returns a feature's geometry type as string, either: 'LineString', 'Point' or 'Polygon'
380+
<code>Multi*</code> values are returned as their singular equivalent
381+
<code>Circle</code> geometries are returned as 'Polygon'
382+
<code>GeometryCollection</code> geometries are returned as the type of the first geometry found in the collection (WebGL only).</li>
383+
<li><code>['resolution']</code> returns the current resolution</li>
384+
<li><code>['time']</code> The time in seconds since the creation of the layer (WebGL only).</li>
385+
<li><code>['var', 'varName']</code> fetches a value from the style variables; will throw an error if that variable is undefined</li>
386+
<li><code>['zoom']</code> The current zoom level (WebGL only).</li>
387+
<li><code>['line-metric']</code> returns the M component of the current point on a line (WebGL only); in case where the geometry layout of the line
388+
does not contain an M component (e.g. XY or XYZ), 0 is returned; 0 is also returned for geometries other than lines.
389+
Please note that the M component will be linearly interpolated between the two points composing a segment.</li>
390+
</ul>
391+
<p>Math operators:</p>
392+
<ul>
393+
<li><p><code>['*', value1, value2, ...]</code> multiplies the values (either numbers or colors)</p>
394+
</li>
395+
<li><p><code>['/', value1, value2]</code> divides <code>value1</code> by <code>value2</code></p>
396+
</li>
397+
<li><p><code>['+', value1, value2, ...]</code> adds the values</p>
398+
</li>
399+
<li><p><code>['-', value1, value2]</code> subtracts <code>value2</code> from <code>value1</code></p>
400+
</li>
401+
<li><p><code>['clamp', value, low, high]</code> clamps <code>value</code> between <code>low</code> and <code>high</code></p>
402+
</li>
403+
<li><p><code>['%', value1, value2]</code> returns the result of <code>value1 % value2</code> (modulo)</p>
404+
</li>
405+
<li><p><code>['^', value1, value2]</code> returns the value of <code>value1</code> raised to the <code>value2</code> power</p>
406+
</li>
407+
<li><p><code>['abs', value1]</code> returns the absolute value of <code>value1</code></p>
408+
</li>
409+
<li><p><code>['floor', value1]</code> returns the nearest integer less than or equal to <code>value1</code></p>
410+
</li>
400411
<li><p><code>['round', value1]</code> returns the nearest integer to <code>value1</code></p>
401412
</li>
402413
<li><p><code>['ceil', value1]</code> returns the nearest integer greater than or equal to <code>value1</code></p>

dist/en/main/examples/common.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/offscreen-canvas.worker.worker.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/expr/expression.d.ts

+18-18
Original file line numberDiff line numberDiff line change
@@ -126,38 +126,38 @@ export type ArgValidator = (arg0: Array<EncodedExpression>, arg1: number, arg2:
126126
* See below for details on the available operators (with notes for those that are WebGL or Canvas only).
127127
*
128128
* Reading operators:
129-
* `['band', bandIndex, xOffset, yOffset]` For tile layers only. Fetches pixel values from band
129+
* * `['band', bandIndex, xOffset, yOffset]` For tile layers only. Fetches pixel values from band
130130
* `bandIndex` of the source's data. The first `bandIndex` of the source data is `1`. Fetched values
131131
* are in the 0..1 range. {@link import ("../source/TileImage.js").default} sources have 4 bands: red,
132132
* green, blue and alpha. {@link import ("../source/DataTile.js").default} sources can have any number
133133
* of bands, depending on the underlying data source and
134134
* {@link import ("../source/GeoTIFF.js").Options configuration}. `xOffset` and `yOffset` are optional
135135
* and allow specifying pixel offsets for x and y. This is used for sampling data from neighboring pixels (WebGL only).
136-
* `['get', attributeName]` fetches a feature property value, similar to `feature.get('attributeName')`.
137-
* `['get', attributeName, keyOrArrayIndex, ...]` (Canvas only) Access nested properties and array items of a
136+
* * `['get', attributeName]` fetches a feature property value, similar to `feature.get('attributeName')`.
137+
* * `['get', attributeName, keyOrArrayIndex, ...]` (Canvas only) Access nested properties and array items of a
138138
* feature property. The result is `undefined` when there is nothing at the specified key or index.
139-
* `['geometry-type']` returns a feature's geometry type as string, either: 'LineString', 'Point' or 'Polygon'
139+
* * `['geometry-type']` returns a feature's geometry type as string, either: 'LineString', 'Point' or 'Polygon'
140140
* `Multi*` values are returned as their singular equivalent
141141
* `Circle` geometries are returned as 'Polygon'
142142
* `GeometryCollection` geometries are returned as the type of the first geometry found in the collection (WebGL only).
143-
* `['resolution']` returns the current resolution
144-
* `['time']` The time in seconds since the creation of the layer (WebGL only).
145-
* `['var', 'varName']` fetches a value from the style variables; will throw an error if that variable is undefined
146-
* `['zoom']` The current zoom level (WebGL only).
147-
* `['line-metric']` returns the M component of the current point on a line (WebGL only); in case where the geometry layout of the line
143+
* * `['resolution']` returns the current resolution
144+
* * `['time']` The time in seconds since the creation of the layer (WebGL only).
145+
* * `['var', 'varName']` fetches a value from the style variables; will throw an error if that variable is undefined
146+
* * `['zoom']` The current zoom level (WebGL only).
147+
* * `['line-metric']` returns the M component of the current point on a line (WebGL only); in case where the geometry layout of the line
148148
* does not contain an M component (e.g. XY or XYZ), 0 is returned; 0 is also returned for geometries other than lines.
149149
* Please note that the M component will be linearly interpolated between the two points composing a segment.
150150
*
151151
* Math operators:
152-
* `['*', value1, value2, ...]` multiplies the values (either numbers or colors)
153-
* `['/', value1, value2]` divides `value1` by `value2`
154-
* `['+', value1, value2, ...]` adds the values
155-
* `['-', value1, value2]` subtracts `value2` from `value1`
156-
* `['clamp', value, low, high]` clamps `value` between `low` and `high`
157-
* `['%', value1, value2]` returns the result of `value1 % value2` (modulo)
158-
* `['^', value1, value2]` returns the value of `value1` raised to the `value2` power
159-
* `['abs', value1]` returns the absolute value of `value1`
160-
* `['floor', value1]` returns the nearest integer less than or equal to `value1`
152+
* * `['*', value1, value2, ...]` multiplies the values (either numbers or colors)
153+
* * `['/', value1, value2]` divides `value1` by `value2`
154+
* * `['+', value1, value2, ...]` adds the values
155+
* * `['-', value1, value2]` subtracts `value2` from `value1`
156+
* * `['clamp', value, low, high]` clamps `value` between `low` and `high`
157+
* * `['%', value1, value2]` returns the result of `value1 % value2` (modulo)
158+
* * `['^', value1, value2]` returns the value of `value1` raised to the `value2` power
159+
* * `['abs', value1]` returns the absolute value of `value1`
160+
* * `['floor', value1]` returns the nearest integer less than or equal to `value1`
161161
* * `['round', value1]` returns the nearest integer to `value1`
162162
* * `['ceil', value1]` returns the nearest integer greater than or equal to `value1`
163163
* * `['sin', value1]` returns the sine of `value1`

dist/en/main/ol/expr/expression.js

+18-18
Original file line numberDiff line numberDiff line change
@@ -19,38 +19,38 @@ import {toSize} from '../size.js';
1919
* See below for details on the available operators (with notes for those that are WebGL or Canvas only).
2020
*
2121
* Reading operators:
22-
* `['band', bandIndex, xOffset, yOffset]` For tile layers only. Fetches pixel values from band
22+
* * `['band', bandIndex, xOffset, yOffset]` For tile layers only. Fetches pixel values from band
2323
* `bandIndex` of the source's data. The first `bandIndex` of the source data is `1`. Fetched values
2424
* are in the 0..1 range. {@link import("../source/TileImage.js").default} sources have 4 bands: red,
2525
* green, blue and alpha. {@link import("../source/DataTile.js").default} sources can have any number
2626
* of bands, depending on the underlying data source and
2727
* {@link import("../source/GeoTIFF.js").Options configuration}. `xOffset` and `yOffset` are optional
2828
* and allow specifying pixel offsets for x and y. This is used for sampling data from neighboring pixels (WebGL only).
29-
* `['get', attributeName]` fetches a feature property value, similar to `feature.get('attributeName')`.
30-
* `['get', attributeName, keyOrArrayIndex, ...]` (Canvas only) Access nested properties and array items of a
29+
* * `['get', attributeName]` fetches a feature property value, similar to `feature.get('attributeName')`.
30+
* * `['get', attributeName, keyOrArrayIndex, ...]` (Canvas only) Access nested properties and array items of a
3131
* feature property. The result is `undefined` when there is nothing at the specified key or index.
32-
* `['geometry-type']` returns a feature's geometry type as string, either: 'LineString', 'Point' or 'Polygon'
32+
* * `['geometry-type']` returns a feature's geometry type as string, either: 'LineString', 'Point' or 'Polygon'
3333
* `Multi*` values are returned as their singular equivalent
3434
* `Circle` geometries are returned as 'Polygon'
3535
* `GeometryCollection` geometries are returned as the type of the first geometry found in the collection (WebGL only).
36-
* `['resolution']` returns the current resolution
37-
* `['time']` The time in seconds since the creation of the layer (WebGL only).
38-
* `['var', 'varName']` fetches a value from the style variables; will throw an error if that variable is undefined
39-
* `['zoom']` The current zoom level (WebGL only).
40-
* `['line-metric']` returns the M component of the current point on a line (WebGL only); in case where the geometry layout of the line
36+
* * `['resolution']` returns the current resolution
37+
* * `['time']` The time in seconds since the creation of the layer (WebGL only).
38+
* * `['var', 'varName']` fetches a value from the style variables; will throw an error if that variable is undefined
39+
* * `['zoom']` The current zoom level (WebGL only).
40+
* * `['line-metric']` returns the M component of the current point on a line (WebGL only); in case where the geometry layout of the line
4141
* does not contain an M component (e.g. XY or XYZ), 0 is returned; 0 is also returned for geometries other than lines.
4242
* Please note that the M component will be linearly interpolated between the two points composing a segment.
4343
*
4444
* Math operators:
45-
* `['*', value1, value2, ...]` multiplies the values (either numbers or colors)
46-
* `['/', value1, value2]` divides `value1` by `value2`
47-
* `['+', value1, value2, ...]` adds the values
48-
* `['-', value1, value2]` subtracts `value2` from `value1`
49-
* `['clamp', value, low, high]` clamps `value` between `low` and `high`
50-
* `['%', value1, value2]` returns the result of `value1 % value2` (modulo)
51-
* `['^', value1, value2]` returns the value of `value1` raised to the `value2` power
52-
* `['abs', value1]` returns the absolute value of `value1`
53-
* `['floor', value1]` returns the nearest integer less than or equal to `value1`
45+
* * `['*', value1, value2, ...]` multiplies the values (either numbers or colors)
46+
* * `['/', value1, value2]` divides `value1` by `value2`
47+
* * `['+', value1, value2, ...]` adds the values
48+
* * `['-', value1, value2]` subtracts `value2` from `value1`
49+
* * `['clamp', value, low, high]` clamps `value` between `low` and `high`
50+
* * `['%', value1, value2]` returns the result of `value1 % value2` (modulo)
51+
* * `['^', value1, value2]` returns the value of `value1` raised to the `value2` power
52+
* * `['abs', value1]` returns the absolute value of `value1`
53+
* * `['floor', value1]` returns the nearest integer less than or equal to `value1`
5454
* * `['round', value1]` returns the nearest integer to `value1`
5555
* * `['ceil', value1]` returns the nearest integer greater than or equal to `value1`
5656
* * `['sin', value1]` returns the sine of `value1`

0 commit comments

Comments
 (0)