Skip to content

Commit

Permalink
Fixed leaflet kml import
Browse files Browse the repository at this point in the history
  • Loading branch information
aviklai committed Nov 23, 2020
1 parent 00ebf58 commit 89b0515
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 89b0515

Please sign in to comment.