urbica / react-map-gl-draw

React Component for Mapbox GL Draw
https://urbica.github.io/react-map-gl-draw
MIT License
50 stars 11 forks source link

displayControlsDefault prop did not work #4

Open device25 opened 5 years ago

device25 commented 5 years ago

displayControlsDefault={false} does not hide controls

KaiHuebner commented 4 years ago

I found a workaround for this, just disable all controls individually.

<Draw
    pointControl={false}
    lineStringControl={false}
    polygonControl={false}
    trashControl={false}
    combineFeaturesControl={false}
    uncombineFeaturesControl={false}
/>
stepankuzmin commented 4 years ago

@device25 maybe we can document this?