From fd151e13861dc4049e9edfd565376b785dea86fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Wed, 18 Jun 2014 13:56:27 +0200 Subject: [PATCH] Add docs for tilePixelRatio --- externs/olx.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/externs/olx.js b/externs/olx.js index 64befa666a..7efe62290f 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -2824,7 +2824,10 @@ olx.source.TileImageOptions.prototype.tileLoadFunction; /** - * Tile pixel ratio. + * The pixel ratio used by the tile service. For example, if the tile + * service advertizes 256px by 256px tiles but actually sends 512px + * by 512px images (for retina/hidpi devices) then `tilePixelRatio` + * should be set to `2`. Default is `1`. * @type {number|undefined} */ olx.source.TileImageOptions.prototype.tilePixelRatio; @@ -4262,7 +4265,10 @@ olx.source.WMTSOptions.prototype.style; /** - * Tile pixel ratio. + * The pixel ratio used by the tile service. For example, if the tile + * service advertizes 256px by 256px tiles but actually sends 512px + * by 512px images (for retina/hidpi devices) then `tilePixelRatio` + * should be set to `2`. Default is `1`. * @type {number|undefined} */ olx.source.WMTSOptions.prototype.tilePixelRatio;