Skip to content

Get Map Sprites

locationservice_get_map_sprites R Documentation

Retrieves the sprite sheet corresponding to a map resource

Description

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.

Usage

locationservice_get_map_sprites(FileName, Key, MapName)

Arguments

FileName

[required] 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

Key

The optional API key to authorize the request.

MapName

[required] The map resource associated with the sprite file.

Value

A list with the following syntax:

list(
  Blob = raw,
  CacheControl = "string",
  ContentType = "string"
)

Request syntax

svc$get_map_sprites(
  FileName = "string",
  Key = "string",
  MapName = "string"
)