เอกสาร MapScale
•••
MapScale API
GET/v1/static/{lonLatZoom}/{sizeFile}

เรนเดอร์ภาพแผนที่แบบ static

ภาพแผนที่ที่ render จาก server สำหรับ preview, email และการแชร์

LIVE API PLAYGROUND

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

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

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

พารามิเตอร์

Request ที่เทียบเท่า
curl \
  -H "X-MapScale-Key: $MAPSCALE_API_KEY" \
  "https://api.mapscale.io/v1/static/100.5018%2C13.7563%2C12/1200x630.png?lang=th"
Response
Response เริ่มต้น
{
  "status": "200",
  "contentType": "image/png",
  "description": "A rendered PNG static map."
}

Responses

200A rendered PNG static map.image/png
400Invalid coordinates, zoom, or size.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
502The render service returned an error.application/json
503The render service is unreachable or not configured. | mapscale/effect-api/UpstreamUnavailableFailureapplication/json

On this page