Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/visual-studio-2010/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 谷歌地图在错误的位置画圆圈_Ios_Swift_Google Maps Sdk Ios - Fatal编程技术网

Ios 谷歌地图在错误的位置画圆圈

Ios 谷歌地图在错误的位置画圆圈,ios,swift,google-maps-sdk-ios,Ios,Swift,Google Maps Sdk Ios,我用相同的坐标显示标记和画圈。我不知道为什么,但我的记号笔有点向上偏移了。你认为问题出在哪里 尝试设置标记的groundAnchor属性: marker.groundAnchor = CGPoint(x: 0.5, y: 0.5) 是的,我刚刚知道,标记并没有相对位置居中。它只是把马克的底部放到了这个位置。@VityaShurapov很高兴我能帮忙:] marker.groundAnchor = CGPoint(x: 0.5, y: 0.5)

我用相同的坐标显示标记和画圈。我不知道为什么,但我的记号笔有点向上偏移了。你认为问题出在哪里


尝试设置标记的
groundAnchor
属性:

marker.groundAnchor = CGPoint(x: 0.5, y: 0.5)

是的,我刚刚知道,标记并没有相对位置居中。它只是把马克的底部放到了这个位置。@VityaShurapov很高兴我能帮忙:]
marker.groundAnchor = CGPoint(x: 0.5, y: 0.5)