Object

Overlay

A JSON object for a Snapshot URL that describes polyline overlay characteristics, including points for the overlay and styles such as width, color, and dash pattern.

Properties

points
[string]

An array of latitude and longitude coordinate pairs that specify points for a polyline overlay, such as:

"points": ["37.779656,-122.511686","37.779656,-122.511686"]
strokeColor
string

The color of the line drawn between each coordinate point. Supported values are HTML color names or hexadecimal color codes.

lineWidth
integer

The width of the line, in CSS pixels.

lineDash
[int64]

An array that defines a line's dash pattern, where numbers represent line and gap lengths in CSS pixels. For example, [10,5] means draw a line for 10 pixels, leave a 5 pixel gap and repeat. An empty array draws a solid line, which is the default.

See Also

Essentials

Generating a URL and Signature to Create a Maps Web Snapshot

Create a Snapshot URL and generate a signature to validate the request.

Create a Maps Web Snapshot

Generate a map image with characteristics you provide in the query parameters and sign using your private key.

Beta
object Annotation

An object for a Snapshot URL that describes annotation characteristics.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software