我目前正在创建一个 iPhone 应用程序,其中需要地图来精确定位兴趣点,但位置非常接近,当我使用下面的代码时,只出现一个标记
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_;
任何帮助都会很有帮助
谢谢
汤姆