Replaced spec.singleLayer with spec.canvas