I am trying to create a LocatorPane on the Wolfram cloud, but am hitting a snag. The LocatorPane needs a couple of helper functions. When run locally, everything works fine. When I deploy it to the cloud, these helper functions are not evaluated.
Here is a toy example that shows the issue
CloudDeploy[
dog[pt_]:=Norm[pt];
DynamicModule[{pt={1,1}/2},
{LocatorPane[Dynamic[pt],Dynamic@If[Norm[pt]<1.,Graphics[{Gray,Disk[]}],Graphics[{Red,Disk[]}]]],Dynamic[pt],Dynamic[dog[pt]]}]
,Permissions->"Public"]
In addition to displaying a disk, this should also display the coordinates of the locator and evaluate the function dog. Instead, the dog function is not evaluated. Any suggestions would be appreciated.
