mapbox / mapbox-sdk-js

A JavaScript client to Mapbox services, supporting Node, browsers, and React Native
Other
709 stars 185 forks source link

Add option to send text instead of file in nodejs #470

Open abouroubi opened 1 year ago

abouroubi commented 1 year ago

I want to use the Tileset service to create a new source from a nodejs app. The createTileset only accepts data from files, but for my use case the data do not come from a file, but from a database, so I have the string content of my geojson, and I don't want to save it to the disk and then send it to the API, it's just waste of resource.

Can you add the ability to supply a directly the content of the geojson instead of a path to the file ?

Thanks