Closed david-rhodes closed 7 years ago
Reference: https://github.com/mapbox/mapbox-unity-sdk/issues/45
VectorTile.cs sets an error if unable to parse the byte data:
VectorTile.cs
internal override bool ParseTileData(byte[] data) { try { var decompressed = Compression.Decompress(data); this.data = new Mapbox.VectorTile.VectorTile(decompressed); return true; } catch (Exception ex) { Debug.Log("VectorTile: " + "WTF"); SetError("VectorTile parsing failed: " + ex.ToString()); return false; } }
but the error is then overridden in Tile.cs:
Tile.cs
else if (this.ParseTileData(response.Data) == false) { this.error = "ParseError"; }
Done in #75
Reference: https://github.com/mapbox/mapbox-unity-sdk/issues/45
VectorTile.cs
sets an error if unable to parse the byte data:but the error is then overridden in
Tile.cs
: