【发布时间】:2019-02-05 11:27:28
【问题描述】:
我在我的应用程序中使用来自谷歌地图 SDK 的街景 API。 要求是显示带有禁用手势控制的街景。我已将此代码添加到我的应用程序
GMSPanoramaView *panoView = [[GMSPanoramaView alloc] initWithFrame:CGRectMake(0, 0, _placesView.frame.size.width, _placesView.frame.size.height)];
[_placesView addSubview:panoView];
panoView.delegate = self;
[panoView setAllGesturesEnabled:NO];
[panoView moveNearCoordinate:addresslocationCoordinates];
但是我在展示街景时得到的方向与网络上的方向不同。
两幅图中的位置相同,但走向不同的方向。
如果我想将街景与网络视图对齐,应该怎么做?
【问题讨论】:
标签: ios google-maps google-maps-sdk-ios google-street-view gmsmapview