_drawLink (feature) {
    const markup = this.get(feature.getId())
    if (!markup || !markup.isLinkable) {
      return
    }

    const line = getShortestLineBetweenOverlayAndFeature(
      feature,
      markup.overlay
    )

    const updated = this._links.getArray().some((feature) => {// eslint-disable-line
      if (feature.getId() === markup.id) {
        feature.setGeometry(line)
        return true
      }
    })

    if (!updated) {
      const feature = new Feature({ geometry: line, name: 'Line' })
      feature.setId(markup.id)
      feature.setStyle(
        new Style({
          stroke: new Stroke({
            color: defaultStyles.stroke.color,
            lineDash: [0.3, 7],
            width: 3
          })
        })
      )
      this._links.push(feature)
    }
  }
/**
   * Draws a link between the feature and the markup.
   *
   * @param {object} feature The feature
   */
Draws a link between the feature and the markup.
@param {object} feature The feature
Draws a link between the feature and the markup . @param { object } feature The feature
_drawLink (feature) {
    const markup = this.get(feature.getId())
    if (!markup || !markup.isLinkable) {
      return
    }
    const line = getShortestLineBetweenOverlayAndFeature(
      feature,
      markup.overlay
    )
    const updated = this._links.getArray().some((feature) => {
      if (feature.getId() === markup.id) {
        feature.setGeometry(line)
        return true
      }
    })
    if (!updated) {
      const feature = new Feature({ geometry: line, name: 'Line' })
      feature.setId(markup.id)
      feature.setStyle(
        new Style({
          stroke: new Stroke({
            color: defaultStyles.stroke.color,
            lineDash: [0.3, 7],
            width: 3
          })
        })
      )
      this._links.push(feature)
    }
  }
_drawLink ( feature ) { const markup = this . get ( feature . getId ( ) ) if ( ! markup || ! markup . isLinkable ) { return } const line = getShortestLineBetweenOverlayAndFeature ( feature , markup . overlay ) const updated = this . _links . getArray ( ) . some ( ( feature ) => { if ( feature . getId ( ) === markup . id ) { feature . setGeometry ( line ) return true } } ) if ( ! updated ) { const feature = new Feature ( { geometry : line , name : 'Line' } ) feature . setId ( markup . id ) feature . setStyle ( new Style ( { stroke : new Stroke ( { color : defaultStyles . stroke . color , lineDash : [ 0.3 , 7 ] , width : 3 } ) } ) ) this . _links . push ( feature ) } }
Draws a link between the feature and the markup.
Draws a link between the feature and the markup .
// eslint-disable-line