跳到主要内容

Class: default

Extends

  • obj

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:113

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:75


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:77


merge()

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

merge

Parameters

ParameterTypeDescription
aany
bany

Returns

any

Defined in

index.ts:79


uuid()

static uuid: () => string;

Returns

string

Defined in

index.ts:81


bindAll()

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

bind function array

Parameters

ParameterTypeDescription
fnsstring[] | number[]
contextany

Returns

void

Defined in

index.ts:83


arrayAdd()

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

add own item

Parameters

ParameterTypeDescription
arrayany[]
itemany

Returns

any[]

Defined in

index.ts:85


removeNode()

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

remove node

Parameters

ParameterTypeDescription
nodeHTMLElement

Returns

null | HTMLElement

Defined in

index.ts:87


isObject()

static isObject: (value) => boolean;

判断是否为对象

Parameters

ParameterTypeDescription
valueany

Returns

boolean

Defined in

index.ts:89


$chart

$chart: any;

Defined in

index.ts:107


$container

$container: NoDef<HTMLElement>;

Defined in

index.ts:109


_map

_map: any;

Defined in

index.ts:111

Methods

appendTo()

appendTo(map, forceIgnore): void

append layer to map

Parameters

ParameterTypeDefault valueDescription
mapanyundefined
forceIgnorebooleanfalse

Returns

void

Defined in

index.ts:199


getMap()

getMap(): any

get ol map

Returns

any

Defined in

index.ts:207


setMap()

setMap(map, forceIgnore): void

set map

Parameters

ParameterTypeDefault valueDescription
mapanyundefined
forceIgnorebooleanfalse是否忽略instanceof检查

Returns

void

Defined in

index.ts:216


getChartOptions()

getChartOptions(): undefined | null | object

get echarts options

Returns

undefined | null | object

Defined in

index.ts:231


setChartOptions()

setChartOptions(options): default

set echarts options and redraw

Parameters

ParameterTypeDescription
optionsobject

Returns

default

Defined in

index.ts:240


appendData()

appendData(data, save): default

append data

Parameters

ParameterTypeDefault valueDescription
dataanyundefined
saveundefined | null | booleantrue

Returns

default

Defined in

index.ts:253


clear()

clear(keep?): void

clear layer

Parameters

ParameterType
keep?boolean

Returns

void

Defined in

index.ts:274


remove()

remove(): void

remove layer

Returns

void

Defined in

index.ts:286


show()

show(): void

show layer

Returns

void

Defined in

index.ts:303


hide()

hide(): void

hide layer

Returns

void

Defined in

index.ts:317


isVisible()

isVisible(): undefined | boolean

check layer is visible

Returns

undefined | boolean

Defined in

index.ts:331


showLoading()

showLoading(): void

show loading bar

Returns

void

Defined in

index.ts:338


hideLoading()

hideLoading(): void

hide loading bar

Returns

void

Defined in

index.ts:347


setZIndex()

setZIndex(zIndex): void

set zindex

Parameters

ParameterTypeDescription
zIndexstring | number

Returns

void

Defined in

index.ts:357


getZIndex()

getZIndex(): undefined | string

get zindex

Returns

undefined | string

Defined in

index.ts:369


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:380


render()

render(): void

render

Returns

void

Defined in

index.ts:400


redraw()

redraw(): void

redraw echarts layer

Returns

void

Defined in

index.ts:421


updateViewSize()

updateViewSize(size): void

update container size

Parameters

ParameterTypeDescription
sizenumber[]

Returns

void

Defined in

index.ts:429


dispatchEvent()

dispatchEvent(event): void

dispatch event

Parameters

ParameterTypeDescription
eventstring | GlobalObject | Event

Returns

void

Overrides

obj.dispatchEvent

Defined in

index.ts:967


set()

set(
key,
value,
optSilent?): void

Sets a value.

Parameters

ParameterTypeDescription
keystringKey name.
valueanyValue.
optSilent?boolean-

Returns

void

Api

stable

Overrides

obj.set

Defined in

index.ts:971


get()

get(key): any

Gets a value.

Parameters

ParameterTypeDescription
keystringKey name.

Returns

any

Value.

Api

stable

Overrides

obj.get

Defined in

index.ts:975


unset()

unset(key, optSilent?): void

Unsets a property.

Parameters

ParameterTypeDescription
keystringKey name.
optSilent?boolean-

Returns

void

Api

stable

Overrides

obj.unset

Defined in

index.ts:979


on()

on(
type,
listener,
optThis?): GlobalObject | GlobalObject[]

Listen for a certain type of event.

Parameters

ParameterTypeDescription
typestring | string[]The event type or array of event types.
listenerEventsListenerFunctionTypeThe listener function.
optThis?GlobalObject-

Returns

GlobalObject | GlobalObject[]

Unique key for the listener. If called with an array of event types as the first argument, the return will be an array of keys.

Api

stable

Overrides

obj.on

Defined in

index.ts:983


un()

un(
type,
listener,
optThis?): void

Unlisten for a certain type of event.

Parameters

ParameterTypeDescription
typestring | string[]The event type or array of event types.
listenerEventsListenerFunctionTypeThe listener function.
optThis?GlobalObject-

Returns

void

Api

stable

Overrides

obj.un

Defined in

index.ts:987