File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -116,8 +116,8 @@ define([
116
116
117
117
expandBoundingBox ( result , pixelRange ) ;
118
118
119
- if ( entityCluster . _clusterLabels && ! defined ( item . _labelCollection ) && defined ( item . id ) && hasLabelIndex ( entityCluster , item . id ) && defined ( item . id . _label ) ) {
120
- var labelIndex = entityCluster . _collectionIndicesByEntity [ item . id ] ;
119
+ if ( entityCluster . _clusterLabels && ! defined ( item . _labelCollection ) && defined ( item . id ) && hasLabelIndex ( entityCluster , item . id . id ) && defined ( item . id . _label ) ) {
120
+ var labelIndex = entityCluster . _collectionIndicesByEntity [ item . id . id ] . labelIndex ;
121
121
var label = entityCluster . _labelCollection . get ( labelIndex ) ;
122
122
var labelBBox = Label . getScreenSpaceBoundingBox ( label , coord , labelBoundingBoxScratch ) ;
123
123
expandBoundingBox ( labelBBox , pixelRange ) ;
@@ -130,8 +130,8 @@ define([
130
130
function addNonClusteredItem ( item , entityCluster ) {
131
131
item . clusterShow = true ;
132
132
133
- if ( ! defined ( item . _labelCollection ) && defined ( item . id ) && hasLabelIndex ( entityCluster , item . id ) && defined ( item . id . _label ) ) {
134
- var labelIndex = entityCluster . _collectionIndicesByEntity [ item . id ] ;
133
+ if ( ! defined ( item . _labelCollection ) && defined ( item . id ) && hasLabelIndex ( entityCluster , item . id . id ) && defined ( item . id . _label ) ) {
134
+ var labelIndex = entityCluster . _collectionIndicesByEntity [ item . id . id ] . labelIndex ;
135
135
var label = entityCluster . _labelCollection . get ( labelIndex ) ;
136
136
label . clusterShow = true ;
137
137
}
You can’t perform that action at this time.
0 commit comments