Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public partial class AddSceneLayerWithElevation : ContentPage

// URL for the scene layer.
private readonly Uri _serviceUri = new Uri(
"https://tiles.arcgis.com/tiles/P3ePLMYs2RVChkJx/arcgis/rest/services/Buildings_Portland/SceneServer");
"https://www.arcgis.com/home/item.html?id=b8fec5af7dfe4866b1b8ac2d2800f282");

public AddSceneLayerWithElevation()
{
Expand Down Expand Up @@ -54,11 +54,11 @@ private async Task Initialize()
// Load the layer.
await sceneLayer.LoadAsync();

// Get the center of the scene layer.
MapPoint center = (MapPoint)sceneLayer.FullExtent.GetCenter().Project(SpatialReferences.Wgs84);
// Create a center point in Portland, Oregon.
MapPoint center = new MapPoint(-122.670, 45.517, 175.0, SpatialReferences.Wgs84);

// Create a camera with coordinates showing layer data.
Camera camera = new Camera(center.Y, center.X, 225, 220, 80, 0);
Camera camera = new Camera(center, 215, 75, 0);

// Assign the Scene to the SceneView.
MySceneView.Scene = myScene;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Pan and zoom to explore the scene.

## About the data

This sample shows a [Portland, Oregon USA Scene](https://www.arcgis.com/home/item.html?id=2b721b9e7bef45e2b7ff78a398a33acc) hosted on ArcGIS Online.
This sample shows data from [Esri 3D Buildings](https://www.arcgis.com/home/item.html?id=b8fec5af7dfe4866b1b8ac2d2800f282) in Portland, Oregon.

## Tags

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public partial class AddSceneLayerWithElevation

// URL for the scene layer.
private readonly Uri _serviceUri = new Uri(
"https://tiles.arcgis.com/tiles/P3ePLMYs2RVChkJx/arcgis/rest/services/Buildings_Portland/SceneServer");
"https://www.arcgis.com/home/item.html?id=b8fec5af7dfe4866b1b8ac2d2800f282");

public AddSceneLayerWithElevation()
{
Expand Down Expand Up @@ -57,11 +57,11 @@ private async Task Initialize()
// Load the layer.
await sceneLayer.LoadAsync();

// Get the center of the scene layer.
MapPoint center = (MapPoint)GeometryEngine.Project(sceneLayer.FullExtent.GetCenter(), SpatialReferences.Wgs84);
// Create a center point in Portland, Oregon.
MapPoint center = new MapPoint(-122.670, 45.517, 175.0, SpatialReferences.Wgs84);

// Create a camera with coordinates showing layer data.
Camera camera = new Camera(center.Y, center.X, 225, 220, 80, 0);
Camera camera = new Camera(center, 215, 75, 0);

// Assign the Scene to the SceneView.
MySceneView.Scene = myScene;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Pan and zoom to explore the scene.

## About the data

This sample shows a [Portland, Oregon USA Scene](https://www.arcgis.com/home/item.html?id=2b721b9e7bef45e2b7ff78a398a33acc) hosted on ArcGIS Online.
This sample shows data from [Esri 3D Buildings](https://www.arcgis.com/home/item.html?id=b8fec5af7dfe4866b1b8ac2d2800f282) in Portland, Oregon.

## Tags

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public partial class AddSceneLayerWithElevation

// URL for the scene layer.
private readonly Uri _serviceUri = new Uri(
"https://tiles.arcgis.com/tiles/P3ePLMYs2RVChkJx/arcgis/rest/services/Buildings_Portland/SceneServer");
"https://www.arcgis.com/home/item.html?id=b8fec5af7dfe4866b1b8ac2d2800f282");

public AddSceneLayerWithElevation()
{
Expand Down Expand Up @@ -56,11 +56,11 @@ private async Task Initialize()
// Load the layer.
await sceneLayer.LoadAsync();

// Get the center of the scene layer.
MapPoint center = (MapPoint)sceneLayer.FullExtent.GetCenter().Project(SpatialReferences.Wgs84);
// Create a center point in Portland, Oregon.
MapPoint center = new MapPoint(-122.670, 45.517, 175.0, SpatialReferences.Wgs84);

// Create a camera with coordinates showing layer data.
Camera camera = new Camera(center.Y, center.X, 225, 220, 80, 0);
Camera camera = new Camera(center, 215, 75, 0);

// Assign the Scene to the SceneView.
MySceneView.Scene = myScene;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Pan and zoom to explore the scene.

## About the data

This sample shows a [Portland, Oregon USA Scene](https://www.arcgis.com/home/item.html?id=2b721b9e7bef45e2b7ff78a398a33acc) hosted on ArcGIS Online.
This sample shows data from [Esri 3D Buildings](https://www.arcgis.com/home/item.html?id=b8fec5af7dfe4866b1b8ac2d2800f282) in Portland, Oregon.

## Tags

Expand Down
Loading