好的,关于osmtogeojson的另一个(我猜是小的)问题...所以基本上我需要通过Overpass API从openstreetmap下载数据,但是是geojson格式的。我不太习惯HTTPS请求和响应,所以我想我在这和osmtogeojson的使用之间遗漏了一些东西,因为我得到了这个: osmtogeojson.js:1 Uncaught TypeError: Cannotosmtogeojson.js:1
at i (osmtogeojson.js:1)
我一直在尝试遍历axios请求,但我的日志中不断出现错误,我试图遍历我的数据,返回的数据结构如下所示"data":[1 item]SyntaxError: Unexpected token o in JSON at position 1 at JSON.parse (<anonymous>)
以下是我的</e
我正在尝试从我的firebase后端加载数据,但收到此错误 Uncaught (in promise) TypeError: response.json is not a function 我的代码如下: import axios from 'axios'; console.log('getting data fromserver...');
axios</e