Skip to content

Commit

Permalink
Website updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ahocevar committed Nov 26, 2023
1 parent f473a82 commit a91d519
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 35 deletions.
14 changes: 7 additions & 7 deletions dist/en/main/apidoc/module-ol_format_EsriJSON-EsriJSON.html
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ <h3 class="subsection-title">Methods</h3>
<div class="anchor" id="readFeature">
</div>
<h4 class="name">
readFeature<span class="signature">(source, <span class="optional">options</span>)</span><span class="fa fa-arrow-circle-right"></span><span class="type-signature returnType">{<a href="module-ol_Feature.html#~FeatureLike">FeatureLike</a> | Array&lt;<a href="module-ol_render_Feature-RenderFeature.html">RenderFeature</a>>}</span>
readFeature<span class="signature">(source, <span class="optional">options</span>)</span><span class="fa fa-arrow-circle-right"></span><span class="type-signature returnType">{FeatureOrRenderFeature&lt;T>}</span>

<span class="inherited"><a href="module-ol_format_JSONFeature-JSONFeature.html#readFeature">inherited</a></span>

Expand Down Expand Up @@ -563,7 +563,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L54">line 54</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L56">line 56</a>
</div>

</div>
Expand Down Expand Up @@ -831,7 +831,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L93">line 93</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L95">line 95</a>
</div>

</div>
Expand Down Expand Up @@ -1098,7 +1098,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L118">line 118</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L120">line 120</a>
</div>

</div>
Expand Down Expand Up @@ -1247,7 +1247,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L140">line 140</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L142">line 142</a>
</div>

</div>
Expand Down Expand Up @@ -1821,7 +1821,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L162">line 162</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L164">line 164</a>
</div>

</div>
Expand Down Expand Up @@ -2395,7 +2395,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L184">line 184</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L186">line 186</a>
</div>

</div>
Expand Down
14 changes: 7 additions & 7 deletions dist/en/main/apidoc/module-ol_format_GeoJSON-GeoJSON.html
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ <h3 class="subsection-title">Methods</h3>
<div class="anchor" id="readFeature">
</div>
<h4 class="name">
readFeature<span class="signature">(source, <span class="optional">options</span>)</span><span class="fa fa-arrow-circle-right"></span><span class="type-signature returnType">{<a href="module-ol_Feature.html#~FeatureLike">FeatureLike</a> | Array&lt;<a href="module-ol_render_Feature-RenderFeature.html">RenderFeature</a>>}</span>
readFeature<span class="signature">(source, <span class="optional">options</span>)</span><span class="fa fa-arrow-circle-right"></span><span class="type-signature returnType">{FeatureOrRenderFeature&lt;T>}</span>

<span class="inherited"><a href="module-ol_format_JSONFeature-JSONFeature.html#readFeature">inherited</a></span>

Expand Down Expand Up @@ -674,7 +674,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L54">line 54</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L56">line 56</a>
</div>

</div>
Expand Down Expand Up @@ -942,7 +942,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L93">line 93</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L95">line 95</a>
</div>

</div>
Expand Down Expand Up @@ -1209,7 +1209,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L118">line 118</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L120">line 120</a>
</div>

</div>
Expand Down Expand Up @@ -1358,7 +1358,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L140">line 140</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L142">line 142</a>
</div>

</div>
Expand Down Expand Up @@ -1932,7 +1932,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L162">line 162</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L164">line 164</a>
</div>

</div>
Expand Down Expand Up @@ -2506,7 +2506,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L184">line 184</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L186">line 186</a>
</div>

</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ <h3 class="subsection-title">Methods</h3>
<div class="anchor" id="readFeature">
</div>
<h4 class="name">
readFeature<span class="signature">(source, <span class="optional">options</span>)</span><span class="fa fa-arrow-circle-right"></span><span class="type-signature returnType">{<a href="module-ol_Feature.html#~FeatureLike">FeatureLike</a> | Array&lt;<a href="module-ol_render_Feature-RenderFeature.html">RenderFeature</a>>}</span>
readFeature<span class="signature">(source, <span class="optional">options</span>)</span><span class="fa fa-arrow-circle-right"></span><span class="type-signature returnType">{FeatureOrRenderFeature&lt;T>}</span>



Expand Down Expand Up @@ -504,7 +504,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L54">line 54</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L56">line 56</a>
</div>

</div>
Expand Down Expand Up @@ -770,7 +770,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L93">line 93</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L95">line 95</a>
</div>

</div>
Expand Down Expand Up @@ -1035,7 +1035,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L118">line 118</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L120">line 120</a>
</div>

</div>
Expand Down Expand Up @@ -1182,7 +1182,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L140">line 140</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L142">line 142</a>
</div>

</div>
Expand Down Expand Up @@ -1468,7 +1468,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L162">line 162</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L164">line 164</a>
</div>

</div>
Expand Down Expand Up @@ -1754,7 +1754,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L184">line 184</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L186">line 186</a>
</div>

</div>
Expand Down
14 changes: 7 additions & 7 deletions dist/en/main/apidoc/module-ol_format_TopoJSON-TopoJSON.html
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ <h3 class="subsection-title">Methods</h3>
<div class="anchor" id="readFeature">
</div>
<h4 class="name">
readFeature<span class="signature">(source, <span class="optional">options</span>)</span><span class="fa fa-arrow-circle-right"></span><span class="type-signature returnType">{<a href="module-ol_Feature.html#~FeatureLike">FeatureLike</a> | Array&lt;<a href="module-ol_render_Feature-RenderFeature.html">RenderFeature</a>>}</span>
readFeature<span class="signature">(source, <span class="optional">options</span>)</span><span class="fa fa-arrow-circle-right"></span><span class="type-signature returnType">{FeatureOrRenderFeature&lt;T>}</span>

<span class="inherited"><a href="module-ol_format_JSONFeature-JSONFeature.html#readFeature">inherited</a></span>

Expand Down Expand Up @@ -626,7 +626,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L54">line 54</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L56">line 56</a>
</div>

</div>
Expand Down Expand Up @@ -894,7 +894,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L93">line 93</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L95">line 95</a>
</div>

</div>
Expand Down Expand Up @@ -1161,7 +1161,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L118">line 118</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L120">line 120</a>
</div>

</div>
Expand Down Expand Up @@ -1310,7 +1310,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L140">line 140</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L142">line 142</a>
</div>

</div>
Expand Down Expand Up @@ -1598,7 +1598,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L162">line 162</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L164">line 164</a>
</div>

</div>
Expand Down Expand Up @@ -1886,7 +1886,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js">format/JSONFeature.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L184">line 184</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/format/JSONFeature.js#L186">line 186</a>
</div>

</div>
Expand Down
2 changes: 1 addition & 1 deletion dist/en/main/examples/common.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/ol/dist/ol.js.map

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions dist/en/main/ol/format/JSONFeature.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ export default JSONFeature;
* @abstract
*/
declare class JSONFeature<T extends import("../Feature.js").FeatureClass = typeof import("../Feature.js").default> extends FeatureFormat<T> {
/**
* Read a feature. Only works for a single feature. Use `readFeatures` to
* read a feature collection.
*
* @param {ArrayBuffer|Document|Element|Object|string} source Source.
* @param {import("./Feature.js").ReadOptions} [options] Read options.
* @return {import('./Feature.js').FeatureOrRenderFeature<T>} Feature.
* @api
*/
readFeature(source: ArrayBuffer | Document | Element | any | string, options?: import("./Feature.js").ReadOptions | undefined): import('./Feature.js').FeatureOrRenderFeature<T>;
/**
* @abstract
* @param {Object} object Object.
Expand Down
2 changes: 1 addition & 1 deletion dist/en/main/ol/format/JSONFeature.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions dist/en/main/ol/format/JSONFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ class JSONFeature extends FeatureFormat {
*
* @param {ArrayBuffer|Document|Element|Object|string} source Source.
* @param {import("./Feature.js").ReadOptions} [options] Read options.
* @return {import("../Feature.js").FeatureLike|Array<import("../render/Feature.js").default>} Feature.
* @return {import('./Feature.js').FeatureOrRenderFeature<T>} Feature.
* @api
*/
readFeature(source, options) {
return this.readFeatureFromObject(
getObject(source),
this.getReadOptions(source, options)
return /** @type {import('./Feature.js').FeatureOrRenderFeature<T>} */ (
this.readFeatureFromObject(
getObject(source),
this.getReadOptions(source, options)
)
);
}

Expand Down

0 comments on commit a91d519

Please sign in to comment.