Class: default
Extends
obj
Constructors
new default()
new default(
chartOptions?,
options?,
map?): default
Parameters
Parameter | Type |
---|---|
chartOptions ? | NoDef <Nullable <object >> |
options ? | NoDef <Nullable <OptionsTypes >> |
map ? | any |
Returns
Overrides
obj.constructor
Defined in
Properties
formatGeoJSON()
static formatGeoJSON: (json) => object;
decode geoJson
Parameters
Parameter | Type | Description |
---|---|---|
json | any |
Returns
object
type
type: string = 'FeatureCollection';
crs
crs: object = {};
features
features: any = _features;
Defined in
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
Parameter | Type | Description |
---|---|---|
func | Function | |
context | any | |
...args | any [] |
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
merge()
static merge: (a, b) => any;
merge
Parameters
Parameter | Type | Description |
---|---|---|
a | any | |
b | any |
Returns
any
Defined in
uuid()
static uuid: () => string;
Returns
string
Defined in
bindAll()
static bindAll: (fns, context) => void;
bind function array
Parameters
Parameter | Type | Description |
---|---|---|
fns | string [] | number [] | |
context | any |
Returns
void
Defined in
arrayAdd()
static arrayAdd: (array, item) => any[];
add own item
Parameters
Parameter | Type | Description |
---|---|---|
array | any [] | |
item | any |
Returns
any
[]
Defined in
removeNode()
static removeNode: (node) => null | HTMLElement;
remove node
Parameters
Parameter | Type | Description |
---|---|---|
node | HTMLElement |
Returns
null
| HTMLElement
Defined in
isObject()
static isObject: (value) => boolean;
判断是否为对象
Parameters
Parameter | Type | Description |
---|---|---|
value | any |
Returns
boolean
Defined in
$chart
$chart: any;
Defined in
$container
$container: NoDef<HTMLElement>;
Defined in
_map
_map: any;
Defined in
Methods
appendTo()
appendTo(map, forceIgnore): void
append layer to map
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
map | any | undefined | |
forceIgnore | boolean | false |
Returns
void
Defined in
getMap()
getMap(): any
get ol map
Returns
any
Defined in
setMap()
setMap(map, forceIgnore): void
set map
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
map | any | undefined | |
forceIgnore | boolean | false | 是否忽略instanceof检查 |
Returns
void
Defined in
getChartOptions()
getChartOptions(): undefined | null | object
get echarts options
Returns
undefined
| null
| object
Defined in
setChartOptions()
setChartOptions(options): default
set echarts options and redraw
Parameters
Parameter | Type | Description |
---|---|---|
options | object |
Returns
Defined in
appendData()
appendData(data, save): default
append data
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
data | any | undefined | |
save | undefined | null | boolean | true |
Returns
Defined in
clear()
clear(keep?): void
clear layer
Parameters
Parameter | Type |
---|---|
keep ? | boolean |
Returns
void
Defined in
remove()
remove(): void
remove layer
Returns
void
Defined in
show()
show(): void
show layer
Returns
void
Defined in
hide()
hide(): void
hide layer
Returns
void
Defined in
isVisible()
isVisible(): undefined | boolean
check layer is visible
Returns
undefined
| boolean
Defined in
showLoading()
showLoading(): void
show loading bar
Returns
void
Defined in
hideLoading()
hideLoading(): void
hide loading bar
Returns
void
Defined in
setZIndex()
setZIndex(zIndex): void
set zindex
Parameters
Parameter | Type | Description |
---|---|---|
zIndex | string | number |
Returns
void
Defined in
getZIndex()
getZIndex(): undefined | string
get zindex
Returns
undefined
| string
Defined in
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
Parameter | Type | Description |
---|---|---|
visible | boolean |
Returns
void
Defined in
render()
render(): void
render
Returns
void
Defined in
redraw()
redraw(): void
redraw echarts layer
Returns
void
Defined in
updateViewSize()
updateViewSize(size): void
update container size
Parameters
Parameter | Type | Description |
---|---|---|
size | number [] |