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

    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

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


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

