Heyho,
i just tried painting some stuff on our Maps and sadly the values "distance" and "setEnd" are always marked as undefined inside the console.
May it be a browser issue? Just tested it on latest Chrome.
Edit: The Result is the mask will never be applied and the map keeps being empty.