AnsweredAssumed Answered

jimu drawbox default point symbol

Question asked by wmakari on Jan 24, 2017
Latest reply on Jan 25, 2017 by wmakari

I am using the jimu drawbox dijit to draw points, lines or polygons on custom widget that I am developing. Is there a way of setting the symbol properties of the graphics drawn. When I select to draw a point for instance the point is blue the transparency set to 50% size is 24.

 

I would like to change some of the properties but I can't figure out how, I have tried the following

 

this.drawBox.setPointSymbol(this.config.point_symbol);

 

where point_symbol is define as

{

"color":{"r":0,"g":0,"b":128,"a":0.5},

"size":12,

"type":"simplemarkersymbol",

"style":"circle",

"outline":{

         "color":{"r":0,"g":0,"b":128,"a":1},

         "width":1,

         "type":"simplelinesymbol",

         "style":"solid"

      }

"xoffset":0,

"yoffset":0

}

 

When I set the point symbol as shown above the point is not drawn on the map. Removing the line above the point is drawn with default properties that I would like to change.

 

Regards,

Outcomes