Class: createTileMapServiceImageryProvider

createTileMapServiceImageryProvider

new createTileMapServiceImageryProvider(){UrlTemplateImageryProvider}

Create an InstanceImageryProvider instance to generate tile images using GDDAL2Tiles and other tools.

Name Type Default Description
options.url String '.' optional

The path of the image file on the server.

options.fileExtension String 'png' optional

The file extension of the image on the server.

options.proxy Object optional

Proxy used for requests. The object should have a getURL function to return the proxy URL.

options.credit Credit | String '' optional

The copyright statement of the data source is displayed on the canvas.

options.minimumLevel Number 0 optional

The minimum level of detail supported by the image provider. When specifying this value, please note that the minimum number of tiles at the lowest level should be small, such as four or less. If the quantity is large, it may cause rendering issues.

options.maximumLevel Number optional

The maximum level of detail supported by the image provider is undefined if there is no limit.

options.rectangle Rectangle Rectangle.MAX_VALUE optional

The rectangle covered by the image (in radians).

options.tilingScheme TilingScheme optional

Specify the slicing scheme for dividing ellipsoidal surfaces into tiles. If this parameter is not provided, use the WebMercatorTilingScheme.

options.ellipsoid Ellipsoid optional

Ellipsoid. If a slicing scheme is specified, ignore this parameter and use the ellipsoid of the slicing scheme. If no parameters are specified, use WGS84 ellipsoid.

options.tileWidth Number 256 optional

The pixel width of the image tile.

options.tileHeight Number 256 optional

The pixel height of the image tile.

options.flipXY Boolean optional

The old version of gdal2tile.py flips the X and Y values in tilemapresource.xml. Designating this option will also do the same, allowing loading of these incorrect tile sets.

See:
Returns:
Type Description
UrlTemplateImageryProvider Image 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))
});