Tiled Map collision check in cocos creator

I made a two-layer tiled map and one of the layers has a collision property. how can I check the collision between the player and the layer containing the collision property

It can be handled like this

  1. added object points in TieldMap, adding properties to the object points.
  2. preparing the prefabricated body in advance in cocos.
  3. reading the coordinates and type information of the object point after loading the map and creating the prefabricated body dynamically.