Leaflet / Leaflet.draw

Vector drawing and editing plugin for Leaflet
https://leaflet.github.io/Leaflet.draw/docs/leaflet-draw-latest.html
MIT License
1.96k stars 992 forks source link

tooltips option on enableDraw() not working? #1063

Closed barchambeault-edr closed 11 months ago

barchambeault-edr commented 11 months ago

How to reproduce

What behaviour I'm expecting and which behaviour I'm seeing

Docs (https://www.geoman.io/docs/modes/draw-mode) show a tooltips option when calling enableDraw. default is true. I'm setting to false, but the tooltips are still there.

Minimal example reproducing the issue

    instance.pm.enableDraw(currentFeatureId, {
      pathOptions: {
        color: defaultColor,
      },
      templineStyle: {
        color: defaultColor,
      },
      hintlineStyle: {
        color: defaultColor,
      },
      tooltips: false,
    });

pathOptions, templineStyle, and hintlineStyle are all being honored, as the line being drawn has the colors set here. however, it still has the "click to place first vertex" tooltip.

barchambeault-edr commented 11 months ago

I just realized we are using geoman-leaflet, not Leaflet.Draw, so this doesn't belong here. Closing...