Skip to content
This repository was archived by the owner on Nov 25, 2019. It is now read-only.
This repository was archived by the owner on Nov 25, 2019. It is now read-only.

Remove generic "ParseError" from Tile.cs #72

@david-rhodes

Description

@david-rhodes

Reference: mapbox/mapbox-unity-sdk#45

VectorTile.cs sets an error if unable to parse the byte data:

                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:

else if (this.ParseTileData(response.Data) == false)
{
	this.error = "ParseError";
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions