Question about map JSON data

Sorry if this is already posted somewhere, but I'm trying to understand the "data" array in the map JSON files. I have figured out that there are 6 values associated with each tile, but I don't understand which values are in them or why. I'm seeing values like 2048, 2176, etc., in different locations in the array and I don't understand what they mean.


If there is documentation for this or if anybody can explain how this array is laid out, I would greatly appreciate it!
Take a look at the JS class that consumes the JSON files. While it's okay to think of JSON as a storage format, in the context of JavaScript, it's also an object- hence the name JSON: JavaScript Object Notation.
I recently wrote about it here


Basically, you have numTiles =  width * height


There are 6 layers, each layer with numTiles values


The array is width * height * 6


First 4 layers represent tile ID's, layer 5 is shadows, layer 6 is region.


The tile ID's are internal tile ID's that the tilemap uses to determine which bitmap to draw, and how to draw it (in the case of auto-tiles)


The format for the tile ID's is similar to what you had in VX/Ace, where 0 to 1024 are for pages B-E, and everything beyond that is for autotiles.

Original thread: https://forums.rpgmakerweb.com/threads/question-about-map-json-data.57595/