urlmapkiturl-parametersapple-maps

Whats the correct format for the Apple Maps web snapshot overlay?


I'm trying to create an Apple Maps mapkit web snapshot. What's the correct way to format an overlay object to pass into the url?

I've ended up with the following url where the object is formatted as follows:

overlays=%3Fpoints%3D37.8323%252C-122.5401%252C37.83761%252C-122.54399%26strokeColor%3D%2523935DFF%26lineWidth%3D2

Everything works fine in the URL except I don't understand the correct format to pass in the overlay.


Solution

  • It actually requires wrapping the json object in an array to work correctly.