var params in layer definition

Lack of plugin options fixed,