# MapGISTileServerImageProvider

#### new Cesium.MapGISTileServerImageProvider(options)
MapGIS/Provider/MapGISTileServerImageProvider.js 42

MapGIS瓦片服务

Name | Type | Description
--- | --- | ---
`options` | Object | 包含以下属性
Name | Type | Default | Description
--- | --- | --- | ---
`url` | String |  | 服务地址
`headers` | Object |  | optional Http Headers
`mapStyle` | String |  | optional 瓦片地图样式
`imageVersion` | String | `'0'` | optional 瓦片影像版本
`tileWidth` | Number | `256` | optional 瓦片宽度
`tileHeight` | Number | `256` | optional 瓦片高度
`minimumLevel` | Number | `0` | optional 瓦片最小级别
`maximumLevel` | Number | `20` | optional 瓦片最大级别
`colNum` | Number | `2` | optional 瓦片初始级的列数 默认为2
`rowNum` | Number | `1` | optional 瓦片初始级的列数 默认为1
`tilingScheme` | Object |  | optional 服务的平铺方案:经纬度GeographicTilingScheme,web墨卡托WebMercatorTilingScheme
`rectangle` | Object | `Rectangle.fromDegrees(-180, -90, 180, 90)` | optional 指定瓦片加载范围，默认Rectangle.fromDegrees(-180, -90, 180, 90)，`Rectangle`
`mapgisOffset` | Number | `0` | optional 瓦片错级参数，默认为0
`proxy` | String |  | optional 转发代理
`extensions` | Array |  | optional 扩展参数，需要确保服务端支持
`buildImageResource` | function |  | optional 重载buildImageResource方法，来重载瓦片的请求逻辑

##### Example:

    var otherOptions = {
           rectangle: Cesium.Rectangle.fromDegrees(109, 20, 119, 30)
       };
       var mapGisTile = viewer.scene.layers.appendImageryLayer('http://192.168.82.89:8089/igs/rest/mrms/tile/OGC_4326_CHINA', otherOptions);

### Members

#### readonly proxy : Proxy
MapGIS/Provider/MapGISTileServerImageProvider.js 152

获取代理.

### Methods

#### getTileCredits(x, y, level) → Object
MapGIS/Provider/MapGISTileServerImageProvider.js 283

Name | Type | Description
--- | --- | ---
`x` | Number |
`y` | Number |
`level` | Number |

##### Returns:

凭证对象(暂时不需要)

#### pickFeatures(imageryProvider, x, y, level, longitude, latitude) → Object
MapGIS/Provider/MapGISTileServerImageProvider.js 327

获取瓦片内要素

Name | Type | Description
--- | --- | ---
`imageryProvider` | Object |
`x` | Number |
`y` | Number |
`level` | Number |
`longitude` | Number |
`latitude` | Number |

##### Returns:

瓦片内要素的JSON对象

#### requestImage(imageryProvider, x, y, level, request) → Object
MapGIS/Provider/MapGISTileServerImageProvider.js 305

请求瓦片

Name | Type | Description
--- | --- | ---
`imageryProvider` | Object |
`x` | Number |
`y` | Number |
`level` | Number |
`request` | Object |

##### Returns:

瓦片的Resource对象