calvinmetcalf / shapefile-js

Convert a Shapefile to GeoJSON. Not many caveats.
http://calvinmetcalf.github.io/shapefile-js/
MIT License
735 stars 230 forks source link

Version for React Functional Component? #155

Closed gmarshall56 closed 3 years ago

gmarshall56 commented 3 years ago

Would be very nice to have. Thank you

calvinmetcalf commented 3 years ago

there is nothing preventing you from using this within a react functional component

gmarshall56 commented 3 years ago

Thank you for your response.

Do I need to have both the leaflet.shpfile.js AND the shp.js file - which I would retrieve via "npm install shpjs --save" - in order for everything to work?

thanks again

On Mon, Apr 19, 2021 at 9:38 AM Calvin Metcalf @.***> wrote:

there is nothing preventing you from using this within a react functional component

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/calvinmetcalf/shapefile-js/issues/155#issuecomment-822473489, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNK7FMB5NHAADWDKFPS243TJQW5TANCNFSM43F2ETAA .

calvinmetcalf commented 3 years ago

yes

On Mon, Apr 19, 2021 at 10:50 AM gmarshall56 @.***> wrote:

Thank you for your response.

Do I need to have both the leaflet.shpfile.js AND the shp.js file - which I would retrieve via "npm install shpjs --save" - in order for everything to work?

thanks again

On Mon, Apr 19, 2021 at 9:38 AM Calvin Metcalf @.***> wrote:

there is nothing preventing you from using this within a react functional component

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/calvinmetcalf/shapefile-js/issues/155#issuecomment-822473489 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABNK7FMB5NHAADWDKFPS243TJQW5TANCNFSM43F2ETAA

.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/calvinmetcalf/shapefile-js/issues/155#issuecomment-822528495, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAITRH5BF3L34MSSA7HG2JLTJQ7LHANCNFSM43F2ETAA .

-- -Calvin W. Metcalf