Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gl-style-composite throws error on conflicting source layer names #4595

Merged
merged 1 commit into from Apr 18, 2017

Conversation

andrewharvey
Copy link
Collaborator

Launch Checklist

  • briefly describe the changes in this PR
  • Make gl-style-composite executable in line with the other tools.

  • A style without source compositing can have layers referencing different source-layers with the same name but from different sources. Source compositing these styles is undefined as it could create a name conflict.

Studio asks users what they want to do in this case:
selection_559

This PR causes the gl-style-composite utility to throw an error if a name conflict would occur.

I'm not sure who else is using the utility and how, but I feel throwing an error and pushing it back to the user to resolve the conflicts first is probably the better way to go...

  • write tests for all new functionality
  • document any changes to public APIs
  • post benchmark scores
  • manually test the debug page

"source": "mapbox-b"
}]
});
}, 'Conflicting source layer names', 'throws error on conflicting source layer names');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'Conflicting source layer names'/Conflicting source layer names/

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@andrewharvey andrewharvey force-pushed the gl-style-composite-conflicting-source-layers branch from 0ef0ded to b615368 Compare April 18, 2017 01:02
@andrewharvey andrewharvey merged commit c9240a1 into master Apr 18, 2017
@andrewharvey andrewharvey deleted the gl-style-composite-conflicting-source-layers branch April 18, 2017 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants