get_layer_data function

Get layer data