Mapbox vector tile endpoints will have path parameters to request tiles at the specified zoom, x, and y. We what to create reusable schemas for these parameters. A example of the general structure for these parameters is available on the 132/on-demand-tilesets branch. Though, the example incorrectly describes them as strings.
[ ] viewport schemas are created under components/parameters
[ ] Zoom param is created
[ ] X param is created
[ ] Y param is created
Helper code
Copy and paste this into components/parameters. It has the configuration that was already written on the prototype branch, updated to define them as numbers
viewportZoomParam:
name: z
in: path
description: viewport zoom component
required: true
schema:
type: integer
example: 7
viewportXParam:
name: x
in: path
description: viewport x component
required: true
schema:
type: integer
example: 1000
viewportYParam:
name: y
in: path
description: viewport y component
required: true
schema:
type: integer
example: 1000
Description
Mapbox vector tile endpoints will have path parameters to request tiles at the specified zoom, x, and y. We what to create reusable schemas for these parameters. A example of the general structure for these parameters is available on the 132/on-demand-tilesets branch. Though, the example incorrectly describes them as strings.
example viewportParam
Acceptance Criteria
components/parameters
Helper code
Copy and paste this into
components/parameters
. It has the configuration that was already written on the prototype branch, updated to define them as numbers