This is a Leaflet Geoman Subplugin
Demo: GeomanTriangle
Download geomanTriangle.js and include them in your project.
<script src="./dist/geomanTriangle.js"></script>
or use the script over cdn:
<script src="https://cdn.jsdelivr.net/gh/Falke-Design/GeomanTriangle/dist/geomanTriangle.js"></script>
Create the L.GeomanTriangle button after Leaflet Geoman
triangle = new L.GeomanTriangle(map)
map.pm.enableDraw("Triangle")
triangle.setText(text)
text: {tooltips: {firstVertex: 'Click to place center', finish: 'Click to finish'} cancel: 'Cancel'}