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

  # @return {number} polyline center
   ###
  __getCenter: ->
    @projectLatlngs()
    @__project()
    i = undefined
    halfDist = undefined

        i++
    return

L.Draw.Polyline.include
  __addHooks: L.Draw.Polyline.prototype.addHooks
  __removeHooks: L.Draw.Polyline.prototype.removeHooks
