-
Name Type Description geometrystring | Geometry | Geometry函数 | undefined 要素属性或几何图形,或返回此样式要渲染的几何图形的函数。
fillFill | undefined 填充样式。
imageImageStyle | undefined 图像样式。
rendererRender函数 | undefined 自定义渲染器。配置后,
fill、stroke和image将被忽略,提供的函数将在每个渲染帧为每个几何图形调用。hitDetectionRendererRender函数 | undefined 命中检测的自定义渲染器。如果提供,将用于命中检测渲染。
strokeStroke | undefined 描边样式。
text文本 | undefined 文本样式。
zIndexnumber | undefined Z 索引。
Methods
-
克隆样式。
返回值:
The cloned style.
-
获取fill style.
返回值:
填充样式。
-
获取geometry to be rendered.
返回值:
要素 property or geometry or function that returns the geometry that will be rendered with this style.
-
获取function used to generate a geometry for rendering.
返回值:
函数 that is called with a feature and returns the geometry to render instead of the feature's geometry.
-
获取通过 #setHitDetectionRenderer 或 hitDetectionRenderer 构造函数选项配置的自定义渲染器函数。
返回值:
自定义渲染函数。
-
获取image style.
返回值:
Image style.
-
获取通过 #setRenderer 或 renderer 构造函数选项配置的自定义渲染器函数。
返回值:
自定义渲染函数。
-
获取stroke style.
返回值:
描边样式。
-
获取text style.
返回值:
文本样式。
-
获取z-index for the style.
返回值:
Z索引。
-
设置fill style.
Name Type Description fillFill | null 填充样式。
-
设置用于渲染的几何图形,代替要素自身的几何图形。
Name Type Description geometrystring | Geometry | Geometry函数 | null 要素属性或几何图形,或返回此样式要渲染的几何图形的函数。
-
设置此样式在命中检测中使用的自定义渲染函数。
Name Type Description rendererRender函数 | null 自定义渲染函数。
-
设置image style.
Name Type Description imageImageStyle 图像样式。
-
设置此样式的自定义渲染函数。设置后,样式的
fill、stroke和image选项将被忽略。Name Type Description rendererRender函数 | null 自定义渲染函数。
-
设置stroke style.
Name Type Description strokeStroke | null 描边样式。
-
设置text style.
Name Type Description text文本 文本样式。
-
设置 z-index。
Name Type Description zIndexnumber | undefined Z索引。