Skip to content

GetMapTile

Source: src/AWS/Location/GetMapTile.ts

Retrieves a single map tile (vector or raster) addressed by zoom/x/y.

Runtime binding for the GetMapTile operation (IAM action geo:GetMapTile), scoped to one Map. Provide the implementation with Effect.provide(AWS.Location.GetMapTileHttp).

const getTile = yield* Location.GetMapTile(map);
const tile = yield* getTile({ Z: "0", X: "0", Y: "0" });
// tile.Blob → tile bytes, tile.ContentType → e.g. "application/vnd.mapbox-vector-tile"