跳到主要内容

Class: default

Extends

  • BaseObject

Constructors

new default()

new default(
chartOptions?,
options?,
map?): default

Parameters

ParameterType
chartOptions?NoDef<Nullable<object>>
options?NoDef<Nullable<OptionsTypes>>
map?any

Returns

default

Overrides

obj.constructor

Defined in

index.ts:88

Properties

formatGeoJSON()

static formatGeoJSON: (json) => object;

decode geoJson

Parameters

ParameterTypeDescription
jsonany

Returns

object

type
type: string = 'FeatureCollection';
crs
crs: object = {};
features
features: any = _features;

Defined in

index.ts:50


bind()

static bind: (func, context, ...args) => Function;

For a given function, creates a bound function that has the same body as the original function. The this object of the bound function is associated with the specified object, and has the specified initial parameters.

bind context

Parameters

ParameterTypeDescription
funcFunction
contextany
...argsany[]

Returns

Function

Param

An object to which the this keyword can refer inside the new function.

Param

A list of arguments to be passed to the new function.

Defined in

index.ts:52


merge()

static merge: (a, b) => any;

merge

Parameters

ParameterTypeDescription
aany
bany

Returns

any

Defined in

index.ts:54


uuid()

static uuid: () => string;

Returns

string

Defined in

index.ts:56


bindAll()

static bindAll: (fns, context) => void;

bind function array

Parameters

ParameterTypeDescription
fnsstring[] | number[]
contextany

Returns

void

Defined in

index.ts:58


arrayAdd()

static arrayAdd: (array, item) => any[];

add own item

Parameters

ParameterTypeDescription
arrayany[]
itemany

Returns

any[]

Defined in

index.ts:60


removeNode()

static removeNode: (node) => null | HTMLElement;

remove node

Parameters

ParameterTypeDescription
nodeHTMLElement

Returns

null | HTMLElement

Defined in

index.ts:62


isObject()

static isObject: (value) => boolean;

判断是否为对象

Parameters

ParameterTypeDescription
valueany

Returns

boolean

Defined in

index.ts:64


$chart

$chart: any;

Defined in

index.ts:82


$container

$container: NoDef<HTMLElement>;

Defined in

index.ts:84


_map

_map: any;

Defined in

index.ts:86

Methods

appendTo()

appendTo(map, forceIgnore): void

append layer to map

Parameters

ParameterTypeDefault valueDescription
mapanyundefined
forceIgnorebooleanfalse

Returns

void

Defined in

index.ts:174


getMap()

getMap(): Map

get ol map

Returns

Map

Defined in

index.ts:182


setMap()

setMap(map, forceIgnore): void

set map

Parameters

ParameterTypeDefault valueDescription
mapanyundefined
forceIgnorebooleanfalse是否忽略instanceof检查

Returns

void

Defined in

index.ts:191


getChartOptions()

getChartOptions(): undefined | null | object

get echarts options

Returns

undefined | null | object

Defined in

index.ts:206


setChartOptions()

setChartOptions(options): default

set echarts options and redraw

Parameters

ParameterTypeDescription
optionsobject

Returns

default

Defined in

index.ts:215


appendData()

appendData(data, save): default

append data

Parameters

ParameterTypeDefault valueDescription
dataanyundefined
saveundefined | null | booleantrue

Returns

default

Defined in

index.ts:228


clear()

clear(keep?): void

clear layer

Parameters

ParameterType
keep?boolean

Returns

void

Defined in

index.ts:249


remove()

remove(): void

remove layer

Returns

void

Defined in

index.ts:261


show()

show(): void

show layer

Returns

void

Defined in

index.ts:278


hide()

hide(): void

hide layer

Returns

void

Defined in

index.ts:292


isVisible()

isVisible(): undefined | boolean

check layer is visible

Returns

undefined | boolean

Defined in

index.ts:306


showLoading()

showLoading(): void

show loading bar

Returns

void

Defined in

index.ts:313


hideLoading()

hideLoading(): void

hide loading bar

Returns

void

Defined in

index.ts:322


setZIndex()

setZIndex(zIndex): void

set zindex

Parameters

ParameterTypeDescription
zIndexstring | number

Returns

void

Defined in

index.ts:332


getZIndex()

getZIndex(): undefined | string

get zindex

Returns

undefined | string

Defined in

index.ts:344


setVisible()

setVisible(visible): void

set visible from: https://github.com/sakitam-fdd/ol3Echarts/blob/3929ad72f562661ba3511d4d9e360dee5ac793c2/ packages/ol-echarts/src/index.js author: https://github.com/ChenGuanglin0924

Parameters

ParameterTypeDescription
visibleboolean

Returns

void

Defined in

index.ts:355


render()

render(): void

render

Returns

void

Defined in

index.ts:375


redraw()

redraw(): void

redraw echarts layer

Returns

void

Defined in

index.ts:396


updateViewSize()

updateViewSize(size?): void

update container size

Parameters

ParameterTypeDescription
size?number[]

Returns

void

Defined in

index.ts:404


dispatchEvent()

dispatchEvent(event): undefined | boolean

dispatch event

Parameters

ParameterTypeDescription
eventstring | object | BaseEvent

Returns

undefined | boolean

Overrides

obj.dispatchEvent

Defined in

index.ts:988


set()

set(
key,
value,
optSilent?): void

Sets a value.

Parameters

ParameterTypeDescription
keystringKey name.
valueanyValue.
optSilent?boolean-

Returns

void

Api

Overrides

obj.set

Defined in

index.ts:992


get()

get(key): any

Gets a value.

Parameters

ParameterTypeDescription
keystringKey name.

Returns

any

Value.

Api

Overrides

obj.get

Defined in

index.ts:996


on()

on(type, listener): EventsKey

Parameters

ParameterType
typeany
listener(p0) => void

Returns

EventsKey

Overrides

obj.on

Defined in

index.ts:1001


un()

un(type, listener): void

Parameters

ParameterType
typeany
listener(p0) => void

Returns

void

Overrides

obj.un

Defined in

index.ts:1007