Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display x y tiles on separate lines #8131

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -5,6 +5,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

2 changes: 1 addition & 1 deletion CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -230,4 +230,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
@@ -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;
};