Skip to content

Class: default

Hierarchy

  • Image

    default

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new default(data, options?): default

Parameters

NameType
dataany
optionsPartial<IWindOptions>

Returns

default

Overrides

ol.layer.Image.constructor

Defined in

openlayers/src/index.ts:34

Properties

viewProjection

viewProjection: ProjectionLike

Defined in

openlayers/src/index.ts:30


pixelRatio

pixelRatio: number

Defined in

openlayers/src/index.ts:31

Methods

appendTo

appendTo(map): void

append layer to map

Parameters

NameType
mapMap

Returns

void

Defined in

openlayers/src/index.ts:82


start

start(): void

Returns

void

Defined in

openlayers/src/index.ts:90


stop

stop(): void

Returns

void

Defined in

openlayers/src/index.ts:96


canvasFunction

canvasFunction(extent, resolution, pixelRatio, size, proj): HTMLCanvasElement

Parameters

NameType
extentExtent
resolutionnumber
pixelRationumber
sizeSize
projProjection

Returns

HTMLCanvasElement

Defined in

openlayers/src/index.ts:102


project

project(coordinate): [number, number]

Parameters

NameType
coordinate[number, number]

Returns

[number, number]

Defined in

openlayers/src/index.ts:165


unproject

unproject(pixel): [number, number]

Parameters

NameType
pixel[number, number]

Returns

[number, number]

Defined in

openlayers/src/index.ts:171


intersectsCoordinate

intersectsCoordinate(coordinate): boolean

TODO: 空间判断出错,需要修复

Parameters

NameType
coordinate[number, number]

Returns

boolean

Defined in

openlayers/src/index.ts:181


getData

getData(): undefined | Field

get wind layer data

Returns

undefined | Field

Defined in

openlayers/src/index.ts:208


setData

setData(data, options?): default

set layer data

Parameters

NameType
dataany
optionsPartial<IField>

Returns

default

Defined in

openlayers/src/index.ts:218


updateParams

updateParams(options?): default

Parameters

NameType
optionsPartial<IOptions>

Returns

default

Defined in

openlayers/src/index.ts:237


getParams

getParams(): Partial<IOptions>

Returns

Partial<IOptions>

Defined in

openlayers/src/index.ts:243


setWindOptions

setWindOptions(options): void

Parameters

NameType
optionsPartial<IOptions>

Returns

void

Defined in

openlayers/src/index.ts:248


getWindOptions

getWindOptions(): Partial<IOptions>

Returns

Partial<IOptions>

Defined in

openlayers/src/index.ts:260


setMap

setMap(map): void

set map

Parameters

NameType
mapMap

Returns

void

Overrides

ol.layer.Image.setMap

Defined in

openlayers/src/index.ts:280


getMap

getMap(): any

get map

Returns

any

Defined in

openlayers/src/index.ts:292


getType

getType(): string

Returns

string

Defined in

openlayers/src/index.ts:296

Released under the MIT License.