openstreetmap-ng
openstreetmap-ng copied to clipboard
"Requested too much data" when checking Map Data in Layers menu
Description: When the "Map Data" checkbox in the Layers menu is checked, a "Requested too much data" popup shows up on every map movement.
Expected behavior: Map data queried at a reasonable zoom level is successfully queried and displayed in an overlay layer.
Steps to reproduce:
- Navigate to anywhere on https://www.openstreetmap.ng/
- Right-side menu > Layers > Map Overlays > Map Data
- Note "Requested too much data." popup, and no map data is loaded
Example query: https://www.openstreetmap.ng/api/web/map?bbox=-122.3416893627048%2C47.655908814033296%2C-122.32613954795153%2C47.65853211407622&limit=
Response: {"detail":"Requested too much data"}
Hello! Because of some last-minute performance issues, the map data layer was reduced to 1k nodes from the default 50k. This will be resolved with the switch to Postgres 18 later this year.