From eb9dfec2cc38f926cb06994b0d848d50c66d49e5 Mon Sep 17 00:00:00 2001 From: brnkhy Date: Sat, 24 Sep 2016 00:52:17 +0300 Subject: [PATCH] change cache file path for layer support temporary (hopefully) fix --- Assets/MapzenGo/Models/CachedDynamicTileManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/MapzenGo/Models/CachedDynamicTileManager.cs b/Assets/MapzenGo/Models/CachedDynamicTileManager.cs index d25a4d5..8bb9034 100644 --- a/Assets/MapzenGo/Models/CachedDynamicTileManager.cs +++ b/Assets/MapzenGo/Models/CachedDynamicTileManager.cs @@ -23,7 +23,8 @@ public override void Start() protected override void LoadTile(Vector2d tileTms, Tile tile) { var url = string.Format(_mapzenUrl, _mapzenLayers, Zoom, tileTms.x, tileTms.y, _mapzenFormat, _key); - var tilePath = Path.Combine(CacheFolderPath, tileTms.x + "_" + tileTms.y); + //this is temporary (hopefully), cant just keep adding stuff to filenames + var tilePath = Path.Combine(CacheFolderPath, _mapzenLayers.Replace(',', '_') + "_" + tileTms.x + "_" + tileTms.y); if (File.Exists(tilePath)) { using (var r = new StreamReader(tilePath, Encoding.Default))