Skip to content

Commit c7f90e9

Browse files
authored
Merge pull request #1384 from OpenGeoscience/marker-primitive-auto
fix: Fix a potential issue with auto primitiveShape in markers
2 parents 4f618cc + 9305f37 commit c7f90e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webgl/markerFeature.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ var webgl_markerFeature = function (arg) {
368368
if (!m_this._primitiveShapeAuto || m_this._primitiveShape !== markerFeature.primitiveShapes.sprite) {
369369
return;
370370
}
371-
if (m_this._approximateMaxRadius(zoom) > webglRenderer._maxPointSize) {
371+
if (m_this._approximateMaxRadius(zoom) * 2 > webglRenderer._maxPointSize) {
372372
m_this._primitiveShape = markerFeature.primitiveShapes.triangle;
373373
m_this.renderer().contextRenderer().removeActor(m_this.actors()[0]);
374374
m_this._init(true);

0 commit comments

Comments
 (0)