Class: TileSystem

TileSystem

A class internally used by tile layer helps to descibe tile system used by different tile services.

new TileSystem(sx, sy, ox, oy) [source]

Similar with transformation, it contains 4 numbers: sx, sy, ox, oy.
var ts = new TileSystem([1, -1, -20037508.34, 20037508.34]);
Parameter Type Description
sx Number the order of X-axis tile index, 1 means right is larger and -1 means the reverse, left is larger;
sy Number the order of Y-axis tile index, 1 means bottom is larger and -1 means the reverse, top is larger;
ox Number x of the origin point of the world's projected coordinate system
oy Number y of the origin point of the world's projected coordinate system

Members

  • (static, constant) "web-mercator"

  • The most common used tile system, used by google maps, bing maps and amap, soso maps in China.

  • (static, constant) "tms-global-mercator"

  • Predefined tile system for TMS tile system, A tile system published by OSGEO. 
    Also used by mapbox's mbtiles specification.

  • (static, constant) "tms-global-geodetic"

  • Another tile system published by OSGEO, based on EPSG:4326 SRS.

  • (static, constant) baidu

  • Tile system used by baidu

    Static Methods

  • (static) getDefault(projection) [source]

  • Get the default tile system's code for the projection.
    Parameter Type Description
    projection Object a projection object
    Returns:
    String: tile system code