# MapGISTileServerImageProvider

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

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
`mapgisOffset` | String | `0` | optional 瓦片错级参数，默认为0
`proxy` | String |  | optional 转发代理
`extensions` | Array |  | optional 扩展参数，需要确保服务端支持

##### Example:

    //如果裁瓦片的时候是按照经纬度裁剪的瓦片则只设置最大级数即可
       // var otherOptions ={
       //  maxLevel:10
       //};
      var otherOptions ={
          tileRange:Cesium.Rectangle.fromDegrees(73.4625656504558,9.7218626686719958,139.249771965239,53.5800002118608),
          colNum:3,
          rowNum:2,
          maxLevel:10,
          proxy:'/Handler.ashx'//不存在跨域可不设置
        };
      var mapGisTile = viewer.scene.layers.appendImageryLayer('http://54.222.218.173:6163/igs/rest/mrms/tile/YX_TILE',otherOptions);

### Members

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

获取代理.

### Methods

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

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

##### Returns:

凭证对象(暂时不需要)

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

获取瓦片内要素

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 297

请求瓦片

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

##### Returns:

瓦片的Resource对象