現在、興味のあるポイントを特定するために地図が必要なiPhoneアプリを作成していますが、場所は非常に近く、以下のコードを使用するとマーカーが1つしか表示されません
mapView_ = [GMSMapView mapWithFrame:CGRectZero camera:camera];
mapView_.myLocationEnabled=YES;
self.view = mapView_;
//markers
//.......
GMSMarker *hotel = [[GMSMarker alloc]init];
hotel.position = CLLocationCoordinate2DMake(28.458788,-81.470522);
hotel.title = @"International Palms Hotel";
hotel.snippet=@"Phone number: 800-354-8332";
hotel.map =mapView_;
GMSMarker *ksc = [[GMSMarker alloc]init];
ksc.position = CLLocationCoordinate2DMake(28.458788,-80.6508);
ksc.title = @"Kennedy Space Center Visitor Complex";
ksc.snippet=@"Day 2 activity";
ksc.map =mapView_;
GMSMarker *bc = [[GMSMarker alloc]init];
bc.position = CLLocationCoordinate2DMake(28.458788,-81.470522);
bc.title = @"Cocoa Beach";
bc.snippet=@"Day 2";
bc.map =mapView_;
GMSMarker *bg = [[GMSMarker alloc]init];
bg.position = CLLocationCoordinate2DMake(28.458788,-81.470522);
bg.title = @"Busch Gardens";
bg.snippet=@"Day 3";
bg.map =mapView_;
GMSMarker *ww = [[GMSMarker alloc]init];
ww.position = CLLocationCoordinate2DMake(28.458788,-81.470523);
ww.title = @"“Wet and Wild” Water Park";
ww.snippet=@"Day 4";
ww.map =mapView_;
どんな助けでもとても役に立ちます
ありがとう
トム