Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

[core] Remove default fade/transition duration from MapData - #4213

Merged
brunoabinader merged 11 commits into
masterfrom
1985-map-data-cleanup
Mar 17, 2016
Merged

brunoabinader merged 11 commits into
masterfrom
1985-map-data-cleanup

Conversation

@brunoabinader

Copy link
Copy Markdown
Contributor

In the process of replacing MapData entirely, this PR:

  • Removes default transition {duration,delay} from MapData, Map and platform-specific APIs
  • Adds optional property transition parameters to addClass, removeClass and setClasses
  • Replaces default fade duration from MapData with a constant value

Among other minor cleanups. Further steps for fully replacing MapData with scoped parameters passing will proceed on a separate PR.

Fixes #1025 and #1985.

👀 @jfirebaugh @kkaefer

@jfirebaugh

Copy link
Copy Markdown
Contributor

This looks good, but I think we should hold refactoring of this scale until after the Android 4.0.0 and iOS 3.2.0 releases. We should be in high-stability mode for the next week+.

@brunoabinader
brunoabinader force-pushed the 1985-map-data-cleanup branch 2 times, most recently from d721f2b to e2e37c7 Compare March 11, 2016 10:37
Comment thread src/mbgl/map/map.cpp
if (flags & Update::Dimensions) {
transform->resize(view.getSize());
}
if (flags & Update::Dimensions) transform->resize(view.getSize());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please don't remove braces.

@brunoabinader
brunoabinader force-pushed the 1985-map-data-cleanup branch 2 times, most recently from 2d9b5d9 to 95d7ca3 Compare March 16, 2016 14:37
@brunoabinader
brunoabinader force-pushed the 1985-map-data-cleanup branch from 95d7ca3 to cd1a06c Compare March 17, 2016 23:34
@brunoabinader
brunoabinader merged commit cd1a06c into master Mar 17, 2016
@brunoabinader
brunoabinader deleted the 1985-map-data-cleanup branch March 18, 2016 00:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants