From 7593a18a19fb8550e44d86ff62a13134a75cebe0 Mon Sep 17 00:00:00 2001 From: tsauerwein Date: Thu, 13 Nov 2014 10:53:03 +0100 Subject: [PATCH] Add atlas manager to RegularShapeOptions --- externs/olx.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/externs/olx.js b/externs/olx.js index 71ce57daa2..9697bb9332 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -5627,7 +5627,8 @@ olx.style.IconOptions.prototype.src; * radius2: number, * angle: number, * snapToPixel: (boolean|undefined), - * stroke: (ol.style.Stroke|undefined)}} + * stroke: (ol.style.Stroke|undefined), + * atlasManager: (ol.style.AtlasManager|undefined)}} * @api */ olx.style.RegularShapeOptions; @@ -5700,6 +5701,16 @@ olx.style.RegularShapeOptions.prototype.snapToPixel; olx.style.RegularShapeOptions.prototype.stroke; +/** + * The atlas manager to use for this symbol. When using WebGL it is + * recommended to use an atlas manager to avoid texture switching. + * If an atlas manager is given, the symbol is added to an atlas. + * By default no atlas manager is used. + * @type {ol.style.AtlasManager|undefined} + */ +olx.style.RegularShapeOptions.prototype.atlasManager; + + /** * @typedef {{color: (ol.Color|string|undefined), * lineCap: (string|undefined),