多边形
Examples
var RegularShape = new SuperMap.Style.RegularShape({
pointsLength:5
radius: 15,
radius1: 8,
angle: 60,
fill: new SuperMap.Style.Fill({
color: "rgba(238, 153, 0, 0.4)"
}),
stroke: new SuperMap.Style.Stroke({
color: "#ff0000",
width: 1
})
} );
var graphic = new SuperMap.Graphic(new SuperMap.Geometry.Point(0,0));
graphic.style = { image: RegularShape}
Parameters
opt_options |
{Object} |
Object.pointsLength |
{number} 图形与外接圆的点数量 |
Object.radius |
{Number} 外接圆半径 |
Object.radius1 |
{Number} 内接圆半径 |
Object.angle |
{Number} 旋转角度 |
Object.fill |
{SuperMap.Style.Fill} |
Object.stroke |
{SuperMap.Style.Fill} |