leaflet-gpx icon indicating copy to clipboard operation
leaflet-gpx copied to clipboard

Typescript error

Open quilkin opened this issue 8 months ago • 7 comments

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.

quilkin avatar Oct 24 '23 12:10 quilkin