เอกสาร MapScale
อ้างอิง APIHealth และ contract
← MapScale API
GET/sprites/v1/{styleId}/{filename}

GET /sprites/v1/{styleId}/{filename}

endpoint ตรวจสถานะและ OpenAPI document แบบ public

ส่ง request นี้ไปยัง API จริงและแสดง response จริง

พารามิเตอร์

Request ที่เทียบเท่า
curl \
  -H "X-MapScale-Key: $MAPSCALE_API_KEY" \
  "https://api.mapscale.io/sprites/v1/streets/your-filename"
Response
Response เริ่มต้น
{
  "status": "200",
  "contentType": "image/png",
  "description": "The sprite sheet: `application/json` index for `*.json`, `image/png` atlas for `*.png`. All styles currently share one sheet."
}

Responses

200The sprite sheet: `application/json` index for `*.json`, `image/png` atlas for `*.png`. All styles currently share one sheet.image/png
400Invalid sprite file name.application/json
401mapscale/effect-api/UnauthorizedFailureapplication/json
403mapscale/effect-api/ForbiddenFailureapplication/json
404Unknown styleId.application/json
429mapscale/effect-api/RateLimitedFailureapplication/json
500mapscale/effect-api/MiddlewareInternalFailureapplication/json
503The sprite sheet has not been built. | mapscale/effect-api/UpstreamUnavailableFailureapplication/json

On this page

ตั้งค่า Analytics