JSDoc for project layer object and implement new deprecation warning function.