new GeographicTilingScheme()
A tiling scheme for geometry referenced to a simple
GeographicProjection where
longitude and latitude are directly mapped to X and Y. This projection is commonly
known as geographic, equirectangular, equidistant cylindrical, or plate carrée.
| Name | Type | Default | Description |
|---|---|---|---|
options.ellipsoid |
Ellipsoid |
Ellipsoid.WGS84
|
optional The ellipsoid whose surface is being tiled. Defaults to the WGS84 ellipsoid. |
options.rectangle |
Rectangle |
Rectangle.MAX_VALUE
|
optional The rectangle, in radians, covered by the tiling scheme. |
options.numberOfLevelZeroTilesX |
Number |
2
|
optional The number of tiles in the X direction at level zero of the tile tree. |
options.numberOfLevelZeroTilesY |
Number |
1
|
optional The number of tiles in the Y direction at level zero of the tile tree. |
Members
-
ellipsoid :Ellipsoid
-
Gets the ellipsoid that is tiled by this tiling scheme.
-
projection :Projection
-
Gets the map projection used by this tiling scheme.
-
rectangle :Rectangle
-
Gets the rectangle, in radians, covered by this tiling scheme.
Methods
-
staticGeographicTilingScheme.WebMercatorTilingScheme#positionToTileXY(position, level, result) → Cartesian2
-
Calculates the tile x, y coordinates of the tile containing a given cartographic position.
Name Type 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:
The specified 'result', or a new object containing the tile x, y coordinates if 'result' is undefined. -
staticGeographicTilingScheme.WebMercatorTilingScheme#tileXYToRectangle(x, y, level, result) → Rectangle
-
Converts tile x, y coordinates and level to a cartographic rectangle in radians.
Name Type 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:
The specified 'result', or a new object containing the rectangle if 'result' is undefined. -
getNumberOfXTilesAtLevel(level) → Number
-
Gets the total number of tiles in the X direction at a specified level-of-detail.
Name Type Description levelNumber The level-of-detail. Returns:
The number of tiles in the X direction at the given level. -
getNumberOfYTilesAtLevel(level) → Number
-
Gets the total number of tiles in the Y direction at a specified level-of-detail.
Name Type Description levelNumber The level-of-detail. Returns:
The number of tiles in the Y direction at the given level. -
positionToTileXY(position, level, result) → Cartesian2
-
Calculates the tile x, y coordinates of the tile containing a given cartographic position.
Name Type 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:
The specified 'result', or a new object containing the tile x, y coordinates if 'result' is undefined. -
rectangleToNativeRectangle(rectangle, result) → Rectangle
-
Transforms an rectangle specified in geodetic radians to the native coordinate system of this tiling scheme.
Name Type 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:
The specified 'result', or a new object containing the native rectangle if 'result' is undefined. -
tileXYToNativeRectangle(x, y, level, result) → Rectangle
-
Converts tile x, y coordinates and level to an rectangle expressed in the native coordinates of the tiling scheme.
Name Type 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:
The specified 'result', or a new object containing the rectangle if 'result' is undefined. -
tileXYToRectangle(x, y, level, result) → Rectangle
-
Converts tile x, y coordinates and level to a cartographic rectangle in radians.
Name Type 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:
The specified 'result', or a new object containing the rectangle if 'result' is undefined.
