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

no message

parent 0e962746
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
@property (nonatomic, strong) ZJAlertView *alertView; @property (nonatomic, strong) ZJAlertView *alertView;
@property (nonatomic, assign) BOOL refershMyself; @property (nonatomic, assign) BOOL refershMyself;
@property (nonatomic, assign) ZJMapType mapType;
/********************/ /********************/
@property (nonatomic, strong) MAMapView * GDMapView; @property (nonatomic, strong) MAMapView * GDMapView;
...@@ -167,26 +168,45 @@ ...@@ -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 { - (void)setupUI {
_zoom = 18; _zoom = 18;
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:+40.75921100 longitude:-73.98463800 zoom:_zoom]; 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]; self.GGMapView = [GMSMapView mapWithFrame:self.view.bounds camera:camera];
_GGMapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; _GGMapView.delegate = self;
///把地图添加至view
[self.view addSubview: _GGMapView]; [self.view addSubview: _GGMapView];
///如果您需要进入地图就显示定位小蓝点,则需要下面两行代码 _GGMapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
// _mapView.showsUserLocation = false; _GGMapView.hidden = YES;
_GGMapView.delegate = self;
// _mapView.zoomLevel = 14; self.GDMapView = [[MAMapView alloc] initWithFrame:self.view.bounds];
// _mapView.showsScale = false; _GDMapView.delegate = self;
// _mapView.showsCompass = false; _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 // 添加 card view
self.trackTimeView = [[[NSBundle mainBundle] loadNibNamed:@"ZJUserTrackTimeView" owner:self options:nil] lastObject]; self.trackTimeView = [[[NSBundle mainBundle] loadNibNamed:@"ZJUserTrackTimeView" owner:self options:nil] lastObject];
...@@ -215,9 +235,6 @@ ...@@ -215,9 +235,6 @@
weakSelf.endDate = endDate; 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 { - (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