Add anchorOrigin option in ol.style.Icon

This commit is contained in:
oterral
2014-02-19 11:48:21 +01:00
parent a734c8a6ff
commit 0a6390fb21
3 changed files with 42 additions and 3 deletions

View File

@@ -947,6 +947,7 @@
* @typedef {Object} olx.style.IconOptions
* @property {Array.<number>|undefined} anchor Anchor. Default value is `[0.5, 0.5]`
* (icon center).
* @property {ol.style.IconAnchorOrigin|undefined} anchorOrigin Origin of the anchor: `bottom-left`, `bottom-right`, `top-left` or `top-right`. Default is `top-left`.
* @property {ol.style.IconAnchorUnits|undefined} anchorXUnits Units in which the anchor x value is specified.
* A value of `'fraction'` indicates the x value is a fraction of the icon.
* A value of `'pixels'` indicates the x value in pixels. Default is