new createTileMapServiceImageryProvider(){UrlTemplateImageryProvider}
创建一个 UrlTemplateImageryProvider 实例,由
GDDAL2Tiles 等生成瓦片影像。
| Name | Type | Default | Description |
|---|---|---|---|
options.url |
String | '.' |
可选
服务器上影像文件的路径。 |
options.fileExtension |
String | 'png' |
可选
服务器上影像的文件扩展名。 |
options.proxy |
Object |
可选
用于请求的代理。该对象应具有一个 getURL 函数,用于返回代理 URL。 |
|
options.credit |
Credit | String | '' |
可选
数据源的版权声明,显示在画布上。 |
options.minimumLevel |
Number | 0 |
可选
影像provider支持的最小精细级别。在指定此值时,请注意最小级别的瓦片数量要少,如四个或更少。如果数量较多,可能会导致渲染问题。 |
options.maximumLevel |
Number |
可选
影像provider支持的最大细节级别,如果没有限制,则未定义。 |
|
options.rectangle |
Rectangle | Rectangle.MAX_VALUE |
可选
影像覆盖的矩形(以弧度为单位)。 |
options.tilingScheme |
TilingScheme |
可选
指定如何将椭球面分割成瓦片的切片方案。如果不提供该参数,则使用 |
|
options.ellipsoid |
Ellipsoid |
可选
椭球。如果指定了切片方案则忽略此参数,而使用切片方案的椭球。如果不指定任何参数,则使用WGS84椭球。 |
|
options.tileWidth |
Number | 256 |
可选
影像瓦片的像素宽度。 |
options.tileHeight |
Number | 256 |
可选
影像瓦片的像素高度。 |
options.flipXY |
Boolean |
可选
旧版本的 gdal2tiles.py 会在 tilemapresource.xml 中翻转 X 和 Y 值。指定此选项也会这样做,从而允许加载这些不正确的瓦片集。 |
- See:
Returns:
| Type | Description |
|---|---|
| UrlTemplateImageryProvider | 影像provider。 |
Example
var tms = SuperMap3D.createTileMapServiceImageryProvider({
url : '../images/cesium_maptiler/Cesium_Logo_Color',
fileExtension: 'png',
maximumLevel: 4,
rectangle: new SuperMap3D.Rectangle(
SuperMap3D.Math.toRadians(-120.0),
SuperMap3D.Math.toRadians(20.0),
SuperMap3D.Math.toRadians(-60.0),
SuperMap3D.Math.toRadians(40.0))
});