Skip to content

Commit

Permalink
bugfix, invalid size of terrarium tiles
Browse files Browse the repository at this point in the history
256px terrarium tiles are only available if you use the public S3 dataset.
NextZen's service uses tileZen's Zaloa (https://github.com/tilezen/zaloa) to generate 512px, 260px, and 516px tiles from 256px sources, which contain overlapping data from neighboring tiles.
  • Loading branch information
96fps committed Mar 12, 2018
1 parent dd3db54 commit c6cc7f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vectiler.cpp
Expand Up @@ -758,7 +758,7 @@ inline std::string vectorTileURL(const Tile& tile, const std::string& apiKey) {
}

inline std::string terrainURL(const Tile& tile, const std::string& apiKey) {
return "https://tile.nextzen.org/tilezen/terrain/v1/256/terrarium/"
return "https://tile.nextzen.org/tilezen/terrain/v1/260/terrarium/"
+ std::to_string(tile.z) + "/"
+ std::to_string(tile.x) + "/"
+ std::to_string(tile.y) + ".png?api_key=" + apiKey;
Expand Down

0 comments on commit c6cc7f5

Please sign in to comment.