/// <inheritdoc /> public override void OnNext(Tile value) { if (_mapDataLibrary.Exists(value.QuadKey)) { Notify(new Tuple <Tile, string>(value, "")); return; } if (OsmTileRange.Contains(value.QuadKey.LevelOfDetail)) { _osmMapDataProvider.OnNext(value); } else { _mapzenMapDataProvider.OnNext(value); } }
/// <inheritdoc /> public IObservable <int> Add(MapDataStorageType dataStorageType, string dataPath, Stylesheet stylesheet, QuadKey quadKey) { return(_mapDataLibrary.Exists(quadKey) ? Observable.Return <int>(100) : _mapDataLibrary.Add(dataStorageType, dataPath, stylesheet, quadKey)); }
/// <inheritdoc /> public IObservable <int> AddTo(string storageKey, string dataPath, Stylesheet stylesheet, QuadKey quadKey, CancellationToken cancellationToken) { return(_mapDataLibrary.Exists(quadKey) ? Observable.Return <int>(100) : _mapDataLibrary.AddTo(storageKey, dataPath, stylesheet, quadKey, cancellationToken)); }