@@ -53,9 +53,6 @@ proto.plot = function(fullData, fullLayout, promises) {
53
53
self . opts = fullLayout [ this . id ] ;
54
54
55
55
var promise ;
56
- // might want to use map.loaded() ???
57
-
58
- // how to get streaming to work ???
59
56
60
57
if ( ! self . map ) {
61
58
promise = new Promise ( function ( resolve ) {
@@ -89,7 +86,6 @@ proto.createMap = function(fullData, fullLayout, resolve) {
89
86
} ) ;
90
87
91
88
map . once ( 'load' , function ( ) {
92
- console . log ( 'map on load' )
93
89
self . updateData ( fullData ) ;
94
90
self . updateLayout ( fullLayout ) ;
95
91
@@ -124,11 +120,9 @@ proto.updateMap = function(fullData, fullLayout, resolve) {
124
120
style = self . opts . style ;
125
121
126
122
if ( style !== currentStyle ) {
127
- console . log ( 'reload style' )
128
123
map . setStyle ( convertStyleUrl ( style ) ) ;
129
124
130
125
map . style . once ( 'load' , function ( ) {
131
- console . log ( 'on style reload' )
132
126
133
127
// need to rebuild trace layers on reload
134
128
// to avoid 'lost event' errors
@@ -140,7 +134,6 @@ proto.updateMap = function(fullData, fullLayout, resolve) {
140
134
} ) ;
141
135
}
142
136
else {
143
- console . log ( 'not reload style' )
144
137
self . updateData ( fullData ) ;
145
138
self . updateLayout ( fullLayout ) ;
146
139
resolve ( ) ;
@@ -189,7 +182,7 @@ proto.updateLayout = function(fullLayout) {
189
182
190
183
// TODO update layers
191
184
192
- this . updateFramework ( fullLayout )
185
+ this . updateFramework ( fullLayout ) ;
193
186
this . map . resize ( ) ;
194
187
} ;
195
188
@@ -237,7 +230,7 @@ proto.destroy = function() {
237
230
this . container . removeChild ( this . hoverLayer ) ;
238
231
} ;
239
232
240
- proto . toImage = function ( format ) {
233
+ proto . toImage = function ( ) {
241
234
return this . map . getCanvas ( ) . toDataURL ( ) ;
242
235
} ;
243
236
0 commit comments