We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4299857 commit 1add90eCopy full SHA for 1add90e
src/traces/choroplethmapbox/plot.js
@@ -92,7 +92,7 @@ proto._removeLayers = function() {
92
var map = this.subplot.map;
93
var layerList = this.layerList;
94
95
- for(var i = 0; i < layerList.length; i++) {
+ for(var i = layerList.length - 1; i >= 0; i--) {
96
map.removeLayer(layerList[i][1]);
97
}
98
};
src/traces/densitymapbox/plot.js
@@ -82,7 +82,7 @@ proto._removeLayers = function() {
82
83
84
85
86
87
88
0 commit comments