Add road type legend to edit mode
Fix code analysis warnings