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

Simplifying marker rotation #11563

Merged
merged 3 commits into from
Mar 4, 2022
Merged

Simplifying marker rotation #11563

merged 3 commits into from
Mar 4, 2022

Conversation

SnailBones
Copy link
Contributor

@SnailBones SnailBones commented Mar 3, 2022

In this PR. I remove the marker._transformedOffset function and instead perform transformations directly in the CSS transform.

Since CSS transformations can be view as occurring from right to left, by adding this transform on the right of the rotations, it means that the offset translation occurs first and the rotations now act on the correct origin.

This makes way for #11556, which will now be better isolated to only the changes necessary for globe support.

Launch Checklist

  • briefly describe the changes in this PR
  • manually test the debug page
  • apply changelog label ('bug', 'feature', 'docs', etc) or use the label 'skip changelog'

@SnailBones SnailBones marked this pull request as draft March 3, 2022 22:54
@SnailBones SnailBones force-pushed the aidan/marker-refactor branch from 6407e99 to 05441e3 Compare March 3, 2022 22:56
@SnailBones SnailBones added the skip changelog Used for PRs that do not need a changelog entry label Mar 4, 2022
@SnailBones SnailBones changed the title Refactors to marker.js Simplifying marker rotation Mar 4, 2022
@SnailBones SnailBones marked this pull request as ready for review March 4, 2022 20:16
@SnailBones SnailBones requested a review from karimnaaji March 4, 2022 20:17
Copy link
Contributor

@karimnaaji karimnaaji left a comment

Choose a reason for hiding this comment

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

Looks good, nice simplification.

@SnailBones SnailBones merged commit e19d475 into main Mar 4, 2022
@SnailBones SnailBones deleted the aidan/marker-refactor branch March 4, 2022 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring 🏗️ skip changelog Used for PRs that do not need a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants