fixed tileJSON method