         i++
     return
 
-  __clickTolerance: ->
-    # used when doing hit detection for Canvas layers
-    (@options.stroke ? @options.weight / 2 : 0) + (L.Browser.touch ? 10 : 0)
-
 L.Draw.Polyline.include
   __addHooks: L.Draw.Polyline.prototype.addHooks
   __removeHooks: L.Draw.Polyline.prototype.removeHooks

    pxBounds = new (L.Bounds)
    @_rings = []
    @__projectLatlngs @_latlngs, @_rings, pxBounds
    w = @__clickTolerance()
    p = new (L.Point)(w, w)
    if @getBounds().isValid() and pxBounds.isValid()
      pxBounds.min._subtract p
      pxBounds.max._add p
      @_pxBounds = pxBounds
    return

  # recursively turns latlngs into a set of rings with projected coordinates

  # @return {number} polygon centroid
   ###
  __getCenter: ->
    @__project()
    points = @_rings[0]
    len = points.length
