Add offsetX and offsetY config options for ol.Overlay

This commit is contained in:
Bart van den Eijnden
2014-03-13 15:06:02 +01:00
parent 9f1b695747
commit 3fe3beb28a
2 changed files with 18 additions and 2 deletions

View File

@@ -74,6 +74,10 @@
* overlay is placed in the same container as that of the controls (see
* the `stopEvent` option) you will probably set `insertFirst` to `true`
* so the overlay is displayed below the controls.
* @property {number|undefined} offsetX Horizontal offset in pixels.
* A positive will shift the overlay right. Default is `0`.
* @property {number|undefined} offsetY Vertical offset in pixels.
* A positive will shift the overlay down. Default is `0`.
* @todo stability experimental
*/