react-leaflet GeoJSON with typescript
I am pretty new using typescript with reactjs. Currently, the project I am working on is using a react-leaflet/leaflet specifically their GeoJSON component. I am running into a typescript error when I pass my data to the props. I have been doing some research on this, even installed the geojson package and followed their examples, https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/geojson/geojson-tests.ts, tried everything that I know but no luck. If I try to pass data as const GeoJsonData: geojson.Feature<geojson.Polygon, geojson.GeoJsonProperties> = { geometry: { coordinate
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.