Make sure layer not already in the map, make sure bodid is a layer attribute