new TilingScheme
A tiling scheme for geometry or imagery on the surface of an ellipsoid. At level-of-detail zero, the coarsest, least-detailed level, the number of tiles is configurable. At level of detail one, each of the level zero tiles has four children, two in each direction. At level of detail two, each of the level one tiles has four children, two in each direction. This continues for as many levels as are present in the geometry or imagery source.
See:
Source:
Members
-
ellipsoid :Ellipsoid
-
Gets the ellipsoid that is tiled by the tiling scheme.
-
projection :Projection
-
Gets the map projection used by the tiling scheme.
-
rectangle :Rectangle
-
Gets the rectangle, in radians, covered by this tiling scheme.
Methods
-
createLevelZeroTiles
-
Creates the tile or tiles at level of detail zero, the coarsest, least detailed level.
Returns:
Array An array containing the tiles at level of detail zero, starting with the tile in the northwest corner and followed by the tile (if any) to its east. -
getNumberOfXTilesAtLevel
-
Gets the total number of tiles in the X direction at a specified level-of-detail.
Parameters:
Name Type Description levelNumber The level-of-detail. Returns:
Number The number of tiles in the X direction at the given level. -
getNumberOfYTilesAtLevel
-
Gets the total number of tiles in the Y direction at a specified level-of-detail.
Parameters:
Name Type Description levelNumber The level-of-detail. Returns:
Number The number of tiles in the Y direction at the given level. -
positionToTileXY
-
Calculates the tile x, y coordinates of the tile containing a given cartographic position.
Parameters:
Name Type Argument Description positionCartographic The position. levelNumber The tile level-of-detail. Zero is the least detailed. resultCartesian <optional>
The instance to which to copy the result, or undefined if a new instance should be created. Returns:
Cartesian2 The specified 'result', or a new object containing the tile x, y coordinates if 'result' is undefined. -
rectangleToNativeRectangle
-
Transforms an rectangle specified in geodetic radians to the native coordinate system of this tiling scheme.
Parameters:
Name Type Argument Description rectangleRectangle The rectangle to transform. resultRectangle <optional>
The instance to which to copy the result, or undefined if a new instance should be created. Returns:
Rectangle The specified 'result', or a new object containing the native rectangle if 'result' is undefined. -
tileXYToNativeRectangle
-
Converts tile x, y coordinates and level to an rectangle expressed in the native coordinates of the tiling scheme.
Parameters:
Name Type Argument Description xNumber The integer x coordinate of the tile. yNumber The integer y coordinate of the tile. levelNumber The tile level-of-detail. Zero is the least detailed. resultObject <optional>
The instance to which to copy the result, or undefined if a new instance should be created. Returns:
Rectangle The specified 'result', or a new object containing the rectangle if 'result' is undefined. -
tileXYToRectangle
-
Converts tile x, y coordinates and level to a cartographic rectangle in radians.
Parameters:
Name Type Argument Description xNumber The integer x coordinate of the tile. yNumber The integer y coordinate of the tile. levelNumber The tile level-of-detail. Zero is the least detailed. resultObject <optional>
The instance to which to copy the result, or undefined if a new instance should be created. Returns:
Rectangle The specified 'result', or a new object containing the rectangle if 'result' is undefined. -
<static> createRectangleOfLevelZeroTiles
-
Creates a rectangular set of tiles for level of detail zero, the coarsest, least detailed level.
Parameters:
Name Type Description tilingSchemeTilingScheme The tiling scheme for which the tiles are to be created. numberOfLevelZeroTilesXNumber The number of tiles in the X direction at level zero of the tile tree. numberOfLevelZeroTilesYNumber The number of tiles in the Y direction at level zero of the tile tree. Returns:
Array An array containing the tiles at level of detail zero, starting with the tile in the northwest corner and followed by the tile (if any) to its east.
