arcgis for js 文字描边

var font = new Font("12pt");
font.setFamily("Arial");
font.setWeight(Font.WEIGHT_BOLD);
font.setDecoration("none");
font.setStyle(Font.STYLE_NORMAL);

 

var symbol = new TextSymbol(this.textInput.value);
symbol.setAlign(TextSymbol.ALIGN_MIDDLE);
symbol.setColor(new Color("#2A506F"));
symbol.setFont(font);
symbol.setText("你好。");
symbol.setHaloColor(new Color([255, 255, 255, 1]));  //
symbol.setHaloSize(1);  //
symbol.setAngle(angle);

  

posted @ 2019-08-28 16:32  zhh  阅读(946)  评论(0编辑  收藏  举报