 
       L.DomUtil.setPosition(@_container, pos)
 
+  hide: ->
+    @_container.style.visibility = 'hidden'
+
 
 ###
 #Add Configuration options

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

  __onMouseMove: (e) ->
    return unless @_markers.length > 0
    newPos = @_map.mouseEventToLayerPoint(e.originalEvent)
    mouseLatLng = @_map.layerPointToLatLng(newPos)

      perimeter: g.perimeter()
      area: g.area()

    @_tooltip.__updateTooltipMeasure center, measure, @options


  addHooks: () ->
    @__addHooks.apply this, arguments
    if L.DrawToolbar.reactiveMeasure
      @_tooltip = new L.Tooltip @_map, onTop: true
      @_map.on 'mousemove', @__onMouseMove, this
    return

  removeHooks: () ->
    if L.DrawToolbar.reactiveMeasure
      @_map.off 'mousemove'
    @__removeHooks.apply this, arguments
    return

