leaflet-gpx
leaflet-gpx copied to clipboard
Typescript error
I ma getting a type error with
new L.GPX(route.url, { async: true, marker_options: { startIconUrl: '', endIconUrl: '', shadowUrl: '' } })
The error is
Property 'GPX' does not exist on type 'typeof import("c:/Users/quilk/source/repos/ridehub/node_modules/@types/leaflet/index")'.ts(2339)
I see the line import * as L from "leaflet";
in the file index.d.ts
for leaflet-gpx , but the editor is telling me that 'L' is declared but its value is never read.