File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ proto.update = function update(calcTrace) {
102102 opts = optsAll [ k ] ;
103103 this . addLayer ( k , opts , below ) ;
104104 }
105- this . below = below ;
106105 } else if ( hasCluster && ! hadCluster ) {
107106 for ( i = ORDER . nonCluster . length - 1 ; i >= 0 ; i -- ) {
108107 k = ORDER . nonCluster [ i ] ;
@@ -115,7 +114,6 @@ proto.update = function update(calcTrace) {
115114 opts = optsAll [ k ] ;
116115 this . addLayer ( k , opts , below ) ;
117116 }
118- this . clusterEnabled = hasCluster ;
119117 } else if ( ! hasCluster && hadCluster ) {
120118 for ( i = 0 ; i < ORDER . cluster . length ; i ++ ) {
121119 k = ORDER . cluster [ i ] ;
@@ -128,7 +126,6 @@ proto.update = function update(calcTrace) {
128126 this . addSource ( k , opts , trace . cluster ) ;
129127 this . addLayer ( k , opts , below ) ;
130128 }
131- this . clusterEnabled = hasCluster ;
132129 }
133130
134131 order = hasCluster ? ORDER . cluster : ORDER . nonCluster ;
@@ -144,6 +141,9 @@ proto.update = function update(calcTrace) {
144141 }
145142 }
146143
144+ this . clusterEnabled = hasCluster ;
145+ this . below = below ;
146+
147147 // link ref for quick update during selections
148148 calcTrace [ 0 ] . trace . _glTrace = this ;
149149} ;
You can’t perform that action at this time.
0 commit comments