Skip to content

Commit

Permalink
change cache file path for layer support
Browse files Browse the repository at this point in the history
temporary (hopefully) fix
  • Loading branch information
brnkhy committed Oct 4, 2016
1 parent 5879746 commit eb9dfec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Assets/MapzenGo/Models/CachedDynamicTileManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit eb9dfec

Please sign in to comment.