Add docs for tilePixelRatio

This commit is contained in:
Éric Lemoine
2014-06-18 13:56:27 +02:00
parent 16c9d9bf09
commit fd151e1386

View File

@@ -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;