Make loading parameters configurable

This commit is contained in:
ahocevar
2014-02-13 22:08:26 +01:00
parent 877e881a52
commit 3cc1dad2e0
2 changed files with 37 additions and 11 deletions

View File

@@ -6,6 +6,13 @@
* @todo stability experimental
*/
/**
* @typedef {Object} olx.DeviceOptions
* @property {boolean|undefined} loadTilesWhileAnimating When set to false, no tiles will be loaded while animating, which improves responsiveness on devices with slow memory. Default is `true`.
* @property {boolean|undefined} loadTilesWhileInteracting When set to false, no tiles will be loaded while interacting, which improves responsiveness on devices with slow memory. Default is `true`.
* @todo stability experimental
*/
/**
* @typedef {Object} olx.DeviceOrientationOptions
* @property {boolean|undefined} tracking Start tracking. Default is `false`.
@@ -25,6 +32,8 @@
* @typedef {Object} olx.MapOptions
* @property {ol.Collection|Array.<ol.control.Control>|undefined} controls
* Controls initially added to the map.
* @property {olx.DeviceOptions|undefined} deviceOptions
* Device options for the map.
* @property {number|undefined} pixelRatio The ratio between physical
* pixels and device-independent pixels (dips) on the device. If `undefined`
* then it gets set by using `window.devicePixelRatio`.