Skip to content

Commit

Permalink
Merge pull request #15412 from helgee/patch-1
Browse files Browse the repository at this point in the history
Fix return type for getOverlayById
  • Loading branch information
ahocevar committed Dec 8, 2023
2 parents 06f8f48 + 1cb7ac8 commit a6d007f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ol/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ class Map extends BaseObject {
* Note that the index treats string and numeric identifiers as the same. So
* `map.getOverlayById(2)` will return an overlay with id `'2'` or `2`.
* @param {string|number} id Overlay identifier.
* @return {import("./Overlay.js").default} Overlay.
* @return {import("./Overlay.js").default|null} Overlay.
* @api
*/
getOverlayById(id) {
Expand Down

0 comments on commit a6d007f

Please sign in to comment.