예제 #1
0
        public override void OnInitialized()
        {
            if (Options != null)
            {
                _rangeTileProviderOptions = (RangeTileProviderOptions)Options;
            }
            else
            {
                _rangeTileProviderOptions = new RangeTileProviderOptions();
            }

            _initialized = true;
        }
예제 #2
0
        //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>();
        }
예제 #3
0
        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());
            }
        }
예제 #4
0
        public override void OnInitialized()
        {
            if (Options != null)
            {
                _rangeTileProviderOptions = (RangeTileProviderOptions)Options;
            }
            else
            {
                _rangeTileProviderOptions = new RangeTileProviderOptions();
            }


            //foreach (var tile in tilesToRequest)
            //{
            //	AddTile(tile);
            //}
        }