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
+2 -2
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 * (if necessary) using the configured autoPan parameters
* @protected * @protected
*/ */
@@ -390,7 +390,7 @@ class Overlay extends BaseObject {
* Pan the map so that the overlay is entirely visible in the current viewport * Pan the map so that the overlay is entirely visible in the current viewport
* (if necessary). * (if necessary).
* @param {PanOptions|undefined} panOptions Animation options for the pan action * @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 * borders of the map when autopanning
* @api * @api
*/ */