Get Map GridFS Asset
GET/api/v1/maps/:mapName/asset
Streams the real pcd/png bytes for a map from GridFS (bucket map_assets), resolving pcdFileId/pngFileId off the map document — mirrors mission_control_ui's /api/map-cloud/:name?format=pcd|png. Used by the 3D map editor (source=exist3d) to fetch the point cloud, and by the 2D flow for GridFS-synced PNGs.
Request
Path Parameters
mapName stringrequired
Possible values: non-empty
Name of the map whose GridFS asset to stream
Query Parameters
format stringrequired
Possible values: [pcd, png]
Which GridFS asset to stream for this map
Responses
- 200
- 400
- 404
- 500
Full asset bytes
Response Headers
Content-Type string
Content-Length string
Invalid format query param
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
data nullrequired
status numberrequired
{
"success": true,
"message": "string",
"status": 0
}
Map or asset not found
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
data nullrequired
status numberrequired
{
"success": true,
"message": "string",
"status": 0
}
Internal server error
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
data nullrequired
status numberrequired
{
"success": true,
"message": "string",
"status": 0
}
Loading...