fix #27 : Layer type by variable in properties