-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add data driven styling for circle-color and circle-radius #1932
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
3c87cb3
Upgrade mapbox-gl-function and mapbox-gl-style-spec
68f7da0
Change argument signature of calculate
c991e8f
Attribute-ify circle shaders
7d3725c
Support array attributes and attribute multipliers in Bucket
479d9e6
Set circle color in the buffer
6ceed1f
Allow attributes to be disabled
1718b3d
Decouple buffer attribute names from shader attribute names
c559352
Get rid of ElementGroup class
d4e6842
Add buffer offsets to element groups
14d0cd7
Use Bucket#bindBuffers instead of Buffer#bind in draw methods
64d20ae
Create StyleLayer instances for all child layers
009a697
Support ref families
48d7f13
Use a layers object instead of an array in WorkerTile
f2058f0
Make bucket-side style construction faster
4eaacdf
Remove posMatrix and exMatrix arguments from Painter#useProgram
73e5320
Allow token replacement in shaders
db2be07
Use shader source rewriting to disable attributes
dced254
Update buffers when data-driven paint property changes
ae06df3
Optimize layer family creation
3268906
Add circle-color property function tests to test-suite
9101b5f
Add unit tests for dds functionality
4477398
use glsl macros instead of custom templating
ansis 7c5369c
Fix StyleDeclaration#isFeatureConstant
9ae3e92
Enabled data-driven styling for circle-radius
41f6561
disable attributes based on their paint property
ansis 5a08b97
replace .isLayerConstant with .paintProperty
ansis 1f5afa7
separate u_opacity from u_color
ansis d4208bf
use function instead of string of code for getValue
ansis bba8b99
define vertex add methods as regular functions
ansis 816bf29
remove elementAddMethod abstraction
ansis 0b17310
split paint attributes into a separate buffer
ansis 31dc4ac
move setVertexAttribPointers to Buffer
ansis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would
layers
be a better name?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having
Bucket#layers
andBucket#layer
could be confusing. I'd be happy with any naming scheme that has a modifier on one of the two, such asBucket#parentLayer
andBucket#layers
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not seeing the child/parent relationship but I agree that the one character difference could be confusing. This is fine as is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find the term
refLayer
confusing because it can refer either to a layer with aref
property or one referred to by aref
property.I have taken to calling layers with a
ref
property "ref children" and layers referred to by aref
property "ref parents".There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍