Exemple #1
0
        /// <inheritdoc />
        public IObservable <string> Get(Tile tile)
        {
            if (OsmTileRange.Contains(tile.QuadKey.LevelOfDetail))
            {
                return(_osmMapDataProvider.Get(tile));
            }

            return(_mapzenMapDataProvider.Get(tile));
        }
Exemple #2
0
        private IObservable <string> CreateMapDataObservable(Tile tile)
        {
            if (CoreLibrary.HasData(tile.QuadKey))
            {
                return(Observable.Return(""));
            }

            if (OsmTileRange.Contains(tile.QuadKey.LevelOfDetail))
            {
                return(_osmMapDataProvider.Get(tile));
            }

            return(_mapzenMapDataProvider.Get(tile));
        }