1

I am currently working with Leaflet.js and Overpass API and I am using osmtogeojson to do the format change between the OSM-JSON that Overpass API outputs and the GeoJSON that Leaflet.js needs as input. To do so I am using the following code:

data = osmtogeojson(osm_data);

This works perfectly.

Here comes the problem: I am trying to ignore some data that I am getting on the OSM-JSON dataset. So I am trying to use uninterestingTags as given in the osmtogeojson API. The thing is that I don't know how to code this thing. This is not working:

 data = osmtogeojson(
      osm_data, uninterestingTags = {"source"}
 );
4

1 回答 1

2

尝试将标签设置为true,如下所示

uninterestingTags = {"source": true}.

于 2014-09-26T08:05:02.700 回答