function drawImproveOSM(selection) {
    const service = getService();

    const surface = context.surface();
    if (surface && !surface.empty()) {
      touchLayer = surface.selectAll('.data-layer.touch .layer-touch.markers');
    }

    drawLayer = selection.selectAll('.layer-improveOSM')
      .data(service ? [0] : []);

    drawLayer.exit()
      .remove();

    drawLayer = drawLayer.enter()
      .append('g')
        .attr('class', 'layer-improveOSM')
        .style('display', _layerEnabled ? 'block' : 'none')
      .merge(drawLayer);

    if (_layerEnabled) {
      if (service && ~~context.map().zoom() >= minZoom) {
        editOn();
        service.loadIssues(projection);
        updateMarkers();
      } else {
        editOff();
      }
    }
  }
// Draw the ImproveOSM layer and schedule loading issues and updating markers.
Draw the ImproveOSM layer and schedule loading issues and updating markers.
Draw the ImproveOSM layer and schedule loading issues and updating markers .
function drawImproveOSM(selection) {
    const service = getService();
    const surface = context.surface();
    if (surface && !surface.empty()) {
      touchLayer = surface.selectAll('.data-layer.touch .layer-touch.markers');
    }
    drawLayer = selection.selectAll('.layer-improveOSM')
      .data(service ? [0] : []);
    drawLayer.exit()
      .remove();
    drawLayer = drawLayer.enter()
      .append('g')
        .attr('class', 'layer-improveOSM')
        .style('display', _layerEnabled ? 'block' : 'none')
      .merge(drawLayer);
    if (_layerEnabled) {
      if (service && ~~context.map().zoom() >= minZoom) {
        editOn();
        service.loadIssues(projection);
        updateMarkers();
      } else {
        editOff();
      }
    }
  }
function drawImproveOSM ( selection ) { const service = getService ( ) ; const surface = context . surface ( ) ; if ( surface && ! surface . empty ( ) ) { touchLayer = surface . selectAll ( '.data-layer.touch .layer-touch.markers' ) ; } drawLayer = selection . selectAll ( '.layer-improveOSM' ) . data ( service ? [ 0 ] : [ ] ) ; drawLayer . exit ( ) . remove ( ) ; drawLayer = drawLayer . enter ( ) . append ( 'g' ) . attr ( 'class' , 'layer-improveOSM' ) . style ( 'display' , _layerEnabled ? 'block' : 'none' ) . merge ( drawLayer ) ; if ( _layerEnabled ) { if ( service && ~ ~ context . map ( ) . zoom ( ) >= minZoom ) { editOn ( ) ; service . loadIssues ( projection ) ; updateMarkers ( ) ; } else { editOff ( ) ; } } }
Draw the ImproveOSM layer and schedule loading issues and updating markers.
Draw the ImproveOSM layer and schedule loading issues and updating markers .