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 the sprite sheet corresponding to a map resource. The sprite sheet is a PNG image paired with a JSON document describing the offsets of individual icons that will be displayed on a rendered map.
Synopsis
- data GetMapSprites = GetMapSprites' {}
- newGetMapSprites :: Text -> Text -> GetMapSprites
- getMapSprites_fileName :: Lens' GetMapSprites Text
- getMapSprites_mapName :: Lens' GetMapSprites Text
- data GetMapSpritesResponse = GetMapSpritesResponse' {
- blob :: Maybe ByteString
- contentType :: Maybe Text
- httpStatus :: Int
- newGetMapSpritesResponse :: Int -> GetMapSpritesResponse
- getMapSpritesResponse_blob :: Lens' GetMapSpritesResponse (Maybe ByteString)
- getMapSpritesResponse_contentType :: Lens' GetMapSpritesResponse (Maybe Text)
- getMapSpritesResponse_httpStatus :: Lens' GetMapSpritesResponse Int
Creating a Request
data GetMapSprites Source #
See: newGetMapSprites
smart constructor.
GetMapSprites' | |
|
Instances
Create a value of GetMapSprites
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:fileName:GetMapSprites'
, getMapSprites_fileName
- The name of the sprite file. Use the following file names for the sprite
sheet:
sprites.png
sprites@2x.png
for high pixel density displays
For the JSON document containing image offsets. Use the following file names:
sprites.json
sprites@2x.json
for high pixel density displays
GetMapSprites
, getMapSprites_mapName
- The map resource associated with the sprite file.
Request Lenses
getMapSprites_fileName :: Lens' GetMapSprites Text Source #
The name of the sprite file. Use the following file names for the sprite sheet:
sprites.png
sprites@2x.png
for high pixel density displays
For the JSON document containing image offsets. Use the following file names:
sprites.json
sprites@2x.json
for high pixel density displays
getMapSprites_mapName :: Lens' GetMapSprites Text Source #
The map resource associated with the sprite file.
Destructuring the Response
data GetMapSpritesResponse Source #
See: newGetMapSpritesResponse
smart constructor.
GetMapSpritesResponse' | |
|
Instances
newGetMapSpritesResponse Source #
Create a value of GetMapSpritesResponse
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:GetMapSpritesResponse'
, getMapSpritesResponse_blob
- Contains the body of the sprite sheet or JSON offset file.
$sel:contentType:GetMapSpritesResponse'
, getMapSpritesResponse_contentType
- The content type of the sprite sheet and offsets. For example, the
sprite sheet content type is image/png
, and the sprite offset JSON
document is application/json
.
$sel:httpStatus:GetMapSpritesResponse'
, getMapSpritesResponse_httpStatus
- The response's http status code.
Response Lenses
getMapSpritesResponse_blob :: Lens' GetMapSpritesResponse (Maybe ByteString) Source #
Contains the body of the sprite sheet or JSON offset file.
getMapSpritesResponse_contentType :: Lens' GetMapSpritesResponse (Maybe Text) Source #
The content type of the sprite sheet and offsets. For example, the
sprite sheet content type is image/png
, and the sprite offset JSON
document is application/json
.
getMapSpritesResponse_httpStatus :: Lens' GetMapSpritesResponse Int Source #
The response's http status code.