Observations the map elements

Should i use CameraSensor to observation the map elements in a platform game or are there other methods?

What do you mean exactly by 'map elements'? You can use vector observations to give the agent coordinates/locations of platforms. https://github.com/Unity-Technologies/ml-agents/blob/master/docs/Learning-Environment-Design-Agents.md#vector-observations

Thanks, i will try it