diff --git a/CHANGES.md b/CHANGES.md index ec09cf6489a5..87724d121520 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,11 @@ Change Log ========== +### 1.13 - 2015-09-01 + +* Breaking changes +* Added `reverseZ` tag to `UrlTemplateImageryProvider`. + ### 1.12 - 2015-08-03 * Breaking changes diff --git a/Source/Scene/UrlTemplateImageryProvider.js b/Source/Scene/UrlTemplateImageryProvider.js index 266f33a48154..7755ecaadc28 100644 --- a/Source/Scene/UrlTemplateImageryProvider.js +++ b/Source/Scene/UrlTemplateImageryProvider.js @@ -62,6 +62,7 @@ define([ *
  • {s}: One of the available subdomains, used to overcome browser limits on the number of simultaneous requests per host.
  • *
  • {reverseX}: The tile X coordinate in the tiling scheme, where 0 is the Easternmost tile.
  • *
  • {reverseY}: The tile Y coordinate in the tiling scheme, where 0 is the Southernmost tile.
  • + *
  • {reverseZ}: The level of the tile in the tiling scheme. Level zero is the maximum level of the quadtree pyramid. In order to use reverseZ, maximumLevel must be defined
  • *
  • {westDegrees}: The Western edge of the tile in geodetic degrees.
  • *
  • {southDegrees}: The Southern edge of the tile in geodetic degrees.
  • *
  • {eastDegrees}: The Eastern edge of the tile in geodetic degrees.
  • @@ -201,6 +202,7 @@ define([ *
  • {s}: One of the available subdomains, used to overcome browser limits on the number of simultaneous requests per host.
  • *
  • {reverseX}: The tile X coordinate in the tiling scheme, where 0 is the Easternmost tile.
  • *
  • {reverseY}: The tile Y coordinate in the tiling scheme, where 0 is the Southernmost tile.
  • + *
  • {reverseZ}: The level of the tile in the tiling scheme. Level zero is the maximum level of the quadtree pyramid. In order to use reverseZ, maximumLevel must be defined
  • *
  • {westDegrees}: The Western edge of the tile in geodetic degrees.
  • *
  • {southDegrees}: The Southern edge of the tile in geodetic degrees.
  • *
  • {eastDegrees}: The Eastern edge of the tile in geodetic degrees.
  • @@ -598,6 +600,11 @@ define([ return imageryProvider.tilingScheme.getNumberOfYTilesAtLevel(level) - y - 1; } + function reverseZTag(imageryProvider, x, y, level) { + var maximumLevel=imageryProvider.maximumLevel; + return (defined(maximumLevel) && level