# Class: VectorTheme

## VectorTheme()

#### new VectorTheme()

矢量专题图

Source:
  - VectorTheme.js, line 12

### Methods

#### (async, static) fromXML(strXML, onlyStyle) → {boolean}

从XML导入

##### Parameters:

Name | Type | Description
--- | --- | ---
`strXML` | String | XML字符串
`onlyStyle` | boolean | 支持仅导出样式

Source:
  - VectorTheme.js, line 143

##### Returns:

成功/失败 true/false

Type
  boolean

#### (async, static) getIsBaseTheme() → {boolean}

是否是单值或者分段专题图

Source:
  - VectorTheme.js, line 110

##### Returns:

Type
  boolean

#### (async, static) getName() → {String}

获取专题图名称

Source:
  - VectorTheme.js, line 80

##### Returns:

专题图名称

Type
  String

#### (async, static) getType() → {int}

获取专题图类型

Source:
  - VectorTheme.js, line 35

##### Returns:

专题图类型，例 1-ThemeType.SimpleTheme

Type
  int

#### (async, static) getVisible() → {boolean}

专题图可见性

Source:
  - VectorTheme.js, line 50

##### Returns:

Type
  boolean

#### (async, static) setName(name) → {int}

设置专题图名称

##### Parameters:

Name | Type | Description
--- | --- | ---
`name` | String | 专题图名称

Source:
  - VectorTheme.js, line 95

##### Returns:

1-成功 ；0-失败

Type
  int

#### (async, static) setVisible(isVisible) → {int}

设置专题图可见性

##### Parameters:

Name | Type | Description
--- | --- | ---
`isVisible` | boolean | 专题图是否可见

Source:
  - VectorTheme.js, line 65

##### Returns:

1-成功 ；0-失败

Type
  int

#### (async, static) toXML(onlyStyle) → {String}

存为XML

##### Parameters:

Name | Type | Description
--- | --- | ---
`onlyStyle` | boolean | 支持仅导出样式

Source:
  - VectorTheme.js, line 126

##### Returns:

XML字符串

Type
  String