Advertisement

移动GMSMarker在Google地图上,并添加动画效果

阅读量:
复制代码
 //地图的初始化位置

    
  GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:34.223817
    
                                                         longitude:108.88056
    
                                                              zoom:1.0];
    
  
    
 //添加地图
    
 GMSMapView * mapView = [GMSMapView mapWithFrame:self.view.bounds camera:camera];
    
 mapView.delegate = self; //注册代理属性
    
 mapView.settings.myLocationButton = YES;
    
 mapView.settings.compassButton = YES;//显示指南针
    
 [self.view addSubview:mapView];
    
  
    
 //创建位置
    
  CLLocationCoordinate2D posit

全部评论 (0)

还没有任何评论哟~