Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10e19ea

Browse files
committed
rm obsolete comment and console.log's
1 parent 41ad02c commit 10e19ea

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

src/plots/mapbox/mapbox.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ proto.plot = function(fullData, fullLayout, promises) {
5353
self.opts = fullLayout[this.id];
5454

5555
var promise;
56-
// might want to use map.loaded() ???
57-
58-
// how to get streaming to work ???
5956

6057
if(!self.map) {
6158
promise = new Promise(function(resolve) {
@@ -89,7 +86,6 @@ proto.createMap = function(fullData, fullLayout, resolve) {
8986
});
9087

9188
map.once('load', function() {
92-
console.log('map on load')
9389
self.updateData(fullData);
9490
self.updateLayout(fullLayout);
9591

@@ -124,11 +120,9 @@ proto.updateMap = function(fullData, fullLayout, resolve) {
124120
style = self.opts.style;
125121

126122
if(style !== currentStyle) {
127-
console.log('reload style')
128123
map.setStyle(convertStyleUrl(style));
129124

130125
map.style.once('load', function() {
131-
console.log('on style reload')
132126

133127
// need to rebuild trace layers on reload
134128
// to avoid 'lost event' errors
@@ -140,7 +134,6 @@ proto.updateMap = function(fullData, fullLayout, resolve) {
140134
});
141135
}
142136
else {
143-
console.log('not reload style')
144137
self.updateData(fullData);
145138
self.updateLayout(fullLayout);
146139
resolve();
@@ -189,7 +182,7 @@ proto.updateLayout = function(fullLayout) {
189182

190183
// TODO update layers
191184

192-
this.updateFramework(fullLayout)
185+
this.updateFramework(fullLayout);
193186
this.map.resize();
194187
};
195188

@@ -237,7 +230,7 @@ proto.destroy = function() {
237230
this.container.removeChild(this.hoverLayer);
238231
};
239232

240-
proto.toImage = function(format) {
233+
proto.toImage = function() {
241234
return this.map.getCanvas().toDataURL();
242235
};
243236

src/traces/scattermapbox/plot.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ var proto = ScatterMapbox.prototype;
5151
proto.update = function update(trace) {
5252
var opts = convert(trace);
5353

54-
console.log('scatter update');
55-
5654
setOptions(this.map, this.idLayerLines, 'setLayoutProperty', opts.layoutLines);
5755
setOptions(this.map, this.idLayerMarkers, 'setLayoutProperty', opts.layoutMarkers);
5856

@@ -87,8 +85,6 @@ function setOptions(map, id, methodName, opts) {
8785
}
8886

8987
module.exports = function createScatterMapbox(mapbox, trace) {
90-
console.log('scatter create');
91-
9288
var scatterMapbox = new ScatterMapbox(mapbox, trace.uid);
9389
scatterMapbox.update(trace);
9490

0 commit comments

Comments
 (0)