Skip to content

Added a remove method on the compare control.#2

Draft
StephaneAlie wants to merge 2 commits intomasterfrom
stephane/340
Draft

Added a remove method on the compare control.#2
StephaneAlie wants to merge 2 commits intomasterfrom
stephane/340

Conversation

@StephaneAlie
Copy link
Member

Draft for review.

},
"dependencies": {
"@mapbox/mapbox-gl-sync-move": "^0.2.0"
"@mapbox/mapbox-gl-sync-move": "^0.3.0"
Copy link
Member

Choose a reason for hiding this comment

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

Is the version change needed?

Copy link
Member

Choose a reason for hiding this comment

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

I think they fixed some things in 0.3.0 that we need to behave correctly.

Copy link
Member Author

Choose a reason for hiding this comment

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

That new version exposes a method to clear the sync.

var compare = new mapboxgl.Compare(a, b, container);

t.notOk(!!a.getContainer().style.clip, 'Map A is not clipped');
t.ok(!!a.getContainer().style.clip, 'Map A is clipped');
Copy link
Member

Choose a reason for hiding this comment

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

Why did the result of this test change?

Copy link
Member Author

Choose a reason for hiding this comment

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

Someone changed the behavior and forgot to update the test, it was failing as is, figured I'd fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants