Commit b5dd20ca authored by lmj_521aiau@163.com's avatar lmj_521aiau@163.com

no message

parent 0e962746
......@@ -34,6 +34,7 @@
@property (nonatomic, strong) ZJAlertView *alertView;
@property (nonatomic, assign) BOOL refershMyself;
@property (nonatomic, assign) ZJMapType mapType;
/********************/
@property (nonatomic, strong) MAMapView * GDMapView;
......@@ -167,26 +168,45 @@
}];
}
- (void)setMapType:(ZJMapType)mapType{
_mapType = mapType;
if (_mapType == ZJ_GMSMapType) {
_GGMapView.hidden = NO;
_GDMapView.hidden = YES;
}else{
_GGMapView.hidden = YES;
_GDMapView.hidden = NO;
}
}
- (void)setupUI {
_zoom = 18;
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:+40.75921100 longitude:-73.98463800 zoom:_zoom];
///初始化地图
// self.mapView = [[MAMapView alloc] initWithFrame:self.view.bounds];
self.GGMapView = [GMSMapView mapWithFrame:self.view.bounds camera:camera];
_GGMapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
///把地图添加至view
_GGMapView.delegate = self;
[self.view addSubview: _GGMapView];
_GGMapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
_GGMapView.hidden = YES;
///如果您需要进入地图就显示定位小蓝点,则需要下面两行代码
// _mapView.showsUserLocation = false;
_GGMapView.delegate = self;
// _mapView.zoomLevel = 14;
// _mapView.showsScale = false;
// _mapView.showsCompass = false;
self.GDMapView = [[MAMapView alloc] initWithFrame:self.view.bounds];
_GDMapView.delegate = self;
_GDMapView.zoomLevel = 14;
_GDMapView.showsScale = false;
_GDMapView.showsCompass = false;
//如果您需要进入地图就显示定位小蓝点,则需要下面两行代码
_GDMapView.showsUserLocation = false;
[self.view addSubview: _GDMapView];
_GDMapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
_GDMapView.hidden = YES;
self.track = [[MAAnimatedAnnotation alloc] init];
self.track.title = @"pointReuseIndetifier1";
[_GDMapView addAnnotation:self.track];
// 添加 card view
self.trackTimeView = [[[NSBundle mainBundle] loadNibNamed:@"ZJUserTrackTimeView" owner:self options:nil] lastObject];
......@@ -215,9 +235,6 @@
weakSelf.endDate = endDate;
};
// self.track = [[MAAnimatedAnnotation alloc] init];
// self.track.title = @"pointReuseIndetifier1";
// [self.mapView addAnnotation:self.track];
}
- (ZJAlertView *)getAlertView:(NSString *)title subtitle:(NSString *)subtitle leftButtonTitle:(NSString *)leftButtonTitle rightButtonTitle:(NSString *)rightButtonTitle {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment