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

Replace deprecated viewRectangle in Sandcastle examples #3145

Merged
merged 1 commit into from
Oct 29, 2015
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion Apps/Sandcastle/gallery/ArcGIS MapServer.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
}));

// Start off looking at Australia.
viewer.camera.viewRectangle(Cesium.Rectangle.fromDegrees(114.591, -45.837, 148.970, -5.730));//Sandcastle_End
viewer.camera.setView({
destination: Cesium.Rectangle.fromDegrees(114.591, -45.837, 148.970, -5.730)
});//Sandcastle_End
Sandcastle.finishedLoading();
}
if (typeof Cesium !== "undefined") {
Expand Down
4 changes: 3 additions & 1 deletion Apps/Sandcastle/gallery/Camera.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@
var north = 42.0;

var rectangle = Cesium.Rectangle.fromDegrees(west, south, east, north);
viewer.camera.viewRectangle(rectangle);
viewer.camera.setView({
destination: rectangle
});

// Show the rectangle. Not required; just for show.
viewer.entities.add({
Expand Down
4 changes: 3 additions & 1 deletion Apps/Sandcastle/gallery/Web Map Service (WMS).html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
}));

// Start off looking at Australia.
viewer.camera.viewRectangle(Cesium.Rectangle.fromDegrees(114.591, -45.837, 148.970, -5.730));//Sandcastle_End
viewer.camera.setView({
destination: Cesium.Rectangle.fromDegrees(114.591, -45.837, 148.970, -5.730)
});//Sandcastle_End
Sandcastle.finishedLoading();
}
if (typeof Cesium !== "undefined") {
Expand Down