# Class: EllipseEdge

创建只有边框的椭圆或椭圆弧

# Hierarchy

# Table of contents

# Constructors

# Properties

# Methods

# Constructors

# constructor

+ new EllipseEdge(options: EllipseEdgeOptions): EllipseEdge

# Parameters
Name Type
options EllipseEdgeOptions

Returns: EllipseEdge

Overrides: Polyline

# Properties

# _map

Optional _map: Map

Inherited from: Polyline._map


# layerId

Optional layerId: string

Inherited from: Polyline.layerId


# options

options: PolylineOptions

Inherited from: Polyline.options


# sourceId

Optional sourceId: string

Inherited from: Polyline.sourceId

# Methods

# addTo

addTo(map: Map, beforeId?: string): void

# Parameters
Name Type
map Map
beforeId? string

Returns: void

Overrides: Polyline


# clickLayer

clickLayer(cb: any): any

每当单击这些图层中的要素时都会触发回调。

# Parameters
Name Type Description
cb any Callback that receives event with .features property

Returns: any

A function that removes the handler.

Inherited from: Polyline


# clickPopup

clickPopup(htmlFunc: (arg0: {}) => void, popupOptions?: PopupOptions): any

每当单击这些图层中的要素时都会显示一个弹出窗口。

example clickPopup(f => <h3>${f.properties.Name}</h3> ${f.properties.Description}, { maxWidth: 500 });

# Parameters
Name Type Description
htmlFunc (arg0: {}) => void Function that receives feature and popup, returns HTML.
popupOptions? PopupOptions Options passed to Popup() to customise popup.

Returns: any

A function that removes the handler.

Inherited from: Polyline


# getCenter

getCenter(): GeoPointLike

得到中心点。

Returns: GeoPointLike


# getData

getData(): undefined | Feature<Geometry | GeometryCollection, Properties> | FeatureCollection<Geometry | GeometryCollection, Properties> | Geometry | GeometryCollection

获取数据源的数据

Returns: undefined | Feature<Geometry | GeometryCollection, Properties> | FeatureCollection<Geometry | GeometryCollection, Properties> | Geometry | GeometryCollection

Inherited from: Polyline


# getEndAngle

getEndAngle(): number

得到结束角度。

Returns: number


# getLayerId

getLayerId(): undefined | string

获取图层ID

Returns: undefined | string

Inherited from: Polyline


# getLayerStyle

getLayerStyle(): LayerSpecification

根据样式规范,获取给定图层 ID 的图层定义。

Returns: LayerSpecification

Inherited from: Polyline


# getLineBlur

getLineBlur(): DataDrivenPropertyValueSpecification<number>

Returns: DataDrivenPropertyValueSpecification<number>

Inherited from: Polyline


# getLineCap

getLineCap(): DataDrivenPropertyValueSpecification<"butt" | "round" | "square">

Returns: DataDrivenPropertyValueSpecification<"butt" | "round" | "square">

Inherited from: Polyline


# getLineColor

getLineColor(): DataDrivenPropertyValueSpecification<string>

Returns: DataDrivenPropertyValueSpecification<string>

Inherited from: Polyline


# getLineDasharray

getLineDasharray(): DataDrivenPropertyValueSpecification<number[]>

Returns: DataDrivenPropertyValueSpecification<number[]>

Inherited from: Polyline


# getLineGapWidth

getLineGapWidth(): DataDrivenPropertyValueSpecification<number>

Returns: DataDrivenPropertyValueSpecification<number>

Inherited from: Polyline


# getLineGradient

getLineGradient(): ExpressionSpecificationEx

Returns: ExpressionSpecificationEx

Inherited from: Polyline


# getLineJoin

getLineJoin(): DataDrivenPropertyValueSpecification<"round" | "bevel" | "miter">

Returns: DataDrivenPropertyValueSpecification<"round" | "bevel" | "miter">

Inherited from: Polyline


# getLineMiterMimit

getLineMiterMimit(): PropertyValueSpecificationEx<number>

Returns: PropertyValueSpecificationEx<number>

Inherited from: Polyline


# getLineOffset

getLineOffset(): DataDrivenPropertyValueSpecification<number>

Returns: DataDrivenPropertyValueSpecification<number>

Inherited from: Polyline


# getLineOpacity

getLineOpacity(): DataDrivenPropertyValueSpecification<number>

Returns: DataDrivenPropertyValueSpecification<number>

Inherited from: Polyline


# getLinePattern

getLinePattern(): DataDrivenPropertyValueSpecification<string>

Returns: DataDrivenPropertyValueSpecification<string>

Inherited from: Polyline


# getLineRoundLimit

getLineRoundLimit(): PropertyValueSpecificationEx<number>

Returns: PropertyValueSpecificationEx<number>

Inherited from: Polyline


# getLineSortKey

getLineSortKey(): DataDrivenPropertyValueSpecification<number>

Returns: DataDrivenPropertyValueSpecification<number>

Inherited from: Polyline


# getLineTranslate

getLineTranslate(): PropertyValueSpecificationEx<[number, number]>

Returns: PropertyValueSpecificationEx<[number, number]>

Inherited from: Polyline


# getLineTranslateAnchor

getLineTranslateAnchor(): PropertyValueSpecificationEx<"map" | "viewport">

Returns: PropertyValueSpecificationEx<"map" | "viewport">

Inherited from: Polyline


# getLineWidth

getLineWidth(): DataDrivenPropertyValueSpecification<number>

Returns: DataDrivenPropertyValueSpecification<number>

Inherited from: Polyline


# getMajorAxisRadius

getMajorAxisRadius(): number

得到长轴半径。

Returns: number


# getMinorAxisRadius

getMinorAxisRadius(): number

得到短轴半径。

Returns: number


# getPoints

getPoints(): number

得到离散化的点的个数。

Returns: number


# getSourceId

getSourceId(): undefined | string

获取数据源ID

Returns: undefined | string

Inherited from: Polyline


# getStartAngle

getStartAngle(): number

得到开始角度。

Returns: number


# hide

hide(): void

使给定的图层不可见。

Returns: void

Inherited from: Polyline


# hoverFeatureState

hoverFeatureState(enterCb?: (arg0: {}) => void, leaveCb?: (arg0: {}) => void): void

每当将鼠标悬停在这些图层中的某个特征上时,更新连接源 [s] 中特征的特征状态。

# Parameters
Name Type
enterCb? (arg0: {}) => void
leaveCb? (arg0: {}) => void

Returns: void

Inherited from: Polyline


# hoverLayer

hoverLayer(cb: any): any

当鼠标悬停在这些图层中的要素上时触发回调。

# Parameters
Name Type
cb any

Returns: any

A function to remove the handler.

Inherited from: Polyline


# hoverPointer

hoverPointer(): void

每当鼠标悬停在这些图层上时,将地图的光标设置为“指针”。

Returns: void

A function to remove the handler.

Inherited from: Polyline


# hoverPopup

hoverPopup(htmlFunc: any, popupOptions?: PopupOptions): any

将鼠标悬停在这些图层中的某个要素上时,会显示一个弹出窗口。

example hoverPopup(f => <h3>${f.properties.Name}</h3> ${f.properties.Description}, { anchor: 'left' });

# Parameters
Name Type Description
htmlFunc any Function that receives feature and popup, returns HTML.
popupOptions? PopupOptions Options passed to Popup() to customise popup.

Returns: any

Inherited from: Polyline


# remove

remove(): void

Returns: void

Inherited from: Polyline


# setCenter

setCenter(value: GeoPointLike, bFocusUpdateData?: boolean): EllipseEdge

设置中心点。

# Parameters
Name Type Default value
value GeoPointLike -
bFocusUpdateData boolean true

Returns: EllipseEdge


# setData

setData(data: any): void

替换 GeoJSON 图层的当前数据。

# Parameters
Name Type
data any

Returns: void

Inherited from: Polyline


# setEndAngle

setEndAngle(value: number, bFocusUpdateData?: boolean): EllipseEdge

设置结束角度。

# Parameters
Name Type Default value
value number -
bFocusUpdateData boolean true

Returns: EllipseEdge


# setFilter

setFilter(filter: FilterSpecification): void

替换一个图层的过滤器。

example setFilter(['==','level','0']]);

# Parameters
Name Type Description
filter FilterSpecification New filter to set.

Returns: void

Inherited from: Polyline


# setLayerStyle

setLayerStyle(style: any): void

设置图层样式

# Parameters
Name Type
style any

Returns: void

Inherited from: Polyline


# setLineBlur

setLineBlur(value: DataDrivenPropertyValueSpecification<number>): EllipseEdge

# Parameters
Name Type
value DataDrivenPropertyValueSpecification<number>

Returns: EllipseEdge

Inherited from: Polyline


# setLineCap

setLineCap(value: DataDrivenPropertyValueSpecification<"butt" | "round" | "square">): EllipseEdge

# Parameters
Name Type
value DataDrivenPropertyValueSpecification<"butt" | "round" | "square">

Returns: EllipseEdge

Inherited from: Polyline


# setLineColor

setLineColor(value: DataDrivenPropertyValueSpecification<string>): EllipseEdge

# Parameters
Name Type
value DataDrivenPropertyValueSpecification<string>

Returns: EllipseEdge

Inherited from: Polyline


# setLineDasharray

setLineDasharray(value: DataDrivenPropertyValueSpecification<number[]>): EllipseEdge

# Parameters
Name Type
value DataDrivenPropertyValueSpecification<number[]>

Returns: EllipseEdge

Inherited from: Polyline


# setLineGapWidth

setLineGapWidth(value: DataDrivenPropertyValueSpecification<number>): EllipseEdge

# Parameters
Name Type
value DataDrivenPropertyValueSpecification<number>

Returns: EllipseEdge

Inherited from: Polyline


# setLineGradient

setLineGradient(value: ExpressionSpecificationEx): EllipseEdge

# Parameters
Name Type
value ExpressionSpecificationEx

Returns: EllipseEdge

Inherited from: Polyline


# setLineJoin

setLineJoin(value: DataDrivenPropertyValueSpecification<"round" | "bevel" | "miter">): EllipseEdge

# Parameters
Name Type
value DataDrivenPropertyValueSpecification<"round" | "bevel" | "miter">

Returns: EllipseEdge

Inherited from: Polyline


# setLineMiterMimit

setLineMiterMimit(value: PropertyValueSpecificationEx<number>): EllipseEdge

# Parameters
Name Type
value PropertyValueSpecificationEx<number>

Returns: EllipseEdge

Inherited from: Polyline


# setLineOffset

setLineOffset(value: DataDrivenPropertyValueSpecification<number>): EllipseEdge

# Parameters
Name Type
value DataDrivenPropertyValueSpecification<number>

Returns: EllipseEdge

Inherited from: Polyline


# setLineOpacity

setLineOpacity(value: DataDrivenPropertyValueSpecification<number>): EllipseEdge

# Parameters
Name Type
value DataDrivenPropertyValueSpecification<number>

Returns: EllipseEdge

Inherited from: Polyline


# setLinePattern

setLinePattern(value: DataDrivenPropertyValueSpecification<string>): EllipseEdge

# Parameters
Name Type
value DataDrivenPropertyValueSpecification<string>

Returns: EllipseEdge

Inherited from: Polyline


# setLineRoundLimit

setLineRoundLimit(value: PropertyValueSpecificationEx<number>): EllipseEdge

# Parameters
Name Type
value PropertyValueSpecificationEx<number>

Returns: EllipseEdge

Inherited from: Polyline


# setLineSortKey

setLineSortKey(value: DataDrivenPropertyValueSpecification<number>): EllipseEdge

# Parameters
Name Type
value DataDrivenPropertyValueSpecification<number>

Returns: EllipseEdge

Inherited from: Polyline


# setLineTranslate

setLineTranslate(value: PropertyValueSpecificationEx<[number, number]>): EllipseEdge

# Parameters
Name Type
value PropertyValueSpecificationEx<[number, number]>

Returns: EllipseEdge

Inherited from: Polyline


# setLineTranslateAnchor

setLineTranslateAnchor(value: PropertyValueSpecificationEx<"map" | "viewport">): EllipseEdge

# Parameters
Name Type
value PropertyValueSpecificationEx<"map" | "viewport">

Returns: EllipseEdge

Inherited from: Polyline


# setLineWidth

setLineWidth(value: DataDrivenPropertyValueSpecification<number>): EllipseEdge

# Parameters
Name Type
value DataDrivenPropertyValueSpecification<number>

Returns: EllipseEdge

Inherited from: Polyline


# setMajorAxisRadius

setMajorAxisRadius(value: number, bFocusUpdateData?: boolean): EllipseEdge

设置长轴半径。

# Parameters
Name Type Default value
value number -
bFocusUpdateData boolean true

Returns: EllipseEdge


# setMinorAxisRadius

setMinorAxisRadius(value: number, bFocusUpdateData?: boolean): EllipseEdge

设置短轴半径。

# Parameters
Name Type Default value
value number -
bFocusUpdateData boolean true

Returns: EllipseEdge


# setPoints

setPoints(value: number, bFocusUpdateData?: boolean): EllipseEdge

设置离散化的点的个数。

# Parameters
Name Type Default value
value number -
bFocusUpdateData boolean true

Returns: EllipseEdge


# setProperty

setProperty(prop: string | object, value?: any): void

在一个或多个图层上设置绘制或布局属性。

example setProperty('fillOpacity', 0.5)

# Parameters
Name Type
prop string | object
value? any

Returns: void

Inherited from: Polyline


# setStartAngle

setStartAngle(value: number, bFocusUpdateData?: boolean): EllipseEdge

设置开始角度。

# Parameters
Name Type Default value
value number -
bFocusUpdateData boolean true

Returns: EllipseEdge


# show

show(): void

使给定的图层可见。

Returns: void

Inherited from: Polyline


# toggle

toggle(state: boolean): boolean

根据参数使给定的图层隐藏或可见。

# Parameters
Name Type Description
state boolean True for visible, false for hidden.

Returns: boolean

Inherited from: Polyline


# updateData

updateData(): void

Returns: void

vjmap / Exports / EllipseFill