feat: make Mol explorer map-first
This commit is contained in:
@@ -389,6 +389,7 @@ Response:
|
||||
"crs": "EPSG:4326"
|
||||
},
|
||||
"feature_count": 2,
|
||||
"total_feature_count": 2,
|
||||
"limit": 250,
|
||||
"truncated": false,
|
||||
"geojson": {
|
||||
@@ -404,7 +405,8 @@ Rules:
|
||||
- Only vector/GeoJSON datasets are supported.
|
||||
- Coordinates are EPSG:4326 longitude/latitude.
|
||||
- Results are generated from persisted PostGIS `vector_features`, not from client-side map data.
|
||||
- The response is capped by `limit` and returns `truncated=true` when more matching rows exist.
|
||||
- `feature_count` is the number of GeoJSON features returned in the bounded preview. `total_feature_count` is the exact number of persisted rows intersecting the bbox.
|
||||
- The response is capped by `limit` and returns `truncated=true` when `total_feature_count` exceeds the returned preview.
|
||||
- `limit` is bounded to `1..1000`. Municipality-scale clients must page spatially by viewport instead of requesting an unbounded municipality FeatureCollection.
|
||||
- The Map workspace uses this existing endpoint for vector datasets above 5,000 features. It starts delivery at zoom level 14, debounces `moveend` requests and explicitly reports `truncated=true` as a request to zoom further in. This is a client delivery policy, not a second API or persistence path.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user