Fix error when text placement is 'line' for point geometry
This commit is contained in:
@@ -176,7 +176,13 @@ class CanvasTextBuilder extends CanvasBuilder {
|
|||||||
let flatCoordinates = null;
|
let flatCoordinates = null;
|
||||||
let stride = geometry.getStride();
|
let stride = geometry.getStride();
|
||||||
|
|
||||||
if (textState.placement === TextPlacement.LINE) {
|
if (
|
||||||
|
textState.placement === TextPlacement.LINE &&
|
||||||
|
(geometryType == GeometryType.LINE_STRING ||
|
||||||
|
geometryType == GeometryType.MULTI_LINE_STRING ||
|
||||||
|
geometryType == GeometryType.POLYGON ||
|
||||||
|
geometryType == GeometryType.MULTI_POLYGON)
|
||||||
|
) {
|
||||||
if (!intersects(this.getBufferedMaxExtent(), geometry.getExtent())) {
|
if (!intersects(this.getBufferedMaxExtent(), geometry.getExtent())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user