Skip to content

Commit 427ac9b

Browse files
committed
Website updates
1 parent e5368f5 commit 427ac9b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+670
-220
lines changed

dist/en/main/apidoc/module-ol_layer_WebGLTile-WebGLTileLayer.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ <h4 class="name">
198198

199199
<div class="tag-source">
200200
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/layer/WebGLTile.js">layer/WebGLTile.js</a>,
201-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/layer/WebGLTile.js#L286">line 286</a>
201+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/layer/WebGLTile.js#L285">line 285</a>
202202
</div>
203203

204204
</div>
@@ -1396,7 +1396,7 @@ <h4 class="name">
13961396

13971397
<div class="tag-source">
13981398
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/layer/WebGLTile.js">layer/WebGLTile.js</a>,
1399-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/layer/WebGLTile.js#L517">line 517</a>
1399+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/layer/WebGLTile.js#L516">line 516</a>
14001400
</div>
14011401

14021402
</div>
@@ -5869,7 +5869,7 @@ <h4 class="name">
58695869

58705870
<div class="tag-source">
58715871
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/layer/WebGLTile.js">layer/WebGLTile.js</a>,
5872-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/layer/WebGLTile.js#L506">line 506</a>
5872+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/layer/WebGLTile.js#L505">line 505</a>
58735873
</div>
58745874

58755875
</div>

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

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
<li data-name="rule"><a href="module-ol_style_flat.html#~Rule">Rule</a>
8888
<li data-name="sizeexpression"><a href="module-ol_style_flat.html#~SizeExpression">SizeExpression</a>
8989
<li data-name="stringexpression"><a href="module-ol_style_flat.html#~StringExpression">StringExpression</a>
90+
<li data-name="stylevariables"><a href="module-ol_style_flat.html#~StyleVariables">StyleVariables</a>
9091
</ul>
9192
</div>
9293
<li class="loading">Loading …
@@ -3809,6 +3810,58 @@ <h4 class="name">
38093810

38103811

38113812

3813+
3814+
</dl>
3815+
3816+
3817+
3818+
</dd>
3819+
3820+
3821+
3822+
<dt class="">
3823+
<div class="nameContainer">
3824+
<div class="anchor" id="~StyleVariables">
3825+
</div>
3826+
<h4 class="name">
3827+
StyleVariables<span class="type-signature type object.<string, (number|array.<number>|string|boolean)>">{Object.&lt;string, (number|Array.&lt;number>|string|boolean)>}</span>
3828+
3829+
3830+
</h4>
3831+
</div>
3832+
3833+
</dt>
3834+
<dd class="">
3835+
3836+
<div class="description">
3837+
<p>Style variables are provided as an object. The variables can be read in a <a href="module-ol_expr_expression.html#~ExpressionValue"><code>style expression</code></a>
3838+
using the <code>['var', 'varName']</code> operator.
3839+
Each variable must hold a literal value (not an expression).</p>
3840+
</div>
3841+
3842+
3843+
3844+
<dl class="details">
3845+
3846+
3847+
3848+
3849+
3850+
3851+
3852+
3853+
3854+
3855+
3856+
3857+
3858+
3859+
3860+
3861+
3862+
3863+
3864+
38123865

38133866
</dl>
38143867

dist/en/main/apidoc/navigation.tmpl.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7125,6 +7125,7 @@
71257125
<li data-name="rule"><a href="module-ol_style_flat.html#~Rule">Rule</a>
71267126
<li data-name="sizeexpression"><a href="module-ol_style_flat.html#~SizeExpression">SizeExpression</a>
71277127
<li data-name="stringexpression"><a href="module-ol_style_flat.html#~StringExpression">StringExpression</a>
7128+
<li data-name="stylevariables"><a href="module-ol_style_flat.html#~StyleVariables">StyleVariables</a>
71287129
</ul>
71297130
</div>
71307131
<li class="item item-class" data-longname="module:ol/style/Icon~Icon" data-name="ol/style/icon">

dist/en/main/examples/common.js

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/filter-webgl-line.html

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -309,17 +309,13 @@ <h5 class="modal-title" id="tag-example-title"></h5>
309309
<div class="row-fluid">
310310
<h5 class="source-heading">main.js</h5>
311311
<pre><code id="example-js-source" class="language-js">import IGC from &#x27;ol/format/IGC.js&#x27;;
312-
import Layer from &#x27;ol/layer/Layer.js&#x27;;
313312
import Map from &#x27;ol/Map.js&#x27;;
314313
import View from &#x27;ol/View.js&#x27;;
315-
import WebGLVectorLayerRenderer from &#x27;ol/renderer/webgl/VectorLayer.js&#x27;;
314+
import WebGLVectorLayer from &#x27;ol/layer/WebGLVector.js&#x27;;
316315
import {OSM, Vector as VectorSource} from &#x27;ol/source.js&#x27;;
317316
import {Tile as TileLayer} from &#x27;ol/layer.js&#x27;;
318317

319318
const lineStyle &#x3D; {
320-
variables: {
321-
timestamp: 1303240000,
322-
},
323319
&#x27;stroke-width&#x27;: 4,
324320
&#x27;stroke-color&#x27;: [
325321
&#x27;interpolate&#x27;,
@@ -333,15 +329,6 @@ <h5 class="source-heading">main.js</h5>
333329
filter: [&#x27;&lt;&#x3D;&#x27;, [&#x27;line-metric&#x27;], [&#x27;var&#x27;, &#x27;timestamp&#x27;]],
334330
};
335331

336-
class WebGLLayer extends Layer {
337-
createRenderer() {
338-
return new WebGLVectorLayerRenderer(this, {
339-
className: this.getClassName(),
340-
style: lineStyle,
341-
});
342-
}
343-
}
344-
345332
const igcUrls &#x3D; [
346333
&#x27;data/igc/Clement-Latour.igc&#x27;,
347334
&#x27;data/igc/Damien-de-Baenst.igc&#x27;,
@@ -366,8 +353,13 @@ <h5 class="source-heading">main.js</h5>
366353
});
367354
}
368355

369-
const vectorLayer &#x3D; new WebGLLayer({
356+
let timestamp &#x3D; 1303240000;
357+
const vectorLayer &#x3D; new WebGLVectorLayer({
370358
source,
359+
style: lineStyle,
360+
variables: {
361+
timestamp,
362+
},
371363
});
372364

373365
const map &#x3D; new Map({
@@ -385,11 +377,12 @@ <h5 class="source-heading">main.js</h5>
385377
});
386378

387379
function showTime() {
388-
const time &#x3D; new Date(lineStyle.variables.timestamp * 1000);
389-
document.getElementById(&#x27;time-value&#x27;).textContent &#x3D; time.toUTCString();
380+
const dateTime &#x3D; new Date(timestamp * 1000);
381+
document.getElementById(&#x27;time-value&#x27;).textContent &#x3D; dateTime.toUTCString();
390382
}
391383
document.getElementById(&#x27;time-input&#x27;).addEventListener(&#x27;input&#x27;, (event) &#x3D;&gt; {
392-
lineStyle.variables.timestamp &#x3D; parseFloat(event.target.value);
384+
timestamp &#x3D; parseFloat(event.target.value);
385+
vectorLayer.updateStyleVariables({timestamp});
393386
showTime();
394387
map.render();
395388
});

dist/en/main/examples/filter-webgl-line.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/filter-webgl-line.js.map

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)