Hi all, I'm working outside the portal for arcgis with local layers in a intranet.
When I run the Draw Widget I get an error:
and it seems like with this widget it is required to contact the Portal to _fetchSymbolTypes.
Is it possible to load the point symbols list without the portal?
I report the error, as you can see no symbol is loaded:
Thanks in advance,
Naty
Natty,
In the apps jimu.js\dijit\SymbolChooser.js have this change to the _requestPointSymJson function:
_requestPointSymJson:function(fileName){
var defName = 'def' + fileName;
var def = this.pointSymClassSelect[defName];
if (def) {
return;
}
this.loadingShelter.show();
if(!this._isOnline && window.isXT){
this._offLineGetSymbols(fileName);
return;
}
if(!this._symbolTypes){
// fetch symbol types from portal
// this._initPortal()
// .then(lang.hitch(this, this._fetchSymbolTypes))
// .then(lang.hitch(this, function(types){
// if(!this.domNode){
// return;
// }
// // create options
// this._clearOptions();
// this._createOptions(types);
// // fetch symbols from portal
// this._handleGetPointSymbols(lang.hitch(this, this._getPortalSymbolsByType), fileName);
// }), lang.hitch(this, function(err){
if(!this.domNode){
return;
}
if(window.isXT){
this._offLineGetSymbols(fileName);
}else{
this.loadingShelter.hide();
console.error('Fetching symbols failed', err);
}
// }));
}else{
// fetch symbols from portal
this._handleGetPointSymbols(lang.hitch(this, this._getPortalSymbolsByType), fileName);
}
},
Hi Robert, I modified the function as you suggested.
But when I run the widget I'm getting the following error... the fileName...is an empty string....
Thanks,
Naty
Naty,
Sorry I do not use WAB in a disconnected environment so I can not replicate you situation.