I have found the issue :)
simply change the "tileTopositionX" and "tileTopositionY" to instead:
"PositionToTileX" and "PositionToTileY"
The number you get from that can be used to check if a tile is dirt for example. In your case just compare that value and check if it equals 36, as that is the tile index for dirt in your tilemap.