The challenge I'm facing involves integrating the Leaflet.PolylineMeasure plugin into my Angular application, which is written in JavaScript. After attempting to npm install the library from https://www.npmjs.com/package/leaflet.polylinemeasure, I encountered issues using it such as receiving the error message: "Property 'polylineMeasure' does not exist on type 'typeof control'." This error suggests that the required polylineMeasure function is missing in the L control.
In order to resolve this, I am currently utilizing ngx-leaflet to run Leaflet within my Angular app. Can anyone provide guidance on how to successfully implement the Leaflet.PolylineMeasure plugin in an Angular environment?