Map cut off on the right

I have a basic setup from some tutorials. It works with one map but the map i made in Tiled doesn’t seem to load completely. The right side is cut off for some reason and i can’t figure out why.

I’ve put my page online in the hopes that someone can look at the code and tell me why its not loading the right side of the map.

The map (20×20 tiles) and layer (29×29 tiles) dimensions are different somehow. You can use instead

const { widthInPixels, heightInPixels } = worldLayer.layer;
1 Like

Thanks, that worked.