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,13 @@
using Mapbox.Unity.Map.Interfaces;
using Mapbox.Unity.Utilities;
namespace Mapbox.Unity.Map.Strategies
{
public class MapPlacementAtLocationCenterStrategy : IMapPlacementStrategy
{
public void SetUpPlacement(AbstractMap map)
{
map.SetCenterMercator(Conversions.LatLonToMeters(map.CenterLatitudeLongitude));
}
}
}