调整样式

This commit is contained in:
suntao committed 2021-04-19 14:36:08 +08:00
1 parent 19766db051
commit f065bf4bbb
43 files changed
+2290 -3097

No files matched your search

+24 -1
View File
@@ -215,9 +215,19 @@ namespace Mapbox.Unity.Map
}
}
/// <summary>
/// 孙涛修改,增加最大缩放判断
/// </summary>
/// <param name="zoom"></param>
public void SetZoom(float zoom)
{
Options.locationOptions.zoom = zoom;
if (MaxZoom.HasValue)
{
Options.locationOptions.zoom = Mathf.Max(MaxZoom.Value, zoom);
}
else {
Options.locationOptions.zoom = zoom;
}
}
/// <summary>
@@ -1220,6 +1230,19 @@ namespace Mapbox.Unity.Map
_options.scalingOptions.HasChanged = true;
}
private float? _MaxZoom;
public float? MaxZoom
{
get
{
return _MaxZoom;
}
set
{
_MaxZoom = value;
}
}
#endregion
#region Events