Mark optional property with square brackets
This commit is contained in:
@@ -18,7 +18,7 @@ import {inherits} from '../index.js';
|
||||
* @property {string} [tipLabel='Reset rotation'] Text label to use for the rotate tip.
|
||||
* @property {number} [duration=250] Animation duration in milliseconds.
|
||||
* @property {boolean} [autoHide=true] Hide the control when rotation is 0.
|
||||
* @property {function(ol.MapEvent)|undefined} render Function called when the control should
|
||||
* @property {function(ol.MapEvent)} [render] Function called when the control should
|
||||
* be re-rendered. This is called in a `requestAnimationFrame` callback.
|
||||
* @property {function()} [resetNorth] Function called when the control is clicked.
|
||||
* This will override the default `resetNorth`.
|
||||
|
||||
Reference in New Issue
Block a user