(position, numPoints, ids, entityCluster)
| 141 | } |
| 142 | |
| 143 | function addCluster(position, numPoints, ids, entityCluster) { |
| 144 | const cluster = { |
| 145 | billboard: entityCluster._clusterBillboardCollection.add(), |
| 146 | label: entityCluster._clusterLabelCollection.add(), |
| 147 | point: entityCluster._clusterPointCollection.add(), |
| 148 | }; |
| 149 | |
| 150 | cluster.billboard.show = false; |
| 151 | cluster.point.show = false; |
| 152 | cluster.label.show = true; |
| 153 | cluster.label.text = numPoints.toLocaleString(); |
| 154 | cluster.label.id = ids; |
| 155 | cluster.billboard.position = |
| 156 | cluster.label.position = |
| 157 | cluster.point.position = |
| 158 | position; |
| 159 | |
| 160 | entityCluster._clusterEvent.raiseEvent(ids, cluster); |
| 161 | } |
| 162 | |
| 163 | function hasLabelIndex(entityCluster, entityId) { |
| 164 | return ( |
no test coverage detected
searching dependent graphs…