In connectiq-sdk-win-7.1.1-2024-04-17-66d0159ae/CoreTopics.html#layers the sample code seems to be in error for the Options dictionary
var backgroundLayer = new WatchUi . Layer ({: x => 0 , : y => 0 , width => 240 , height => 240 }); ...
var foregroundLayer...