public override void OnInitialized() { if (Options != null) { _rangeTileProviderOptions = (RangeTileProviderOptions)Options; } else { _rangeTileProviderOptions = new RangeTileProviderOptions(); } _initialized = true; }
//private List<UnwrappedTileId> _toRemove; //private HashSet<UnwrappedTileId> _tilesToRequest; public override void OnInitialized() { if (Options != null) { _rangeTileProviderOptions = (RangeTileProviderOptions)Options; } else { _rangeTileProviderOptions = new RangeTileProviderOptions(); } _initialized = true; //_toRemove = new List<UnwrappedTileId>((_rangeTileProviderOptions.east + _rangeTileProviderOptions.west) * (_rangeTileProviderOptions.north + _rangeTileProviderOptions.south)); _currentExtent.activeTiles = new HashSet <UnwrappedTileId>(); }
public override void SetOptions(ExtentOptions extentOptions) { RangeTileProviderOptions options = extentOptions as RangeTileProviderOptions; if (options != null) { west = options.west; north = options.north; east = options.east; south = options.south; } else { Debug.LogError("ExtentOptions type mismatch : Using " + extentOptions.GetType() + " to set extent of type " + this.GetType()); } }
public override void OnInitialized() { if (Options != null) { _rangeTileProviderOptions = (RangeTileProviderOptions)Options; } else { _rangeTileProviderOptions = new RangeTileProviderOptions(); } //foreach (var tile in tilesToRequest) //{ // AddTile(tile); //} }