Adding vector layers with the File API