We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I try to execute an example, but it gives an error
osme=require('osme'); osme.geoJSON('FR').then( geojson => osme.toGoogle(geojson).add(map)); ^ TypeError: osme.geoJSON is not a function
The text was updated successfully, but these errors were encountered:
Version [email protected] Check under node v8.16 and node v.10.15
$>node -e "osme=require('osme'); console.log(osme);" { default: { setHost: [Function: setHost], ... geoJSON: [Function: geoJSON], $>node -e "osme=require('osme'); console.log(osme.geoJSON);" undefined $>node -e "osme=require('osme'); console.log(osme.default.geoJSON);" [Function: geoJSON]
Sorry, something went wrong.
I reckon - osme.default, as long as it’s es6 default export.
No branches or pull requests
I try to execute an example, but it gives an error
The text was updated successfully, but these errors were encountered: