Apple Maps网络快照叠加的正确格式是什么? [英] Whats the correct format for the Apple Maps web snapshot overlay?

查看:74
本文介绍了Apple Maps网络快照叠加的正确格式是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建 Apple Maps Mapkit网络快照.格式化叠加层对象以传递到url的正确方法是什么?

>

我最终得到了解决方案

实际上需要将json对象包装在数组中才能正常工作.

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.

解决方案

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

这篇关于Apple Maps网络快照叠加的正确格式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆