我目前正在使用Leaflet.js
和Overpass API
,我使用osmtogeojson
在Overpass API输出的OSM-JSON和Leaflet.js需要的GeoJSON之间进行格式更改作为输入。为此,我使用以下代码:
data = osmtogeojson(osm_data);
这很有效。
问题出现了:我试图忽略我在OSM-JSON数据集上获得的一些数据。所以我尝试使用osmtogeojson API中给出的uninterestingTags
。问题是我不知道如何编码这个东西。这不起作用:
data = osmtogeojson(
osm_data, uninterestingTags = {"source"}
);