Class: default ¶
Hierarchy ¶
Image
↳
default
Table of contents ¶
Constructors ¶
Properties ¶
Methods ¶
- appendTo
- start
- stop
- canvasFunction
- project
- unproject
- intersectsCoordinate
- getData
- setData
- updateParams
- getParams
- setWindOptions
- getWindOptions
- setMap
- getMap
- getType
Constructors ¶
constructor ¶
• new default(data
, options?
): default
Parameters ¶
Name | Type |
---|---|
data | any |
options | Partial <IWindOptions > |
Returns ¶
Overrides ¶
ol.layer.Image.constructor
Defined in ¶
Properties ¶
viewProjection ¶
• viewProjection: ProjectionLike
Defined in ¶
pixelRatio ¶
• pixelRatio: number
Defined in ¶
Methods ¶
appendTo ¶
▸ appendTo(map
): void
append layer to map
Parameters ¶
Name | Type |
---|---|
map | Map |
Returns ¶
void
Defined in ¶
start ¶
▸ start(): void
Returns ¶
void
Defined in ¶
stop ¶
▸ stop(): void
Returns ¶
void
Defined in ¶
canvasFunction ¶
▸ canvasFunction(extent
, resolution
, pixelRatio
, size
, proj
): HTMLCanvasElement
Parameters ¶
Name | Type |
---|---|
extent | Extent |
resolution | number |
pixelRatio | number |
size | Size |
proj | Projection |
Returns ¶
HTMLCanvasElement
Defined in ¶
project ¶
▸ project(coordinate
): [number
, number
]
Parameters ¶
Name | Type |
---|---|
coordinate | [number , number ] |
Returns ¶
[number
, number
]
Defined in ¶
unproject ¶
▸ unproject(pixel
): [number
, number
]
Parameters ¶
Name | Type |
---|---|
pixel | [number , number ] |
Returns ¶
[number
, number
]
Defined in ¶
intersectsCoordinate ¶
▸ intersectsCoordinate(coordinate
): boolean
TODO: 空间判断出错,需要修复
Parameters ¶
Name | Type |
---|---|
coordinate | [number , number ] |
Returns ¶
boolean
Defined in ¶
getData ¶
▸ getData(): undefined
| Field
get wind layer data
Returns ¶
undefined
| Field
Defined in ¶
setData ¶
▸ setData(data
, options?
): default
set layer data
Parameters ¶
Name | Type |
---|---|
data | any |
options | Partial <IField > |
Returns ¶
Defined in ¶
updateParams ¶
▸ updateParams(options?
): default
Parameters ¶
Name | Type |
---|---|
options | Partial <IOptions > |
Returns ¶
Defined in ¶
getParams ¶
▸ getParams(): Partial
<IOptions
>
Returns ¶
Partial
<IOptions
>
Defined in ¶
setWindOptions ¶
▸ setWindOptions(options
): void
Parameters ¶
Name | Type |
---|---|
options | Partial <IOptions > |
Returns ¶
void
Defined in ¶
getWindOptions ¶
▸ getWindOptions(): Partial
<IOptions
>
Returns ¶
Partial
<IOptions
>
Defined in ¶
setMap ¶
▸ setMap(map
): void
set map
Parameters ¶
Name | Type |
---|---|
map | Map |
Returns ¶
void
Overrides ¶
ol.layer.Image.setMap
Defined in ¶
getMap ¶
▸ getMap(): any
get map
Returns ¶
any
Defined in ¶
getType ¶
▸ getType(): string
Returns ¶
string