AnsweredAssumed Answered

eDraw - Set "point"/SimpleMarkerSymbol defaults

Question asked by on May 8, 2017
Latest reply on May 10, 2017 by

I am trying to use the eDraw widget (v.2.1.2) in WAB v2.4.  Everything appears to work fine except for one thing.  I can not change the default symbol properties for the "point"/SimpleMarkerSymbol under "ADD METHODS" (line 1251).  All other changes work fine.  Below is what I have (additions in bold italics).  Does anyone know what I am doing wrong?  This same code worked in my previous version of the widget.


case "point":
var options =
(this.config.defaultSymbols && this.config.defaultSymbols.SimpleMarkerSymbol)
? this.config.defaultSymbols.SimpleMarkerSymbol
: null;
symbol = new SimpleMarkerSymbol(options);
symbol.setColor(new Color([255,0,0,1]));
symbol.setOutline(new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID,new Color([255,255,255,1])));