Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Retrieves a vector data tile from the map resource. Map tiles are used by clients to render a map. they're addressed using a grid arrangement with an X coordinate, Y coordinate, and Z (zoom) level.
The origin (0, 0) is the top left of the map. Increasing the zoom level by 1 doubles both the X and Y dimensions, so a tile containing data for the entire world at (0/0/0) will be split into 4 tiles at zoom 1 (1/0/0, 1/0/1, 1/1/0, 1/1/1).
Synopsis
- data GetMapTile = GetMapTile' {}
- newGetMapTile :: Text -> Text -> Text -> Text -> GetMapTile
- getMapTile_mapName :: Lens' GetMapTile Text
- getMapTile_x :: Lens' GetMapTile Text
- getMapTile_y :: Lens' GetMapTile Text
- getMapTile_z :: Lens' GetMapTile Text
- data GetMapTileResponse = GetMapTileResponse' {
- blob :: Maybe ByteString
- contentType :: Maybe Text
- httpStatus :: Int
- newGetMapTileResponse :: Int -> GetMapTileResponse
- getMapTileResponse_blob :: Lens' GetMapTileResponse (Maybe ByteString)
- getMapTileResponse_contentType :: Lens' GetMapTileResponse (Maybe Text)
- getMapTileResponse_httpStatus :: Lens' GetMapTileResponse Int
Creating a Request
data GetMapTile Source #
See: newGetMapTile
smart constructor.
Instances
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> GetMapTile |
Create a value of GetMapTile
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetMapTile
, getMapTile_mapName
- The map resource to retrieve the map tiles from.
$sel:x:GetMapTile'
, getMapTile_x
- The X axis value for the map tile.
$sel:y:GetMapTile'
, getMapTile_y
- The Y axis value for the map tile.
$sel:z:GetMapTile'
, getMapTile_z
- The zoom value for the map tile.
Request Lenses
getMapTile_mapName :: Lens' GetMapTile Text Source #
The map resource to retrieve the map tiles from.
getMapTile_x :: Lens' GetMapTile Text Source #
The X axis value for the map tile.
getMapTile_y :: Lens' GetMapTile Text Source #
The Y axis value for the map tile.
getMapTile_z :: Lens' GetMapTile Text Source #
The zoom value for the map tile.
Destructuring the Response
data GetMapTileResponse Source #
See: newGetMapTileResponse
smart constructor.
GetMapTileResponse' | |
|
Instances
newGetMapTileResponse Source #
Create a value of GetMapTileResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:blob:GetMapTileResponse'
, getMapTileResponse_blob
- Contains Mapbox Vector Tile (MVT) data.
$sel:contentType:GetMapTileResponse'
, getMapTileResponse_contentType
- The map tile's content type. For example,
application/vnd.mapbox-vector-tile
.
$sel:httpStatus:GetMapTileResponse'
, getMapTileResponse_httpStatus
- The response's http status code.
Response Lenses
getMapTileResponse_blob :: Lens' GetMapTileResponse (Maybe ByteString) Source #
Contains Mapbox Vector Tile (MVT) data.
getMapTileResponse_contentType :: Lens' GetMapTileResponse (Maybe Text) Source #
The map tile's content type. For example,
application/vnd.mapbox-vector-tile
.
getMapTileResponse_httpStatus :: Lens' GetMapTileResponse Int Source #
The response's http status code.