diff --git a/package.json b/package.json index 169c8a0..3b6cfc3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-leaflet-kml", - "version": "2.0.1", + "version": "2.0.2", "description": "React leaflet wrapper of leaflet-kml", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/index.ts b/src/index.ts index f12b3f6..c223585 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,9 @@ +// @ts-ignore +import 'leaflet-kml'; import * as L from 'leaflet'; import { LayerProps, LeafletContextInterface, createLayerComponent } from '@react-leaflet/core'; import { useEffect } from 'react'; -// @ts-ignore -import 'leaflet-kml'; + interface IProps { kml: XMLDocument;