var params in layer definition

Lack of plugin options fixed,
Merge pull request #325 from avances123/master

var params in layer definition