Skip to content

Conversation

@tchandelle
Copy link
Contributor

Fixes #6685

var extent = layerState.extent;
var clipped = extent !== undefined;
var clipped = extent !== undefined &&
!ol.extent.containsExtent(extent, frameState.extent);
Copy link
Member

Choose a reason for hiding this comment

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

We need to clip when the layer extent intersects but does not contain the frame state's extent. This check only does the 2nd part of the logic.

Copy link
Member

@ahocevar ahocevar left a comment

Choose a reason for hiding this comment

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

Good improvement. Thanks!

@ahocevar ahocevar merged commit 55f8a27 into openlayers:master Apr 11, 2017
@tchandelle tchandelle deleted the extent-clip branch April 11, 2017 08:56
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.

2 participants