# Class: PolylineArrow
创建箭头多段线.
# Table of contents
# Constructors
# Properties
- animateFun
- animatedPointIdx
- borderGeoJson
- geojson
- id
- lineArrowImageName
- lineGeojson
- options
- strokeImageName
- type
# Methods
- _addLayer
- _addShowDirFun
- _addStrokeImage
- _creatDirLine
- _createBorderLine
- _createLineGeojson
- _mouseenterCallbackFun
- _mouseleaveCallbackFun
- _updateLineStyle
- addDir
- addTo
- animate
- createGeojson
- getBounds
- getId
- getLength
- getOptions
- getPath
- hide
- hideDir
- init
- off
- on
- once
- remove
- removeDir
- setBorderColor
- setBorderOpacity
- setBorderWidth
- setColor
- setCursor
- setOpacity
- setOptions
- setPath
- setStrokeImage
- setWeight
- show
- showDir
# Constructors
# constructor
+ new PolylineArrow(options
: PolylineArrowOptions): PolylineArrow
# Parameters
Name | Type |
---|---|
options | PolylineArrowOptions |
Returns: PolylineArrow
# Properties
# animateFun
• animateFun: null
| Function
# animatedPointIdx
• animatedPointIdx: number
# borderGeoJson
• borderGeoJson: any
# geojson
• geojson: any
# id
• id: string
# lineArrowImageName
• lineArrowImageName: string
# lineGeojson
• lineGeojson: any
# options
• options: PolylineArrowOptions
# strokeImageName
• strokeImageName: undefined | string
# type
• type: string
# Methods
# _addLayer
▸ _addLayer(): void
Returns: void
# _addShowDirFun
▸ _addShowDirFun(): void
Returns: void
# _addStrokeImage
▸ _addStrokeImage(): void
Returns: void
# _creatDirLine
▸ _creatDirLine(): void
Returns: void
# _createBorderLine
▸ _createBorderLine(): void
Returns: void
# _createLineGeojson
▸ _createLineGeojson(): void
Returns: void
# _mouseenterCallbackFun
▸ _mouseenterCallbackFun(): void
Returns: void
# _mouseleaveCallbackFun
▸ _mouseleaveCallbackFun(): void
Returns: void
# _updateLineStyle
▸ _updateLineStyle(options
: any): void
# Parameters
Name | Type |
---|---|
options | any |
Returns: void
# addDir
▸ addDir(): void
Returns: void
# addTo
▸ addTo(map
: Map, beforeId?
: string): void
# Parameters
Name | Type |
---|---|
map | Map |
beforeId? | string |
Returns: void
# animate
▸ animate(step?
: number, fps?
: number, isLoop?
: boolean, stopCallBack?
: (status
: FrameAnimationStatus) => void, onFrameCallBack?
: (status
: FrameAnimationStatus, context
: any) => void): FrameAnimation
开启动画
# Parameters
Name | Type | Default value | Description |
---|---|---|---|
step | number | 100 | 把线段分成多少段 |
fps | number | 10 | 每一秒跑多少段 |
isLoop | boolean | false | 是否循环 |
stopCallBack? | (status : FrameAnimationStatus) => void | - | 结束回调 |
onFrameCallBack? | (status : FrameAnimationStatus, context : any) => void | - | 每一帧的回调 |
Returns: FrameAnimation
# createGeojson
▸ createGeojson(): void
Returns: void
# getBounds
▸ getBounds(): GeoBounds
Returns: GeoBounds
# getId
▸ getId(): string
Returns: string
# getLength
▸ getLength(): number
Returns: number
# getOptions
▸ getOptions(): PolylineArrowOptions
Returns: PolylineArrowOptions
# getPath
▸ getPath(): any
Returns: any
# hide
▸ hide(): void
Returns: void
# hideDir
▸ hideDir(): void
Returns: void
# init
▸ init(): void
Returns: void
# off
▸ off(type
: any, listener
: EventedListener): void
# Parameters
Name | Type |
---|---|
type | any |
listener | EventedListener |
Returns: void
# on
▸ on(type
: any, listener
: EventedListener): void
# Parameters
Name | Type |
---|---|
type | any |
listener | EventedListener |
Returns: void
# once
▸ once(type
: any, listener
: EventedListener): void
# Parameters
Name | Type |
---|---|
type | any |
listener | EventedListener |
Returns: void
# remove
▸ remove(): void
Returns: void
# removeDir
▸ removeDir(): void
Returns: void
# setBorderColor
▸ setBorderColor(value
: any): void
# Parameters
Name | Type |
---|---|
value | any |
Returns: void
# setBorderOpacity
▸ setBorderOpacity(val
: any): void
# Parameters
Name | Type |
---|---|
val | any |
Returns: void
# setBorderWidth
▸ setBorderWidth(weight
: any): void
# Parameters
Name | Type |
---|---|
weight | any |
Returns: void
# setColor
▸ setColor(color
: any): void
# Parameters
Name | Type |
---|---|
color | any |
Returns: void
# setCursor
▸ setCursor(cursor?
: string): void
# Parameters
Name | Type |
---|---|
cursor? | string |
Returns: void
# setOpacity
▸ setOpacity(val
: any): void
# Parameters
Name | Type |
---|---|
val | any |
Returns: void
# setOptions
▸ setOptions(options
: PolylineArrowOptions): void
# Parameters
Name | Type |
---|---|
options | PolylineArrowOptions |
Returns: void
# setPath
▸ setPath(val
: GeoPointLike[]): void
# Parameters
Name | Type |
---|---|
val | GeoPointLike[] |
Returns: void
# setStrokeImage
▸ setStrokeImage(strokeImage
: string): void
# Parameters
Name | Type |
---|---|
strokeImage | string |
Returns: void
# setWeight
▸ setWeight(val
: any): void
# Parameters
Name | Type |
---|---|
val | any |
Returns: void
# show
▸ show(): void
Returns: void
# showDir
▸ showDir(): void
Returns: void