creates a function (_update_projectlayers) that can be reused in the code
modifies the code in the gtfs_importer _executeimport function to delete and update the layers in the project if a GTFS is imported.
This modification was done because when importing a GTFS to a project, and immediately trying to explore it using Explore Transit, an error regarding the existence of stops, routes, and pattern layers was displayed. This way we remove the error, and make the user experience a little better by updating the Geo layers tab, which would only be updated the next time we opened the project.
This PR:
This modification was done because when importing a GTFS to a project, and immediately trying to explore it using Explore Transit, an error regarding the existence of stops, routes, and pattern layers was displayed. This way we remove the error, and make the user experience a little better by updating the Geo layers tab, which would only be updated the next time we opened the project.