First, Thanks for the great widget.
I am using sample viewer 2.2, it has been heavily modified, so I hesitated to change to viewer 2.3.
But I still need this TOCWidget.
I just added it to my project, compile error is "access of undefined property GeometryServiceSingleton".
So I removed the following:
import com.esri.ags.tasks.GeometryServiceSingleton;
if (GeometryServiceSingleton.instance.url)
// using GeometryServiceSingleton
{
geometryService.url = GeometryServiceSingleton.instance.url;
geometryService.token = GeometryServiceSingleton.instance.token;
geometryService.proxyURL = GeometryServiceSingleton.instance.proxyURL;
}
Then it compiles and works.
1. So my first question is: what is the purpose of the geometry service here? I searched online and do not find much helpful information.
2. The 2nd question: when I click on the TOC icon from the top of the screen(I already made TOC pre-open), it opened another TOC window, and then mouse changes to spinning wheel, even when I close the two TOC windows. The mouse will stay as spinning wheel, but everything is functioning.
Robert, Can you or anyone help with this? Thank you very much.