I cannot do the usual JS referencing in allow-zoom on display-coordinates, e.g.
allow-zoom="$:view.shouldZoom"
display-coordinates then says that it encountered an error.
I cannot do the usual JS referencing in allow-zoom on display-coordinates, e.g.
allow-zoom="$:view.shouldZoom"
display-coordinates then says that it encountered an error.
thanks for reporting @cjmeyer - this sounds like a bug/regression. We will confirm and let you know when it is fixed
Hi @cjmeyer
I was able to specify allow-zoom="$:view.shouldZoom"
in my test case, but did get it to break when trying to specify the allow-dragging="$:view.shouldDrag"
.
In my case I could specify any of the following for allow-zoom:
allow-zoom="$:view.shouldZoom"
allow-zoom="$:true"
allow-zoom="$:functionThatReturnTrue()"
allow-zoom="true"
But for allow-dragging
only the hardcoded values of true or false seems to work at the moment
allow-dragging="true"
or allow-dragging="false"
I will log the bug and let you know once there is a fix