Hello! I am new to leaflet and i am trying to use offset property in Angular 10 using ngx-leaflet. I installed polylineOffset with npm, but it seems like it doesn't extend property 'offset' to my Polyline type.
I create the polyline like this:
//replace 'lat' and 'long' with actual coordinates var coords = [ [lat, long], [lat, long], .... , [lat, long] ] const newPolyline= L.polyline(coords, { offset: -5 });
I get the following error: Argument of type '{ offset: number; }' is not assignable to parameter of type 'PolylineOptions'.
Hello! I am new to leaflet and i am trying to use offset property in Angular 10 using ngx-leaflet. I installed polylineOffset with npm, but it seems like it doesn't extend property 'offset' to my Polyline type. I create the polyline like this:
//replace 'lat' and 'long' with actual coordinates var coords = [ [lat, long], [lat, long], .... , [lat, long] ] const newPolyline= L.polyline(coords, { offset: -5 });
I get the following error: Argument of type '{ offset: number; }' is not assignable to parameter of type 'PolylineOptions'.