@@ -136,8 +136,8 @@ overviewer.util = {
136136 this . select . appendChild ( option ) ;
137137 } ,
138138 onChange : function ( ev ) {
139- console . log ( ev . target ) ;
140- console . log ( ev . target . value ) ;
139+ overviewer . util . debug ( ev . target ) ;
140+ overviewer . util . debug ( ev . target . value ) ;
141141 var selected_world = ev . target . value ;
142142
143143
@@ -204,8 +204,6 @@ overviewer.util = {
204204 overviewer . map . addLayer ( overviewer . collections . mapTypes [ selected_world ] [ selected_layer_name ] ) ;
205205 } ,
206206 onAdd : function ( ) {
207- console . log ( "onAdd mycontrol" ) ;
208-
209207 return this . container
210208 }
211209 } ) ;
@@ -290,7 +288,7 @@ overviewer.util = {
290288
291289 // reset the markers control with the markers for this layer
292290 if ( ovconf . marker_groups ) {
293- console . log ( "markers for" , ovconf . marker_groups ) ;
291+ overviewer . util . debug ( "markers for" , ovconf . marker_groups ) ;
294292 ovconf . markerCtrl = L . control . layers (
295293 [ ] ,
296294 ovconf . marker_groups , { collapsed : false } ) . addTo ( overviewer . map ) ;
@@ -376,7 +374,7 @@ overviewer.util = {
376374 if ( overviewer . collections . haveSigns == true ) {
377375 // if there are markers for this tileset, create them now
378376 if ( ( typeof markers !== 'undefined' ) && ( obj . path in markers ) ) {
379- console . log ( "this tileset has markers:" , obj ) ;
377+ overviewer . util . debug ( "this tileset has markers:" , obj ) ;
380378 obj . marker_groups = { } ;
381379
382380 // For every group of markers
@@ -538,9 +536,9 @@ overviewer.util = {
538536 *
539537 * @param string msg
540538 */
541- 'debug' : function ( msg ) {
539+ 'debug' : function ( ... args ) {
542540 if ( overviewerConfig . map . debug ) {
543- console . log ( msg ) ;
541+ console . log ( ... args ) ;
544542 }
545543 } ,
546544 /**
0 commit comments