Add intervals default to documentation

This commit is contained in:
Andreas Hocevar
2018-10-12 12:03:45 +02:00
committed by GitHub
parent 667f9a58f3
commit 8aebed1cd6

View File

@@ -107,8 +107,8 @@ const INTERVALS = [
* Note that the default's `textAlign` configuration will not work well for * Note that the default's `textAlign` configuration will not work well for
* `latLabelPosition` configurations that position labels close to the left of * `latLabelPosition` configurations that position labels close to the left of
* the viewport. * the viewport.
* @property {Array<number>} [intervals] Intervals (in degrees) for the graticule. * @property {Array<number>} [intervals=[90, 45, 30, 20, 10, 5, 2, 1, 0.5, 0.2, 0.1, 0.05, 0.01, 0.005, 0.002, 0.001]]
* Example to limit graticules to 30 and 10 degrees intervals: * Intervals (in degrees) for the graticule. Example to limit graticules to 30 and 10 degrees intervals:
* ```js * ```js
* [30, 10] * [30, 10]
* ``` * ```