Skip to content

Commit 2759946

Browse files
authored
fix: Sector are always rendered as path (#2854)
* fix:Circle are always rendered as path * updates * updates
1 parent 90b88c1 commit 2759946

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/maptalks/src/renderer/geometry/VectorRenderer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ const el = {
105105

106106
//@internal
107107
_paintAsPath: function (): boolean {
108+
108109
//why? when rotate need draw by path
109110
if (this.isRotated()) {
110111
return true;
@@ -115,7 +116,7 @@ const el = {
115116
const pitch = cache ? cache.pitch : map.getPitch();
116117
const bearing = cache ? cache.bearing : map.getBearing();
117118
// when map is tilting, draw the ;circle/ellipse as a polygon by vertexes.
118-
return altitude > 0 || pitch || ((this instanceof Ellipse) && bearing);
119+
return altitude > 0 || pitch || ((this instanceof Ellipse) && bearing) || (this instanceof Sector && !this.options.antiMeridian);
119120
},
120121

121122
//@internal

0 commit comments

Comments
 (0)