Adressed review.

Reusing transform
Changing either size of the canvas or clearing it
adding unit of hitTolerance to jsdoc
This commit is contained in:
simonseyock
2016-12-08 10:11:33 +01:00
parent 55ec0af072
commit f10ae6c474
7 changed files with 24 additions and 14 deletions

View File

@@ -212,7 +212,7 @@ ol.interaction.Translate.prototype.featuresAtPixel_ = function(pixel, map) {
/**
* Returns the Hit-detection tolerance.
* @returns {number} Hit tolerance.
* @returns {number} Hit tolerance in pixels.
* @api
*/
ol.interaction.Translate.prototype.getHitTolerance = function() {
@@ -224,7 +224,7 @@ ol.interaction.Translate.prototype.getHitTolerance = function() {
* Hit-detection tolerance. Pixels inside the radius around the given position
* will be checked for features. This only works for the canvas renderer and
* not for WebGL.
* @param {number} hitTolerance Hit tolerance.
* @param {number} hitTolerance Hit tolerance in pixels.
* @api
*/
ol.interaction.Translate.prototype.setHitTolerance = function(hitTolerance) {