# Class: VectorMapServer

## VectorMapServer()

#### new VectorMapServer()

矢量地图服务

Source:
  - VectorMapServer.js, line 12

### Methods

#### (async, static) createObj() → {Promise.<VectorMapServer>}

创建一个新的VectorMapServer对象

Source:
  - VectorMapServer.js, line 35

##### Returns:

Type
  Promise.<VectorMapServer>

#### (async, static) freeVectorImage(buf) → {int}

释放矢量图像数据

##### Parameters:

Name | Type | Description
--- | --- | ---
`buf` | Array | 矢量图像数据

Source:
  - VectorMapServer.js, line 145

##### Returns:

1-成功 ；0-失败

Type
  int

#### (async, static) getCRS(index) → {String}

获取索引对应的动态参照系名称

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` | int | 参照系索引

Source:
  - VectorMapServer.js, line 68

##### Returns:

参照系名称

Type
  String

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

获取动态参照系个数

Source:
  - VectorMapServer.js, line 52

##### Returns:

照系个数

Type
  int

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

获取当前动态参照系名称

Source:
  - VectorMapServer.js, line 99

##### Returns:

参照系名称

Type
  String

#### (async, static) getVectorImage() → {Array}

获取矢量图像

Source:
  - VectorMapServer.js, line 114

##### Returns:

矢量图像数据 (int类型的Array)

Type
  Array

#### (async, static) setCurrentCRS(strCRS) → {int}

设置当前动态参照系名称

##### Parameters:

Name | Type | Description
--- | --- | ---
`strCRS` | String | 参照系名称

Source:
  - VectorMapServer.js, line 84

##### Returns:

1-成功 ；0-失败

Type
  int