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/Map/Interfaces/ITileProvider.cs

42 lines
1.1 KiB

using System;
using Mapbox.Map;
using Mapbox.Unity.Map.TileProviders;
namespace Mapbox.Unity.Map.Interfaces
{
public interface ITileProvider
{
event EventHandler<ExtentArgs> ExtentChanged;
ITileProviderOptions Options { get; }
// TODO: add cancel event?
// Alternatively, give mapvisualizer an object recycling strategy that can separately determine when to change gameobjects.
// This removal would essentially lead to a cancel request and nothing more.
void Initialize(IMap map);
// TODO: Maybe combine both these methods.
void SetOptions(ITileProviderOptions options);
// TODO: add reset/clear method?
}
public interface IUnifiedTileProvider
{
event Action<UnwrappedTileId> OnTileAdded;
event Action<UnwrappedTileId> OnTileRemoved;
// TODO: add cancel event?
// Alternatively, give mapvisualizer an object recycling strategy that can separately determine when to change gameobjects.
// This removal would essentially lead to a cancel request and nothing more.
void Initialize(IUnifiedMap map);
// TODO: add reset/clear method?
}
public class TileStateChangedEventArgs : EventArgs
{
public UnwrappedTileId TileId;
}
}