0
그래서 내 주요보기 중 하나에서 작은보기로 Google지도를 얻었습니다. 위치를 표시하는 배지를 얻으려고합니다. 예를 들어 Google에서 보여줍니다. 그러나지도를 크기 조정 가능한보기 안에 표시하려고 시도한 후에 (다른보기에서 표시 할 수 있도록) 내가 한 방법은 배지를 추가하는 방법이없는 것 같습니다.Google지도 iOS SDK - 배지 추가
이 내 코드는 지금까지 있습니다 :
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:-33.86
longitude:151.20
zoom:6];
// Create marker
CLLocationCoordinate2D position = CLLocationCoordinate2DMake(-33.86, 151.20);
GMSMarker *marker = [GMSMarker markerWithPosition:position];
marker.title = @"Hello World";
self.map.camera = camera;
self.map합니다 (.H 파일) 인 :
@property (weak, nonatomic) IBOutlet GMSMapView *map;
이
는 구글의 예는 다음과 같습니다// Google map
// Create a GMSCameraPosition that tells the map to display the
// coordinate -33.86,151.20 at zoom level 6.
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:-33.86
longitude:151.20
zoom:6];
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(-33.86, 151.20);
marker.title = @"Sydney";
marker.snippet = @"Australia";
marker.map = mapView_;
그러나 나는이 둘을 결합 할 수없는 것처럼 보입니다.