go-spatial / fresco

An open source vector tile style editor
https://fresco.go-spatial.org
Apache License 2.0
234 stars 26 forks source link

Adding TileJSON using the "From Source" feature is throwing an exception relating to "headers" #67

Closed ARolek closed 5 years ago

ARolek commented 5 years ago

When trying to add a new style "From Source" the following error is output to the console:

error: TypeError: Cannot read property 'headers' of undefined
    at Object.load (SourceReader.js:5)
    at MstyleSource.js:11
    at new Promise (<anonymous>)
    at Object.addFromSource (MstyleSource.js:10)
    at t.submitFromSource (VstyleAdd.jsx:45)
    at Object.i (react-dom.production.min.js:14)
    at a (react-dom.production.min.js:15)
    at s (react-dom.production.min.js:15)
    at c (react-dom.production.min.js:17)
    at h (react-dom.production.min.js:18)