-
Notifications
You must be signed in to change notification settings - Fork 240
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
Implement repeat group logic for point based styles #1228
Conversation
f31cb17
to
20dabd2
Compare
a58ca1e
to
62f80a3
Compare
62f80a3
to
0e7cbb1
Compare
hash_combine(repeatGroupHash, repeatGroup); | ||
} else { | ||
repeatGroupHash = _rule.getParamSetHash(); | ||
} |
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.
Should add
p.labelOptions.repeatDistance *= m_style.pixelScale();
around here.
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.
Oh no this is done later on.
hash_combine(repeatGroupHash, repeatGroup); | ||
} else { | ||
repeatGroupHash = _rule.getParamSetHash(); | ||
} |
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.
Oh no this is done later on.
- fixes warning
- fix: repeat group should only be applied when repeat distance is > 0 - alter repeat group application for text based styles to accomodate inheritance logic from parent point style - implement repeat group and repeat distance parsing for point based styles - repeat distance is 0 by default for point based styles (unlike for text based styles, which has 256 as default repear distance)
0e7cbb1
to
52aec20
Compare
point style
256 as default repeat distance)
Refer other details of the concept: tangrams/tangram#424
This PR branch is based on #1211