Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TMX example not working #115

Open
yanickrochon opened this issue Dec 4, 2013 · 4 comments
Open

TMX example not working #115

yanickrochon opened this issue Dec 4, 2013 · 4 comments

Comments

@yanickrochon
Copy link

I have resurrected an old project to find out that my map (TMX) layer was not showing anything. Going through forums and, even the tests folder, I realized that tiled3.js does not work either. Nothing shows up. No error.

Can anyone confirm this, or is there something that I am missing? Thank you.

@tonistiigi
Copy link
Member

cc @funinvegas

@yanickrochon
Copy link
Author

LIttle precision, using the DOM renderer works. Using CANVAS does not.

@yanickrochon
Copy link
Author

I came back today and tried make the test work and wrapped the entire test inside a delayed function :

test.start = function(){
  setTimeout(function() {

      /* original test code here */

  }, 1);
}

And surely enough, it works. My guess is that some initialization takes place and code need to be delayed to work properly.

@tonistiigi
Copy link
Member

Seems to be a caching issue. It doesn't work on full reload but works on page switching for me. So probably another solution would be to preload the graphics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants