src/Behavior.js
/**
 * With no argument, toggle the tooltips upon touching of labels.
 * @param {Boolean} on_off - The new on/off state. If this argument is not provided, then toggle the state.
 */
With no argument, toggle the tooltips upon touching of labels.
@param {Boolean} on_off - The new on/off state. If this argument is not provided, then toggle the state.
With no argument toggle the tooltips upon touching of labels . @param { Boolean } on_off - The new on / off state . If this argument is not provided then toggle the state .
function toggle_label_touch (on_off) {
  if (on_off === undefined) {
    on_off = this.label_touch === null
  }
  if (on_off) {
    this.label_touch = (type, d) => {
      if (!this.dragging) {
        this.map.callback_manager.run('show_tooltip', null, type, d)
      }
    }
  } else {
    this.label_touch = null
  }
}
function toggle_label_touch ( on_off ) { if ( on_off === undefined ) { on_off = this . label_touch === null } if ( on_off ) { this . label_touch = ( type , d ) => { if ( ! this . dragging ) { this . map . callback_manager . run ( 'show_tooltip' , null , type , d ) } } } else { this . label_touch = null } }
With no argument, toggle the tooltips upon touching of labels.
With no argument toggle the tooltips upon touching of labels .