面参数对象。
| SuperMap. |
面参数对象。 |
| Properties | |
| highlightStyle | {Object} 面高亮样式对象,可设样式属性与 style 的可设样式属性相同。 |
| pointList | {Array} 面要素节点数组,二维数组。 |
| style | {Object} 面样式对象,可设属性如下: |
| Constructor | |
| SuperMap. |
创建一个图形面参数对象。 |
| Functions | |
| destroy | 销毁对象。 |
{Object} 面样式对象,可设属性如下:
| fill | {Boolean} 是否填充,不需要填充则设置为false,默认值为 true。此属性与 stroke 不能同时为 false,如果 fill 与 stroke 同时为 false,将按 fill 与 stroke 的默认值渲染。 |
| fillColor | {String} 十六进制填充颜色。默认值为 “#000000”。 |
| fillOpacity | {Number} 填充不透明度。取值范围[0, 1],默认值 1。 |
| stroke | {Boolean} 是否描边,不需要描边则设置为 false,默认值为 false。此属性与 fill 不能同时为 false,如果 fill 与 stroke 同时为 false,将按 fill 与 stroke 的默认值渲染。 |
| strokeColor | {String} 十六进制描边颜色。 |
| strokeWidth | {Number} 描边宽度,默认值 1。 |
| strokeOpacity | {Number} 描边的不透明度。取值范围[0, 1],默认值 1。 |
| strokeLinecap | {String} 线帽样式;strokeLinecap 有三种类型 :“butt”, “round”, “square”; 默认为”butt”。 |
| strokeLineJoin | {String} 线段连接样式;strokeLineJoin 有三种类型: “miter”, “round”, “bevel”; 默认为”miter”。 |
| strokeDashstyle | {Sting} 虚线类型; strokeDashstyle 有八种类型 :“dot”,“dash”,“dashdot”,“longdash”,“longdashdot”,“solid”, “dashed”, “dotted”; 默认值 “solid”。solid 表示实线。 |
| shadowBlur | {number} 阴影模糊度,(大于 0 有效; 默认值 0)。 |
| shadowColor | {string} 阴影颜色; 默认值 ‘#000000’。 |
| shadowOffsetX | {number} 阴影 X 方向偏移值; 默认值 0。 |
| shadowOffsetY | {number} 阴影 Y 方向偏移值; 默认值 0。 |
{Object} 面高亮样式对象,可设样式属性与 style 的可设样式属性相同。
| fill | {Boolean} 是否填充,不需要填充则设置为false,默认值为 true。此属性与 stroke 不能同时为 false,如果 fill 与 stroke 同时为 false,将按 fill 与 stroke 的默认值渲染。 |
| fillColor | {String} 十六进制填充颜色。默认值为 “#000000”。 |
| fillOpacity | {Number} 填充不透明度。取值范围[0, 1],默认值 1。 |
| stroke | {Boolean} 是否描边,不需要描边则设置为 false,默认值为 false。此属性与 fill 不能同时为 false,如果 fill 与 stroke 同时为 false,将按 fill 与 stroke 的默认值渲染。 |
| strokeColor | {String} 十六进制描边颜色。 |
| strokeWidth | {Number} 描边宽度,默认值 1。 |
| strokeOpacity | {Number} 描边的不透明度。取值范围[0, 1],默认值 1。 |
| shadowBlur | {number} 阴影模糊度,(大于 0 有效; 默认值 0)。 |
| shadowColor | {string} 阴影颜色; 默认值 ‘#000000’。 |
| shadowOffsetX | {number} 阴影 X 方向偏移值; 默认值 0。 |
| shadowOffsetY | {number} 阴影 Y 方向偏移值; 默认值 0。 |
创建一个图形面参数对象。
| pointList | {Array} 面要素节点数组,二维数组,必设参数。 |
{SuperMap.Feature.ShapeParameters.Polygon} 图形面参数对象。
销毁对象。
destroy: function()