视角切换&小地图模糊问题解决
This commit is contained in:
1 parent
9bc3864790
commit
e4d4333357
30 files changed
+3746
-2965
No files matched your search
@@ -155,16 +155,15 @@ namespace Mapbox.Unity.Map
|
||||
public virtual void SetLayerSource(ImagerySourceType imageSource)
|
||||
{
|
||||
//if (imageSource != ImagerySourceType.Custom && imageSource != ImagerySourceType.None)
|
||||
if (imageSource != ImagerySourceType.None)
|
||||
{
|
||||
_layerProperty.sourceType = imageSource;
|
||||
_layerProperty.sourceOptions.layerSource = MapboxDefaultImagery.GetParameters(imageSource);
|
||||
_layerProperty.HasChanged = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogWarning("Invalid style - trying to set " + imageSource.ToString() + " as default style!");
|
||||
}
|
||||
//else
|
||||
//{
|
||||
// Debug.LogWarning("Invalid style - trying to set " + imageSource.ToString() + " as default style!");
|
||||
//}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -73,6 +73,14 @@
|
||||
Name = "juzetest"
|
||||
};
|
||||
break;
|
||||
case ImagerySourceType.JuzeTest:
|
||||
//throw new Exception("Invalid type : None");
|
||||
defaultStyle = new Style
|
||||
{
|
||||
Id = "mapbox://styles/juzetest/ckmkdjwsa1nvt17nr1ps4fqgs",
|
||||
Name = "juzetest"
|
||||
};
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user