public override Uri GetTileByZoomLevel(int zoomLevel, long tilePositionX, long tilePositionY) { if (zoomLevel <= maxZoomLevel) { try { var u = new Uri(string.Format( "file://" + directoryPath + "\\openstreetmap.org\\" + fileName + "_{0}_{1}_{2}.png", zoomLevel, tilePositionX, tilePositionY)); return(u); } catch { notification.ShowErrorMessage("Ошибка файла"); } } return(null); }