เอกสาร MapScale
•••
MapScale API
GET/fonts/v1/{fontstack}/{rangeFile}

ดึงชุด glyph ของฟอนต์

ชุดฟอนต์ที่ MapLibre style ใช้งาน

LIVE API PLAYGROUND

เข้าสู่ระบบหรือสร้างบัญชี

ดำเนินการต่อเพื่อเรียก request จริงจากหน้า docs

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

พารามิเตอร์

Request ที่เทียบเท่า
curl \
  -H "X-MapScale-Key: $MAPSCALE_API_KEY" \
  "https://api.mapscale.io/fonts/v1/Noto%20Sans%20Thai%20Regular/0-255.pbf"
Response
Response เริ่มต้น
{
  "status": "302",
  "contentType": null,
  "description": "Redirect to the glyph asset host."
}

Responses

302Redirect to the glyph asset host.
400Invalid glyph range.application/json
401mapscale/effect-api/UnauthorizedFailureapplication/json
403mapscale/effect-api/ForbiddenFailureapplication/json
429mapscale/effect-api/RateLimitedFailureapplication/json
500mapscale/effect-api/MiddlewareInternalFailureapplication/json
503Asset host not configured yet. | mapscale/effect-api/UpstreamUnavailableFailureapplication/json

On this page