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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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