Static Boundary Image on Mapbox Map beta
GET/v4/boundaries/:id/image/map
This endpoint is in beta and not yet ready for production. Check out the LiveBy API Beta Endpoints Program for more information.
Get an image of a boundary displayed on a mapbox. This endpoint is intended to allow a boundary to be visualized without loading an entire map. You can specify a public Mapbox style url to visualize the boundary.
Request
Path Parameters
The LiveBy Boundary ID obtained from the /v4/boundaries endpoint.
Query Parameters
Mapbox style identifier used for the static image background. Supported values include mapbox://styles/{ownerId}/{styleId}, ownerId/styleId, or styleId (defaults ownerId to mapbox).
Default value: mapbox://styles/mapbox/streets-v12
Output image width in pixels. Maximum is 1280 (Mapbox static API limit).
Default value: 700
Output image height in pixels. Maximum is 1280 (Mapbox static API limit).
Default value: 400
Boundary line color in simplestyle format.
Default value: #444ce7
Boundary line width in pixels (simplestyle stroke-width).
Default value: 2
Boundary line opacity between 0 and 1 (simplestyle stroke-opacity).
Default value: 1
Boundary fill color in simplestyle format.
Default value: #444ce7
Boundary fill opacity between 0 and 1 (simplestyle fill-opacity).
Default value: 0.1
Responses
- 200
- 401
- 403
- 429
- 500
- 504
Unauthorized
Forbidden
Too Many Requests
Internal Server Error
Service Unavailable