ReferenceError: Error #1069: Property textFormat not found on lu.etat.pch.gis.widgets.pchPrintWidget.json.AgsJsonSimpleFillSymbol and there is no default value. at lu.etat.pch.gis.widgets.pchPrintWidget::PchJSONUtils$/encodeGraphic() at lu.etat.pch.gis.widgets.pchPrintWidget.utils::MapUtils$/getPrintLayers() at lu.etat.pch.gis.widgets.pchPrintWidget::PchPrintWidget/calculateWebMapJson() at lu.etat.pch.gis.widgets.pchPrintWidget::PchPrintWidget/btnPrint2_printSelectExtent() at lu.etat.pch.gis.widgets.pchPrintWidget::PchPrintWidget/__btnPrint2_click()
Solved! Go to Solution.
if("textFormat" in graObj.symbol) { if("color" in graObj.symbol.textFormat) { graObj.symbol.color = graObj.symbol.textFormat.color; graObj.symbol.textFormat.color = null; graObj.symbol.borderLineColor = null; } }if(graObj.symbol.textFormat && graObj.symbol.textFormat.color) {
if(graObj.symbol.textFormat) {
if(graObj.symbol.textFormat.color) {
graObj.symbol.color = graObj.symbol.textFormat.color;
graObj.symbol.textFormat.color = null;
graObj.symbol.borderLineColor = null;
}
}
if (graphic.symbol) {
graObj.symbol = encodeSymbol(graphic.symbol);
if(graObj.symbol.textFormat != null) {
if(graObj.symbol.textFormat.color) {
graObj.symbol.color = graObj.symbol.textFormat.color;
graObj.symbol.textFormat.color = null;
graObj.symbol.borderLineColor = null;
}
} if (graphic.symbol) {
graObj.symbol = encodeSymbol(graphic.symbol);
if(graObj.symbol.textFormat) {
if(graObj.symbol.textFormat.color) {
graObj.symbol.color = graObj.symbol.textFormat.color;
graObj.symbol.textFormat.color = null;
graObj.symbol.borderLineColor = null;
}
}warning: unable to bind to property 'style' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'style' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'style' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'style' on class 'Object' (class is not an IEventDispatcher)
if("textFormat" in graObj.symbol) { if("color" in graObj.symbol.textFormat) { graObj.symbol.color = graObj.symbol.textFormat.color; graObj.symbol.textFormat.color = null; graObj.symbol.borderLineColor = null; } }