code: function isPathLayer(layer) {
  	var method = layer._method;
  	return (method === $.fn.drawLine || method === $.fn.drawQuadratic || method === $.fn.drawBezier);
  }
docs: Determines if the given layer is a rectangular layer