use function load_layer() from the shiny interface
Created by: famuvie
Currently, server.R
takes care of recognising and loading file types.
However it is outdated (network data is not accepted).
It is better to delegate that functionality to the function load_layer()
which takes care of all the details.