MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / getIconAnchor

Method getIconAnchor

src/openlayers/core/StyleUtils.js:705–707  ·  view source on GitHub ↗

* @function StyleUtils.getIconAnchor * @description 获取图标的锚点 * @param {number} offsetX - X方向偏移分数 * @param {number} offsetY - Y方向偏移分数 * @returns {Array. }

(offsetX=0.5, offsetY=0.5)

Source from the content-addressed store, hash-verified

703 * @returns {Array.<number>}
704 */
705 static getIconAnchor(offsetX=0.5, offsetY=0.5) {
706 return [offsetX, offsetY];
707 }
708 /**
709 * @function StyleUtils.getCircleDisplacement
710 * @description 获取圆圈的偏移

Callers 2

getSVGStyleMethod · 0.95
getImageStyleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected