Skip to content

Commit 8c9b8d3

Browse files
committed
Website updates
1 parent 08cf1f3 commit 8c9b8d3

File tree

6 files changed

+64
-37
lines changed

6 files changed

+64
-37
lines changed

dist/en/main/apidoc/module-ol_Map-Map.html

Lines changed: 43 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,7 +1748,7 @@ <h4 class="name">
17481748

17491749
<div class="tag-source">
17501750
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
1751-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L689">line 689</a>
1751+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L692">line 692</a>
17521752
</div>
17531753

17541754
</div>
@@ -1763,7 +1763,10 @@ <h4 class="name">
17631763
<div class="description">
17641764
<p>Detect features that intersect a pixel on the viewport, and execute a
17651765
callback with each intersecting feature. Layers included in the detection can
1766-
be configured through the <code>layerFilter</code> option in <code>options</code>.</p>
1766+
be configured through the <code>layerFilter</code> option in <code>options</code>.
1767+
For polygons without a fill, only the stroke will be used for hit detection.
1768+
Polygons must have a fill style applied to ensure that pixels inside a polygon are detected.
1769+
The fill can be transparent.</p>
17671770
</div>
17681771

17691772

@@ -2176,7 +2179,7 @@ <h4 class="name">
21762179

21772180
<div class="tag-source">
21782181
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
2179-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L737">line 737</a>
2182+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L743">line 743</a>
21802183
</div>
21812184

21822185
</div>
@@ -2266,7 +2269,7 @@ <h4 class="name">
22662269

22672270
<div class="tag-source">
22682271
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
2269-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L884">line 884</a>
2272+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L893">line 893</a>
22702273
</div>
22712274

22722275
</div>
@@ -2357,7 +2360,7 @@ <h4 class="name">
23572360

23582361
<div class="tag-source">
23592362
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
2360-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L857">line 857</a>
2363+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L866">line 866</a>
23612364
</div>
23622365

23632366
</div>
@@ -2493,7 +2496,7 @@ <h4 class="name">
24932496

24942497
<div class="tag-source">
24952498
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
2496-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L787">line 787</a>
2499+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L796">line 796</a>
24972500
</div>
24982501

24992502
</div>
@@ -2628,7 +2631,7 @@ <h4 class="name">
26282631

26292632
<div class="tag-source">
26302633
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
2631-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L806">line 806</a>
2634+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L815">line 815</a>
26322635
</div>
26332636

26342637
</div>
@@ -2766,7 +2769,7 @@ <h4 class="name">
27662769

27672770
<div class="tag-source">
27682771
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
2769-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L720">line 720</a>
2772+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L726">line 726</a>
27702773
</div>
27712774

27722775
</div>
@@ -2779,7 +2782,10 @@ <h4 class="name">
27792782

27802783

27812784
<div class="description">
2782-
<p>Get all features that intersect a pixel on the viewport.</p>
2785+
<p>Get all features that intersect a pixel on the viewport.
2786+
For polygons without a fill, only the stroke will be used for hit detection.
2787+
Polygons must have a fill style applied to ensure that pixels inside a polygon are detected.
2788+
The fill can be transparent.</p>
27832789
</div>
27842790

27852791

@@ -3024,7 +3030,7 @@ <h4 class="name">
30243030

30253031
<div class="tag-source">
30263032
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
3027-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L919">line 919</a>
3033+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L928">line 928</a>
30283034
</div>
30293035

30303036
</div>
@@ -3208,7 +3214,7 @@ <h4 class="name">
32083214

32093215
<div class="tag-source">
32103216
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
3211-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L929">line 929</a>
3217+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L938">line 938</a>
32123218
</div>
32133219

32143220
</div>
@@ -3298,7 +3304,7 @@ <h4 class="name">
32983304

32993305
<div class="tag-source">
33003306
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
3301-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L955">line 955</a>
3307+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L964">line 964</a>
33023308
</div>
33033309

33043310
</div>
@@ -3388,7 +3394,7 @@ <h4 class="name">
33883394

33893395
<div class="tag-source">
33903396
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
3391-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L906">line 906</a>
3397+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L915">line 915</a>
33923398
</div>
33933399

33943400
</div>
@@ -3528,7 +3534,7 @@ <h4 class="name">
35283534

35293535
<div class="tag-source">
35303536
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
3531-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L894">line 894</a>
3537+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L903">line 903</a>
35323538
</div>
35333539

35343540
</div>
@@ -3619,7 +3625,7 @@ <h4 class="name">
36193625

36203626
<div class="tag-source">
36213627
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
3622-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L989">line 989</a>
3628+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L998">line 998</a>
36233629
</div>
36243630

36253631
</div>
@@ -3940,7 +3946,7 @@ <h4 class="name">
39403946

39413947
<div class="tag-source">
39423948
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
3943-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1028">line 1028</a>
3949+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1037">line 1037</a>
39443950
</div>
39453951

39463952
</div>
@@ -4030,7 +4036,7 @@ <h4 class="name">
40304036

40314037
<div class="tag-source">
40324038
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
4033-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L833">line 833</a>
4039+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L842">line 842</a>
40344040
</div>
40354041

40364042
</div>
@@ -4123,7 +4129,7 @@ <h4 class="name">
41234129

41244130
<div class="tag-source">
41254131
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
4126-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L846">line 846</a>
4132+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L855">line 855</a>
41274133
</div>
41284134

41294135
</div>
@@ -4215,7 +4221,7 @@ <h4 class="name">
42154221

42164222
<div class="tag-source">
42174223
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
4218-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1041">line 1041</a>
4224+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1050">line 1050</a>
42194225
</div>
42204226

42214227
</div>
@@ -4306,7 +4312,7 @@ <h4 class="name">
43064312

43074313
<div class="tag-source">
43084314
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
4309-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1050">line 1050</a>
4315+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1059">line 1059</a>
43104316
</div>
43114317

43124318
</div>
@@ -4396,7 +4402,7 @@ <h4 class="name">
43964402

43974403
<div class="tag-source">
43984404
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
4399-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L760">line 760</a>
4405+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L769">line 769</a>
44004406
</div>
44014407

44024408
</div>
@@ -4410,7 +4416,10 @@ <h4 class="name">
44104416

44114417
<div class="description">
44124418
<p>Detect if features intersect a pixel on the viewport. Layers included in the
4413-
detection can be configured through the <code>layerFilter</code> option.</p>
4419+
detection can be configured through the <code>layerFilter</code> option.
4420+
For polygons without a fill, only the stroke will be used for hit detection.
4421+
Polygons must have a fill style applied to ensure that pixels inside a polygon are detected.
4422+
The fill can be transparent.</p>
44144423
</div>
44154424

44164425

@@ -4988,7 +4997,7 @@ <h4 class="name">
49884997

49894998
<div class="tag-source">
49904999
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
4991-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1490">line 1490</a>
5000+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1499">line 1499</a>
49925001
</div>
49935002

49945003
</div>
@@ -5124,7 +5133,7 @@ <h4 class="name">
51245133

51255134
<div class="tag-source">
51265135
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
5127-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1501">line 1501</a>
5136+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1510">line 1510</a>
51285137
</div>
51295138

51305139
</div>
@@ -5260,7 +5269,7 @@ <h4 class="name">
52605269

52615270
<div class="tag-source">
52625271
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
5263-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1512">line 1512</a>
5272+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1521">line 1521</a>
52645273
</div>
52655274

52665275
</div>
@@ -5396,7 +5405,7 @@ <h4 class="name">
53965405

53975406
<div class="tag-source">
53985407
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
5399-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1532">line 1532</a>
5408+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1541">line 1541</a>
54005409
</div>
54015410

54025411
</div>
@@ -5532,7 +5541,7 @@ <h4 class="name">
55325541

55335542
<div class="tag-source">
55345543
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
5535-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1477">line 1477</a>
5544+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1486">line 1486</a>
55365545
</div>
55375546

55385547
</div>
@@ -5613,7 +5622,7 @@ <h4 class="name">
56135622

56145623
<div class="tag-source">
56155624
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
5616-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1453">line 1453</a>
5625+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1462">line 1462</a>
56175626
</div>
56185627

56195628
</div>
@@ -5872,7 +5881,7 @@ <h4 class="name">
58725881

58735882
<div class="tag-source">
58745883
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
5875-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1654">line 1654</a>
5884+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1663">line 1663</a>
58765885
</div>
58775886

58785887
</div>
@@ -5998,7 +6007,7 @@ <h4 class="name">
59986007

59996008
<div class="tag-source">
60006009
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
6001-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L938">line 938</a>
6010+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L947">line 947</a>
60026011
</div>
60036012

60046013
</div>
@@ -6281,7 +6290,7 @@ <h4 class="name">
62816290

62826291
<div class="tag-source">
62836292
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
6284-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1668">line 1668</a>
6293+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1677">line 1677</a>
62856294
</div>
62866295

62876296
</div>
@@ -6410,7 +6419,7 @@ <h4 class="name">
64106419

64116420
<div class="tag-source">
64126421
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
6413-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1682">line 1682</a>
6422+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1691">line 1691</a>
64146423
</div>
64156424

64166425
</div>
@@ -6543,7 +6552,7 @@ <h4 class="name">
65436552

65446553
<div class="tag-source">
65456554
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
6546-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1695">line 1695</a>
6555+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1704">line 1704</a>
65476556
</div>
65486557

65496558
</div>
@@ -6987,7 +6996,7 @@ <h4 class="name">
69876996

69886997
<div class="tag-source">
69896998
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js">Map.js</a>,
6990-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1713">line 1713</a>
6999+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/Map.js#L1722">line 1722</a>
69917000
</div>
69927001

69937002
</div>

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/ol/Map.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,9 @@ declare class Map extends BaseObject {
490490
* Detect features that intersect a pixel on the viewport, and execute a
491491
* callback with each intersecting feature. Layers included in the detection can
492492
* be configured through the `layerFilter` option in `options`.
493+
* For polygons without a fill, only the stroke will be used for hit detection.
494+
* Polygons must have a fill style applied to ensure that pixels inside a polygon are detected.
495+
* The fill can be transparent.
493496
* @param {import("./pixel.js").Pixel} pixel Pixel.
494497
* @param {function(import("./Feature.js").FeatureLike, import("./layer/Layer.js").default<import("./source/Source").default>, import("./geom/SimpleGeometry.js").default): T} callback Feature callback. The callback will be
495498
* called with two arguments. The first argument is one
@@ -507,6 +510,9 @@ declare class Map extends BaseObject {
507510
forEachFeatureAtPixel<T>(pixel: import("./pixel.js").Pixel, callback: (arg0: import("./Feature.js").FeatureLike, arg1: import("./layer/Layer.js").default<import("./source/Source").default>, arg2: import("./geom/SimpleGeometry.js").default) => T, options?: AtPixelOptions): T | undefined;
508511
/**
509512
* Get all features that intersect a pixel on the viewport.
513+
* For polygons without a fill, only the stroke will be used for hit detection.
514+
* Polygons must have a fill style applied to ensure that pixels inside a polygon are detected.
515+
* The fill can be transparent.
510516
* @param {import("./pixel.js").Pixel} pixel Pixel.
511517
* @param {AtPixelOptions} [options] Optional options.
512518
* @return {Array<import("./Feature.js").FeatureLike>} The detected features or
@@ -523,6 +529,9 @@ declare class Map extends BaseObject {
523529
/**
524530
* Detect if features intersect a pixel on the viewport. Layers included in the
525531
* detection can be configured through the `layerFilter` option.
532+
* For polygons without a fill, only the stroke will be used for hit detection.
533+
* Polygons must have a fill style applied to ensure that pixels inside a polygon are detected.
534+
* The fill can be transparent.
526535
* @param {import("./pixel.js").Pixel} pixel Pixel.
527536
* @param {AtPixelOptions} [options] Optional options.
528537
* @return {boolean} Is there a feature at the given pixel?

0 commit comments

Comments
 (0)