# What is wrong with tiled and tilemaps? it does not render and there is no error

**URL:** <https://phaser.discourse.group/t/what-is-wrong-with-tiled-and-tilemaps-it-does-not-render-and-there-is-no-error/12814>\
**Category:** Phaser 3\
**Created:** [January 24, 2023, 3:45pm UTC](https://phaser.discourse.group/t/what-is-wrong-with-tiled-and-tilemaps-it-does-not-render-and-there-is-no-error/12814 "2023-01-24T15:45:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dude](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@Dude](https://phaser.discourse.group/u/Dude)\
**Post date:** [January 24, 2023, 3:45pm UTC](https://phaser.discourse.group/t/what-is-wrong-with-tiled-and-tilemaps-it-does-not-render-and-there-is-no-error/12814/1 "2023-01-24T15:45:36Z")

</div>

Too many hours I have spent researching what is wrong, every line of code I have checked over and over again, I have googled, I can’t find the solution.

In tiled I export the tilemap as JSON, base64 uncompressed, the tilesets embed, I check the name of the tileset, and nothing, just nothing appears, what the heck is wrong?

```javascript
//assets/plowed_soil.json
{ "compressionlevel":-1,
 "height":32,
 "infinite":false,
 "layers":[
        {
         "compression":"",
         "data":"AAAA.......stripped...",
         "encoding":"base64",
         "height":32,
         "id":1,
         "name":"ground",
         "opacity":1,
         "type":"tilelayer",
         "visible":true,
         "width":32,
         "x":0,
         "y":0
        }],
 "nextlayerid":2,
 "nextobjectid":1,
 "orientation":"orthogonal",
 "renderorder":"right-down",
 "tiledversion":"1.9.2",
 "tileheight":16,
 "tilesets":[
        {
         "columns":6,
         "firstgid":1,
         "image":"plowed_soil.png",
         "imageheight":192,
         "imagewidth":96,
         "margin":0,
         "name":"plowed_soil",
         "spacing":0,
         "tilecount":72,
         "tileheight":16,
         "tilewidth":16
        }],
 "tilewidth":16,
 "type":"map",
 "version":"1.9",
 "width":32
}

//file.ts
import { Scene } from 'phaser';
export class LoadingScene extends Scene {

    constructor() {
        super('loading-scene');
    }
    preload(): void {
        this.load.image('base_tiles', 'assets/plowed_soil.png')
        this.load.tilemapTiledJSON('map', 'assets/plowed_soil.json')
    }

    create(): void {
        console.log('Loading scene was created');

        const map = this.make.tilemap({ key: "map" })
        const tileset = map.addTilesetImage("plowed_soil", "base_tiles") 

        const layer = map.createLayer("ground", tileset)

        this.scene.start('level-1-scene');
    }
}

```

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [January 24, 2023, 3:51pm UTC](https://phaser.discourse.group/t/what-is-wrong-with-tiled-and-tilemaps-it-does-not-render-and-there-is-no-error/12814/2 "2023-01-24T15:51:46Z")

</div>

> [@Dude](#):
>
> `this.scene.start('level-1-scene');`

Remove that line.

---

<div class="post-metadata">

**Author:** ![Dude](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@Dude](https://phaser.discourse.group/u/Dude)\
**Post date:** [January 25, 2023, 1:21pm UTC](https://phaser.discourse.group/t/what-is-wrong-with-tiled-and-tilemaps-it-does-not-render-and-there-is-no-error/12814/3 "2023-01-25T13:21:19Z")

</div>

OMG!!! , thank you so much!!! , now is working!!, I’m just learning how to use the library.

I still wonder why this line was the problem?, now my scene-1 does not load, where do I call it?

//level-1 .ts

```javascript
import { Scene } from 'phaser';
export class Level1 extends Scene {
    constructor() {
        super('level-1-scene');
    }
    create(): void {
        console.log("level 1")
    }
}`
```

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [January 25, 2023, 4:33pm UTC](https://phaser.discourse.group/t/what-is-wrong-with-tiled-and-tilemaps-it-does-not-render-and-there-is-no-error/12814/4 "2023-01-25T16:33:09Z")

</div>

[start()](https://newdocs.phaser.io/docs/3.55.2/focus/Phaser.Scenes.ScenePlugin-start)

> Shutdown this Scene and run the given one.

You shutdown the scene that was showing the tilemap layer.

Make sure you added all the scenes when creating the game.
