tyrasd / overpass-turbo

A web based data mining tool for OpenStreetMap using the Overpass API.
https://overpass-turbo.eu
Other
947 stars 135 forks source link

Exported GeoJSON data missing #708

Open buehda opened 4 months ago

buehda commented 4 months ago

I exported the cycle lanes of switzerland as GeoJSON, but when I import it on Mapbox Studio, many of the vectors aren't showing up as they should. Some of them disappear when zooming in, but I have no idea why and how I can avoid that. The preview in Overpass looks fine, but in Mapbox it doesn't. Could anybody help me with this? Thanks!

zoomed out is ok: test2

zoomed in there are missing a lot of vectors (this is only a sample, there is more missing if I zoom further): test1

The request was like this:

/* Velowege */
[out:json];
(
  // get cycle route relations
  relation[route=bicycle]({{bbox}});
);
out body;
>;
out skel qt;

Preview: https://api.mapbox.com/styles/v1/buehda/clyxhjd6z00af01pfgz0b9v6s.html?title=view&access_token=pk.eyJ1IjoiYnVlaGRhIiwiYSI6ImYycXZFd1EifQ.2e0hr3uR_GInUDBIXmoWYQ&zoomwheel=true&fresh=true#11.73/47.3326/8.5219

mmd-osm commented 4 months ago

Try to open the exported GeoJSON in https://geojson.io and see if this works. If yes, better check with Mapbox why the GeoJSON isn't working in their map.

buehda commented 3 months ago

Thank you! I found out that I have to convert the data, so that Mapbox doesn't compress it. Now it works.