From 022caae848b315ab8d8f717c8896a3b9c486538a Mon Sep 17 00:00:00 2001 From: Edward Nash Date: Thu, 12 Mar 2020 09:37:40 +0100 Subject: [PATCH] Document default margin in Overlay.panIntoView --- src/ol/Overlay.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/Overlay.js b/src/ol/Overlay.js index 89bca14238..b682f0ff4f 100644 --- a/src/ol/Overlay.js +++ b/src/ol/Overlay.js @@ -378,7 +378,7 @@ class Overlay extends BaseObject { } /** - * Pan the map so that the overlay is entirely visisbly in the current viewport + * Pan the map so that the overlay is entirely visisble in the current viewport * (if necessary) using the configured autoPan parameters * @protected */ @@ -390,7 +390,7 @@ class Overlay extends BaseObject { * Pan the map so that the overlay is entirely visible in the current viewport * (if necessary). * @param {PanOptions|undefined} panOptions Animation options for the pan action - * @param {number|undefined} margin The margin (in pixels) between the overlay and the + * @param {number|undefined} [margin=20] The margin (in pixels) between the overlay and the * borders of the map when autopanning * @api */