Merge pull request #4362 from tamarmot/rotate_reset_north

Rotate control now takes optional resetNorth function.
This commit is contained in:
Tim Schaub
2015-11-11 15:54:22 -07:00
2 changed files with 17 additions and 1 deletions
+10
View File
@@ -1315,6 +1315,7 @@ olx.control.ScaleLineOptions.prototype.units;
* tipLabel: (string|undefined),
* target: (Element|undefined),
* render: (function(ol.MapEvent)|undefined),
* resetNorth: (function()|undefined),
* autoHide: (boolean|undefined)}}
* @api stable
*/
@@ -1371,6 +1372,15 @@ olx.control.RotateOptions.prototype.autoHide;
olx.control.RotateOptions.prototype.render;
/**
* Function called when the control is clicked. This will override the
* default resetNorth.
* @type {function()|undefined}
* @api
*/
olx.control.RotateOptions.prototype.resetNorth;
/**
* Target.
* @type {Element|undefined}