Document default margin in Overlay.panIntoView

This commit is contained in:
Edward Nash
2020-03-12 09:37:40 +01:00
parent 092a199757
commit 022caae848

View File

@@ -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
*/