gpt4 book ai didi

javascript - 使用 iOS map 链接 api 在标记上设置标签

转载 作者:可可西里 更新时间:2023-11-01 03:19:13 33 4
gpt4 key购买 nike

我正在尝试使用 map 链接 API 在 map 标记上设置标签。根据苹果的文档,如果我将“q”参数与“地址”参数一起使用,它将以“q”参数作为标签。但我无法正常工作。

Blockquote The q parameter can also be used as a label if the location is explicitly defined in the ll or address parameters docs.

这是我试过的网址

http://maps.apple.com/?address=San+Jose&q=Blah

我希望它说“Blah”作为标记的标签。

谢谢。

最佳答案

我刚遇到这个问题并向 Apple 提交了错误报告。根据他们的文档,qaddress 参数的组合应该将标记标签设置为 q 的值。

与此同时,您可以使用 ll 参数使其正常工作:

http://maps.apple.com/?q=Blah&ll=34.0836834,-118.3468481

关于 ll 参数的更多信息:

A comma-separated pair of floating point values that represent latitude and longitude (in that order).

https://developer.apple.com/library/content/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html#//apple_ref/doc/uid/TP40007899-CH5-SW1

关于javascript - 使用 iOS map 链接 api 在标记上设置标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38854312/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com