You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mapbox-sdk/Unity/SourceLayers/MapboxDefaultElevation.cs

30 lines
561 B

1 year ago
namespace Mapbox.Unity.Map
{
using System;
public static class MapboxDefaultElevation
{
public static Style GetParameters(ElevationSourceType defaultElevation)
{
Style defaultStyle = new Style();
switch (defaultElevation)
{
case ElevationSourceType.MapboxTerrain:
defaultStyle = new Style
{
Id = "mapbox.terrain-rgb",
Name = "Mapbox Terrain"
};
break;
case ElevationSourceType.Custom:
throw new Exception("Invalid type : Custom");
default:
break;
}
return defaultStyle;
}
}
}