Jump to content

How to get tile index property?


chon27
 Share

Recommended Posts

I need to get the tile index of a concrete Tile of my map. I write this:

 

console.log(map.getTile(xBlock, yBlock, layer2, true));

 

and I get:

 

post-10576-0-65496200-1412336413.jpg

 

But if I write

 

console.log(map.getTile(xBlock, yBlock, layer2, true).properties);

 

I get an empty Object.

 

If the index property exist why can't I get it? I don't find another method for this.

 

Thanks.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...