Hello,
I have a question. I have a webscene with the 4326 coordinate system. With a custom elevation and basemap. See link below:
Now i want to use the custom basemap and elevation url from the webscene in my code:
public ArcGISPoint geographicCoordinates = new ArcGISPoint(24.743406, 59.433131, 0, ArcGISSpatialReference.WGS84());
public void CreateArcGISMap()
{
if (APIKey == "")
{
Debug.LogError("An API Key must be set on the SampleAPIMapCreator for content to load");
}
// Create the Map Document
// You need to create a new ArcGISMap whenever you change the map type
arcGISMap = new Esri.GameEngine.Map.ArcGISMap(arcGISMapComponent.MapType);
// Set the Basemap
//arcGISMap.Basemap = new Esri.GameEngine.Map.ArcGISBasemap(Esri.GameEngine.Map.ArcGISBasemapStyle.ArcGISImagery, APIKey);
arcGISMap.Basemap = new Esri.GameEngine.Map.ArcGISBasemap("https://tiles.arcgis.com/tiles/OPBDDktsPZ4DVPSk/arcgis/rest/services/Scene3_WGS1984_WTL1/MapServer", APIKey);
// Create the Elevation
//arcGISMap.Elevation = new Esri.GameEngine.Map.ArcGISMapElevation(new Esri.GameEngine.Elevation.ArcGISImageElevationSource("https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer", "Elevation", ""));
arcGISMap.Elevation = new Esri.GameEngine.Map.ArcGISMapElevation(new Esri.GameEngine.Elevation.ArcGISImageElevationSource("https://tiles.arcgis.com/tiles/OPBDDktsPZ4DVPSk/arcgis/rest/services/Scene3_WGS1984_WEL/ImageServer", "Elevation", ""));
But i get a empty map with no errors.
When i use this i it works.
// Set the Basemap
arcGISMap.Basemap = new Esri.GameEngine.Map.ArcGISBasemap(Esri.GameEngine.Map.ArcGISBasemapStyle.ArcGISImagery, APIKey);
//arcGISMap.Basemap = new Esri.GameEngine.Map.ArcGISBasemap("https://tiles.arcgis.com/tiles/OPBDDktsPZ4DVPSk/arcgis/rest/services/Scene3_WGS1984_WTL1/MapServer", APIKey);
// Create the Elevation
arcGISMap.Elevation = new Esri.GameEngine.Map.ArcGISMapElevation(new Esri.GameEngine.Elevation.ArcGISImageElevationSource("https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer", "Elevation", ""));
//arcGISMap.Elevation = new Esri.GameEngine.Map.ArcGISMapElevation(new Esri.GameEngine.Elevation.ArcGISImageElevationSource("https://tiles.arcgis.com/tiles/OPBDDktsPZ4DVPSk/arcgis/rest/services/Scene3_WGS1984_WEL/ImageServer", "Elevation", ""));
I think it's something with the basemap.
Can someone help me?