Exemplo n.º 1
0
        public override void SetOptions(ExtentOptions extentOptions)
        {
            RangeAroundTransformTileProviderOptions options = extentOptions as RangeAroundTransformTileProviderOptions;

            if (options != null)
            {
                SetOptions(options.targetTransform, options.visibleBuffer, options.disposeBuffer);
            }
            else
            {
                Debug.LogError("ExtentOptions type mismatch : Using " + extentOptions.GetType() + " to set extent of type " + this.GetType());
            }
        }
Exemplo n.º 2
0
        public override void OnInitialized()
        {
            _rangeTileProviderOptions = (RangeAroundTransformTileProviderOptions)Options;

            if (_rangeTileProviderOptions.targetTransform == null)
            {
                Debug.LogError("TransformTileProvider: No location marker transform specified.");
                Destroy(this);
            }
            else
            {
                _initialized = true;
            }
            _cachedTile = new UnwrappedTileId();
        }
Exemplo n.º 3
0
        //private List<UnwrappedTileId> _toRemove;
        //private HashSet<UnwrappedTileId> _tilesToRequest;

        public override void OnInitialized()
        {
            _rangeTileProviderOptions = (RangeAroundTransformTileProviderOptions)Options;

            if (_rangeTileProviderOptions.targetTransform == null)
            {
                Debug.LogError("TransformTileProvider: No location marker transform specified.");
                Destroy(this);
            }
            else
            {
                _initialized = true;
            }
            _cachedTile = new UnwrappedTileId();
            //_toRemove = new List<UnwrappedTileId>(((_rangeTileProviderOptions.visibleBuffer * 2) + 1) * ((_rangeTileProviderOptions.visibleBuffer * 2) + 1));
            _currentExtent.activeTiles = new HashSet <UnwrappedTileId>();
            _map.OnInitialized        += UpdateTileExtent;
            _map.OnUpdated            += UpdateTileExtent;
        }