# My displayed Tiled map is rendered with different tile indexes than in the editor in Slick2D. Why?

The first picture is what I have in the editor and the second one is what I got when I rendered my map.

@Override
public void init(GameContainer container) throws SlickException {
this.container = container;
this.map = new TiledMap("/src/main/resources/map/test2.tmx");
}

@Override
public void render(GameContainer container, Graphics g) throws SlickException {
this.map.render(0, 0);
}


I would expect the two to be the same, but they're not. Why is that?

Edit : I solved the problem by removing the margin when I imported my tilset

• When you solved the problem yourself, please post an own answer. That way you prevent the Community bot from annoying us by bumping the question up again and again because it doesn't consider it answered yet. – Philipp Jun 6 '16 at 22:48