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

  # @return {number} polygon centroid
   ###
  __getCenter: ->

    @projectLatlngs()
    @__project()
    points = @_rings[0]
    len = points.length

      this._poly.on 'editdrag', @__onHandlerDrag, this


L.LatLng.prototype.toArray = ->
  [@lat, @lng]

