Skip to content

Commit

Permalink
Merge pull request #8131 from chriswingler/8058-display-x-y-tiles-on-…
Browse files Browse the repository at this point in the history
…separate-lines

Display x y tiles on separate lines
  • Loading branch information
Hannah authored Sep 18, 2019
2 parents d799593 + b5ffeeb commit 7c53a24
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Change Log

##### Fixes :wrench:
* `Camera.flyTo` flies to the correct location in 2D when the destination crosses the international date line [#7909](https://github.com/AnalyticalGraphicsInc/cesium/pull/7909)
* Improved display of tile coordinates for `TileCoordinatesImageryProvider` [#8131](https://github.com/AnalyticalGraphicsInc/cesium/pull/8131)

### 1.61 - 2019-09-03

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,4 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu
* [jony89](https://github.com/jony89)
* [TJKoury](https://github.com/tjkoury)
* [Qiming Zhang](https://github.com/bbbbx)

* [Chris Wingler](https://github.com/chriswingler)
7 changes: 3 additions & 4 deletions Source/Scene/TileCoordinatesImageryProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,12 @@ define([
context.lineWidth = 2;
context.strokeRect(1, 1, 255, 255);

var label = 'L' + level + 'X' + x + 'Y' + y;
context.font = 'bold 25px Arial';
context.textAlign = 'center';
context.fillStyle = 'black';
context.fillText(label, 127, 127);
context.fillStyle = cssColor;
context.fillText(label, 124, 124);
context.fillText('L: ' + level, 124, 86);
context.fillText('X: ' + x, 124, 136);
context.fillText('Y: ' + y, 124, 186);

return canvas;
};
Expand Down

0 comments on commit 7c53a24

Please sign in to comment.