Skip to content

Commit

Permalink
fix polygon clipping, close #1115
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhenn committed Jun 18, 2020
1 parent 5573788 commit 632abbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/geometry/Painter.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ class Painter extends Class {
altitude : altitude
};
}
const glExtent2D = map._get2DExtent(map.getGLZoom(), TEMP_CLIP_EXTENT0)._expand(lineWidth / map._glScale);
const glExtent2D = map._get2DExtent(map.getGLZoom(), TEMP_CLIP_EXTENT0)._expand(lineWidth * map._glScale);
const smoothness = geometry.options['smoothness'];
// if (this.geometry instanceof Polygon) {
if (geometry.getShell && this.geometry.getHoles && !smoothness) {
Expand Down

0 comments on commit 632abbd

Please sign in to comment.