Skip to content

Commit 5bca8d8

Browse files
committed
Website updates
1 parent de4fbb5 commit 5bca8d8

19 files changed

+186
-40
lines changed

dist/en/main/apidoc/module-ol_source_DataTile-DataTileSource.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2845,7 +2845,7 @@ <h4 class="name">
28452845

28462846
<div class="tag-source">
28472847
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/DataTile.js">source/DataTile.js</a>,
2848-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/DataTile.js#L408">line 408</a>
2848+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/DataTile.js#L407">line 407</a>
28492849
</div>
28502850

28512851
</div>

dist/en/main/apidoc/module-ol_source_GeoTIFF-GeoTIFFSource.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2684,7 +2684,7 @@ <h4 class="name">
26842684

26852685
<div class="tag-source">
26862686
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/DataTile.js">source/DataTile.js</a>,
2687-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/DataTile.js#L408">line 408</a>
2687+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/DataTile.js#L407">line 407</a>
26882688
</div>
26892689

26902690
</div>

dist/en/main/apidoc/module-ol_source_ImageTile-ImageTileSource.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2814,7 +2814,7 @@ <h4 class="name">
28142814

28152815
<div class="tag-source">
28162816
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/DataTile.js">source/DataTile.js</a>,
2817-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/DataTile.js#L408">line 408</a>
2817+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/DataTile.js#L407">line 407</a>
28182818
</div>
28192819

28202820
</div>

dist/en/main/apidoc/module-ol_source_SentinelHub-SentinelHub.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3362,7 +3362,7 @@ <h4 class="name">
33623362

33633363
<div class="tag-source">
33643364
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/DataTile.js">source/DataTile.js</a>,
3365-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/DataTile.js#L408">line 408</a>
3365+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/DataTile.js#L407">line 407</a>
33663366
</div>
33673367

33683368
</div>

dist/en/main/apidoc/module-ol_source_TileDebug-TileDebug.html

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ <h4 class="name">
166166

167167
<div class="tag-source">
168168
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/TileDebug.js">source/TileDebug.js</a>,
169-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/TileDebug.js#L29">line 29</a>
169+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/TileDebug.js#L36">line 36</a>
170170
</div>
171171

172172
</div>
@@ -314,6 +314,33 @@ <h4 class="name">
314314

315315

316316

317+
<tr class="">
318+
319+
<td class="name"><code>source</code></td>
320+
321+
322+
323+
<td class="type">
324+
325+
326+
<span class="param-type"><a href="module-ol_source_Tile-TileSource.html">TileSource</a></span>
327+
328+
| undefined
329+
330+
331+
</td>
332+
333+
334+
335+
<td class="description last">
336+
337+
<p>Tile source.
338+
This allows <code>projection</code>, <code>tileGrid</code>, <code>wrapX</code> and <code>zDirection</code> to be copied from another source.
339+
If both <code>source</code> and individual options are specified the individual options will have precedence.</p></td>
340+
</tr>
341+
342+
343+
317344
<tr class="">
318345

319346
<td class="name"><code>template</code></td>
@@ -2489,7 +2516,7 @@ <h4 class="name">
24892516

24902517
<div class="tag-source">
24912518
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/DataTile.js">source/DataTile.js</a>,
2492-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/DataTile.js#L408">line 408</a>
2519+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/DataTile.js#L407">line 407</a>
24932520
</div>
24942521

24952522
</div>

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,31 @@ <h5 class="subsection-title">Properties:</h5>
305305

306306

307307

308+
<tr>
309+
310+
<td class="name"><code>source</code></td>
311+
312+
313+
<td class="type">
314+
315+
316+
<span class="param-type"><a href="module-ol_source_Tile-TileSource.html">TileSource</a></span>
317+
318+
| undefined
319+
320+
321+
</td>
322+
323+
<td class="description last">
324+
<p>Tile source.
325+
This allows <code>projection</code>, <code>tileGrid</code>, <code>wrapX</code> and <code>zDirection</code> to be copied from another source.
326+
If both <code>source</code> and individual options are specified the individual options will have precedence.</p>
327+
328+
</td>
329+
</tr>
330+
331+
332+
308333
<tr>
309334

310335
<td class="name"><code>template</code></td>

dist/en/main/examples/cog-modeltransformation.html

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ <h5 class="modal-title" id="tag-example-title"></h5>
145145
</div>
146146
</div>
147147
<div id="map" class="map"></div>
148+
<form>
149+
<div class="form-check">
150+
<input class="form-check-input" type="checkbox" id="show-tiles" checked />
151+
<label class="form-check-label" for="show-tiles">Show source tile coordinates</label><br>
152+
</div>
153+
</form>
148154

149155
<form method="POST" id="codepen-form" target="_blank" action="https://codesandbox.io/api/v1/sandboxes/define">
150156
<input id="codesandbox-params" type="hidden" name="parameters">
@@ -153,7 +159,7 @@ <h5 class="modal-title" id="tag-example-title"></h5>
153159

154160
<div class="row-fluid">
155161
<p id="shortdesc">COG with ModelTransformation.</p>
156-
<div id="docs"><p>Example of using a COG with ModelTransformation. A ModelTransformation may rotate or skew the tile grid relative to the reported projection. This can be reprojected to that or any other supported projection.</p>
162+
<div id="docs"><p>Example of using a COG with ModelTransformation. A ModelTransformation may rotate or skew the tile grid relative to the reported projection. This can be reprojected to that or any other supported projection. To apply the ModelTransformation to <code>ol/source/TileDebug</code> use the <code>source</code> option.</p>
157163
</div>
158164
</div>
159165

@@ -162,6 +168,7 @@ <h5 class="source-heading">main.js</h5>
162168
<pre><code id="example-js-source" class="language-js">import GeoTIFF from &#x27;ol/source/GeoTIFF.js&#x27;;
163169
import Map from &#x27;ol/Map.js&#x27;;
164170
import OSM from &#x27;ol/source/OSM.js&#x27;;
171+
import TileDebug from &#x27;ol/source/TileDebug.js&#x27;;
165172
import TileLayer from &#x27;ol/layer/WebGLTile.js&#x27;;
166173
import View from &#x27;ol/View.js&#x27;;
167174
import proj4 from &#x27;proj4&#x27;;
@@ -173,11 +180,22 @@ <h5 class="source-heading">main.js</h5>
173180
const cogSource &#x3D; new GeoTIFF({
174181
sources: [
175182
{
176-
url: &#x27;https://umbra-open-data-catalog.s3.amazonaws.com/sar-data/tasks/Tanna%20Island,%20Vanuatu/9c76a918-9247-42bf-b9f6-3b4f672bc148/2023-02-12-21-33-56_UMBRA-04/2023-02-12-21-33-56_UMBRA-04_GEC.tif&#x27;,
183+
url:
184+
&#x27;https://umbra-open-data-catalog.s3.amazonaws.com/sar-data/tasks/Tanna%20Island,%20Vanuatu/&#x27; +
185+
&#x27;9c76a918-9247-42bf-b9f6-3b4f672bc148/2023-02-12-21-33-56_UMBRA-04/2023-02-12-21-33-56_UMBRA-04_GEC.tif&#x27;,
177186
},
178187
],
179188
});
180189

190+
const showTilesCheckbox &#x3D; document.getElementById(&#x27;show-tiles&#x27;);
191+
const debugLayer &#x3D; new TileLayer({
192+
source: new TileDebug({source: cogSource}),
193+
visible: showTilesCheckbox.checked,
194+
});
195+
showTilesCheckbox.addEventListener(&#x27;change&#x27;, () &#x3D;&gt; {
196+
debugLayer.setVisible(showTilesCheckbox.checked);
197+
});
198+
181199
const map &#x3D; new Map({
182200
target: &#x27;map&#x27;,
183201
layers: [
@@ -188,6 +206,7 @@ <h5 class="source-heading">main.js</h5>
188206
source: cogSource,
189207
opacity: 0.8,
190208
}),
209+
debugLayer,
191210
],
192211
view: new View(),
193212
});
@@ -224,6 +243,12 @@ <h5 class="source-heading">index.html</h5>
224243
&lt;/head&gt;
225244
&lt;body&gt;
226245
&lt;div id&#x3D;&quot;map&quot; class&#x3D;&quot;map&quot;&gt;&lt;/div&gt;
246+
&lt;form&gt;
247+
&lt;div class&#x3D;&quot;form-check&quot;&gt;
248+
&lt;input class&#x3D;&quot;form-check-input&quot; type&#x3D;&quot;checkbox&quot; id&#x3D;&quot;show-tiles&quot; checked /&gt;
249+
&lt;label class&#x3D;&quot;form-check-label&quot; for&#x3D;&quot;show-tiles&quot;&gt;Show source tile coordinates&lt;/label&gt;&lt;br&gt;
250+
&lt;/div&gt;
251+
&lt;/form&gt;
227252

228253
&lt;script type="module" src="main.js"&gt;&lt;/script&gt;
229254
&lt;/body&gt;

dist/en/main/examples/cog-modeltransformation.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/cog-modeltransformation.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)