Merge pull request #1726 from oterral/fix_anchororigin

Add anchorOrigin option in ol.style.Icon
This commit is contained in:
Éric Lemoine
2014-02-21 09:24:23 +01:00
3 changed files with 42 additions and 3 deletions
+1
View File
@@ -927,6 +927,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