From ca3d5965a981a0ecb968c04c3d4ee8d9c3dd9af0 Mon Sep 17 00:00:00 2001 From: HGX_GEO <2307864143@qq.ocm> Date: Fri, 12 Jun 2026 11:14:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BD=93ClusterLayer?= =?UTF-8?q?=E4=B8=AD=E7=9A=84marker=E5=85=A8=E9=83=A8=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E4=BA=86=EF=BC=8C=E6=8A=A5cannot=20read=20property=20'getMin'?= =?UTF-8?q?=20of=20undefined=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index e27e06a..d788fe1 100644 --- a/index.js +++ b/index.js @@ -434,6 +434,9 @@ const ClusterLayerRenderable = function(Base) { if (ratio === 0 || !toClusters) { return; } + if (!this._markerExtent) { + return; + } const z = parentClusters.zoom, r = map._getResolution(z) * this.layer.options['maxClusterRadius'], min = this._markerExtent.getMin();