From 89b051510e0a5673d633c46a606fd0d433051bd4 Mon Sep 17 00:00:00 2001 From: Avi Date: Mon, 23 Nov 2020 22:48:01 +0200 Subject: [PATCH] Fixed leaflet kml import --- package.json | 2 +- src/index.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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;