Reintroduce $map and optional canvas refresh debug logs