esri/symbols/SimpleMarkerSymbol 点符号

AMD模块要求 ]

require ([ “esri / symbols / SimpleMarkerSymbol” ],function (SimpleMarkerSymbol ){ / * code goes here * / });   

描述

标记符号用于在图形图层上绘制点和多点。SimpleMarkerSymbol用于将点显示为简单形状,例如圆形。此外,符号可以有一个可选的轮廓,由线符号(SimpleLineSymbol)定义。

 

构造函数

 

名称简述
new SimpleMarkerSymbol()创建一个空的点符号对象(无样式)
new SimpleMarkerSymbol(style, size, outline, color)通过参数创建一个点符号对象
new SimpleMarkerSymbol(json)使用JSON创建一个点符号对象

常量

NameDescription
STYLE_CIRCLE圆符号
STYLE_CROSSThe marker is a cross.
STYLE_DIAMONDThe marker is a diamond.
STYLE_PATHThe marker is a shape defined using an SVG Path string. See also the setPath method.
STYLE_SQUAREThe marker is a square.
STYLE_XThe marker is a diagonal cross.

 

属性

名称类型简述
angleNumberThe angle of the marker.
colorColorSymbol color.
outlineSimpleLineSymbolOutline of the marker.
sizeNumberSize of the marker in pixels.
styleStringThe marker style.
typeStringThe type of symbol.
xoffsetNumberThe offset on the x-axis in pixels.
yoffsetNumberThe offset on the y-axis in pixels.

 

方法

NameReturn typeSummary
setAngle(angle)MarkerSymbolRotates the symbol clockwise around its center by the specified angle.
setColor(color)SymbolSets the symbol color.
setOffset(x, y)MarkerSymbolSets the x and y offset of a marker in screen units.
setOutline(outline)SimpleMarkerSymbolSets the outline of the marker symbol.
setPath(path)SimpleMarkerSymbolSets the marker shape to the given path string and switches the marker style to STYLE_PATH.
setSize(size)MarkerSymbolSets the size of a marker in pixels.
setStyle(style)SimpleMarkerSymbolSets the marker symbol style.
toJson()ObjectConverts object to its ArcGIS Server JSON representation.

 

构造函数详细信息

 

require([
  "esri/symbols/SimpleMarkerSymbol", ... 
], function(SimpleMarkerSymbol, ... ) {
  var sms = new SimpleMarkerSymbol();
  ...
});

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值