Select to view content in your preferred language

eDraw - Set "point"/SimpleMarkerSymbol defaults

545
1
05-08-2017 12:04 PM
JasonStanton__GISP
Regular Contributor

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])));
symbol.outline.setWidth(2);
break;

0 Kudos
1 Reply
JasonStanton__GISP
Regular Contributor

I should also mention that I have tried to change this in the config file to no avail.

0 Kudos