Skip to content

Commit 9e18454

Browse files
committed
Website updates
1 parent 45d6537 commit 9e18454

File tree

12 files changed

+162
-13
lines changed

12 files changed

+162
-13
lines changed

dist/en/main/apidoc/module-ol_style_Icon-Icon.html

Lines changed: 132 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
<li data-name="setrotatewithview"><a href="module-ol_style_Icon-Icon.html#setRotateWithView">setRotateWithView</a>
9595
<li data-name="setrotation"><a href="module-ol_style_Icon-Icon.html#setRotation">setRotation</a>
9696
<li data-name="setscale"><a href="module-ol_style_Icon-Icon.html#setScale">setScale</a>
97+
<li data-name="setsrc"><a href="module-ol_style_Icon-Icon.html#setSrc">setSrc</a>
9798
</ul>
9899
</div>
99100
<li class="loading">Loading …
@@ -1260,7 +1261,7 @@ <h4 class="name">
12601261

12611262
<div class="tag-source">
12621263
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Icon.js">style/Icon.js</a>,
1263-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Icon.js#L532">line 532</a>
1264+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Icon.js#L547">line 547</a>
12641265
</div>
12651266

12661267
</div>
@@ -2079,7 +2080,7 @@ <h4 class="name">
20792080

20802081
<div class="tag-source">
20812082
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Icon.js">style/Icon.js</a>,
2082-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Icon.js#L507">line 507</a>
2083+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Icon.js#L522">line 522</a>
20832084
</div>
20842085

20852086
</div>
@@ -2259,7 +2260,7 @@ <h4 class="name">
22592260

22602261
<div class="tag-source">
22612262
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Icon.js">style/Icon.js</a>,
2262-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Icon.js#L516">line 516</a>
2263+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Icon.js#L531">line 531</a>
22632264
</div>
22642265

22652266
</div>
@@ -2349,7 +2350,7 @@ <h4 class="name">
23492350

23502351
<div class="tag-source">
23512352
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Icon.js">style/Icon.js</a>,
2352-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Icon.js#L571">line 571</a>
2353+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Icon.js#L586">line 586</a>
23532354
</div>
23542355

23552356
</div>
@@ -3072,7 +3073,7 @@ <h4 class="name">
30723073

30733074
<div class="tag-source">
30743075
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Icon.js">style/Icon.js</a>,
3075-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Icon.js#L550">line 550</a>
3076+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Icon.js#L565">line 565</a>
30763077
</div>
30773078

30783079
</div>
@@ -3167,6 +3168,132 @@ <h4 class="name">
31673168

31683169

31693170

3171+
3172+
</dl>
3173+
3174+
3175+
3176+
3177+
3178+
3179+
3180+
3181+
3182+
3183+
3184+
3185+
3186+
</dd>
3187+
3188+
3189+
3190+
3191+
<dt class="">
3192+
3193+
<div class="nameContainer">
3194+
<div class="anchor" id="setSrc">
3195+
</div>
3196+
<h4 class="name">
3197+
setSrc<span class="signature">(src)</span>
3198+
3199+
3200+
3201+
</h4>
3202+
3203+
<div class="tag-source">
3204+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Icon.js">style/Icon.js</a>,
3205+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/style/Icon.js#L506">line 506</a>
3206+
</div>
3207+
3208+
</div>
3209+
3210+
3211+
</dt>
3212+
<dd class="">
3213+
3214+
3215+
3216+
3217+
<div class="description">
3218+
<p>Set the image URI</p>
3219+
</div>
3220+
3221+
3222+
3223+
3224+
3225+
3226+
3227+
3228+
3229+
3230+
<table class="params">
3231+
<thead>
3232+
<tr>
3233+
3234+
<th>Name</th>
3235+
3236+
3237+
<th>Type</th>
3238+
3239+
<th class="last">Description</th>
3240+
</tr>
3241+
</thead>
3242+
3243+
<tbody>
3244+
3245+
3246+
<tr class="">
3247+
3248+
<td class="name"><code>src</code></td>
3249+
3250+
3251+
3252+
<td class="type">
3253+
3254+
3255+
<span class="param-type">string</span>
3256+
3257+
3258+
3259+
3260+
</td>
3261+
3262+
3263+
3264+
<td class="description last">
3265+
3266+
<p>Image source URI</p></td>
3267+
</tr>
3268+
3269+
3270+
</tbody>
3271+
</table>
3272+
3273+
3274+
3275+
3276+
<dl class="details">
3277+
3278+
3279+
3280+
3281+
3282+
3283+
3284+
3285+
3286+
3287+
3288+
3289+
3290+
3291+
3292+
3293+
3294+
3295+
3296+
31703297

31713298
</dl>
31723299

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7226,6 +7226,7 @@
72267226
<li data-name="setrotatewithview"><a href="module-ol_style_Icon-Icon.html#setRotateWithView">setRotateWithView</a>
72277227
<li data-name="setrotation"><a href="module-ol_style_Icon-Icon.html#setRotation">setRotation</a>
72287228
<li data-name="setscale"><a href="module-ol_style_Icon-Icon.html#setScale">setScale</a>
7229+
<li data-name="setsrc"><a href="module-ol_style_Icon-Icon.html#setSrc">setSrc</a>
72297230
</ul>
72307231
</div>
72317232
<li class="item item-module" data-longname="module:ol/style/Icon" data-name="ol/style/icon">

dist/en/main/examples/common.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/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/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.

dist/en/main/ol/dist/ol.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/ol/dist/ol.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/ol/style/Icon.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@ declare class Icon extends ImageStyle {
209209
* @api
210210
*/
211211
getSrc(): string | undefined;
212+
/**
213+
* Set the image URI
214+
* @param {string} src Image source URI
215+
* @api
216+
*/
217+
setSrc(src: string): void;
212218
/**
213219
* Get the width of the icon (in pixels). Will return undefined when the icon image is not yet loaded.
214220
* @return {number} Icon width (in pixels).

dist/en/main/ol/style/Icon.d.ts.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/ol/style/Icon.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,21 @@ class Icon extends ImageStyle {
498498
return this.iconImage_.getSrc();
499499
}
500500

501+
/**
502+
* Set the image URI
503+
* @param {string} src Image source URI
504+
* @api
505+
*/
506+
setSrc(src) {
507+
this.iconImage_ = getIconImage(
508+
null,
509+
src,
510+
this.crossOrigin_,
511+
ImageState.IDLE,
512+
this.color_,
513+
);
514+
}
515+
501516
/**
502517
* Get the size of the icon (in pixels).
503518
* @return {import("../size.js").Size} Image size.

dist/main.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.

0 commit comments

Comments
 (0)