So when I visit http://<mycomputername>.main.domainname.org:3344/webappviewer/?config=sample-configs/config-demo.jso... I get the widget working just fine. BUT... If I put the Widget INTO a Web Map using WAB then I get this...
I'm lost... it was working fine... and then it stopped. Nothing changed in the code... it just stopped.
I've added the widget in a ZIP file.
Solved! Go to Solution.
Got it!
I had to wrap the on(this.clearGraphics...) piece like so...
//Setup button click handlers
this.own(on(this.clearGraphics, "click", lang.hitch(this, function() {
if (this.map) {
this.map.graphics.clear();
}
})));
It works now.
Got it!
I had to wrap the on(this.clearGraphics...) piece like so...
//Setup button click handlers
this.own(on(this.clearGraphics, "click", lang.hitch(this, function() {
if (this.map) {
this.map.graphics.clear();
}
})));
It works now.