放大GMSMap后未显示正确的视图

时间:2017-01-24 08:49:12

标签: ios objective-c google-maps mkmapview gmsmapview

我一直在我的应用中使用 GMSMap 。我在地图中显示当前位置。但是在缩放地图后,它不会显示城市和州,也会在地图中看不到路径。我想在地图上缩放并清除当前州和城市的地图。请帮助我解决我的问题

我使用此代码

 GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:22.6987 longitude:75.8817 zoom:0];
GMSMapView *mapView = [GMSMapView mapWithFrame:CGRectZero camera:camera];
mapView.myLocationEnabled = YES;
self.view = mapView;

// Creates a marker in the center of the map.
GMSMarker *marker = [[GMSMarker alloc] init];
marker.position = CLLocationCoordinate2DMake(22.6987, 75.8817);
marker.title = @"indore";
marker.snippet = @"India";
marker.map = mapView;

Now Show Look like please see ones

0 个答案:

没有答案