watergis / maplibre-gl-terradraw

This plugin is to add controls to your maplibre for sketching powered by terradraw library.
https://terradraw.water-gis.com/
MIT License
16 stars 1 forks source link

Always-Open mode #39

Open neodescis opened 3 days ago

neodescis commented 3 days ago

It would be nice to be able to specify in the API that the controls should always be expanded, and hide the button to collapse them.

JinIgarashi commented 1 day ago

@neodescis there is open option to expand tool as default.

https://github.com/watergis/maplibre-gl-terradraw/blob/f4231f021632c872eb21596707a90c46fa1b4c1b/src/lib/interfaces/ControlOptions.ts#L17-L20

I will close this issue. feel free to reopen if necessary

neodescis commented 1 day ago

Yes, but I meant that an always-open mode would also hide the button to collapse the menu.