Add documentation for PolyLine.closestLayerPoint (#5701)

This commit is contained in:
Per Liedman 2017-08-11 19:32:29 +02:00 committed by Vladimir Agafonkin
parent 5ce473bab6
commit 1491de5acd

View File

@ -84,6 +84,8 @@ export var Polyline = Path.extend({
return !this._latlngs.length;
},
// @method closestLayerPoint: Point
// Returns the point closest to `p` on the Polyline.
closestLayerPoint: function (p) {
var minDistance = Infinity,
minPoint = null,