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

Implement repeat group logic for point based styles #1228

Merged
merged 2 commits into from
Jan 23, 2017
Merged

Conversation

tallytalwar
Copy link
Member

@tallytalwar tallytalwar commented Jan 13, 2017

  • 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 repeat distance)

Refer other details of the concept: tangrams/tangram#424

This PR branch is based on #1211

hash_combine(repeatGroupHash, repeatGroup);
} else {
repeatGroupHash = _rule.getParamSetHash();
}
Copy link
Member

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.

Copy link
Member

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();
}
Copy link
Member

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.

- 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)
@karimnaaji karimnaaji merged commit 6611e7c into master Jan 23, 2017
@karimnaaji karimnaaji deleted the point-repeats branch January 23, 2017 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants