This commit is contained in:
runette committed 2024-04-22 15:52:51 +01:00
commit e0afef912e
1285 files changed
+83219

No files matched your search

@@ -0,0 +1,29 @@
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;
}
}
}