Add documentation for PolyLine.closestLayerPoint (#5701)
This commit is contained in:
parent
5ce473bab6
commit
1491de5acd
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user