Commit 775e91a977adb6eafd44234eb30063cd4638ea0d

Authored by guoruipeng
1 parent 53833bb1

no message

Showing 30 changed files with 17 additions and 12 deletions
CNLiveMapModule/Assets/CNLiveMapModule.xcassets/backWhite.imageset/Contents.json renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_backWhite.imageset/Contents.json
CNLiveMapModule/Assets/CNLiveMapModule.xcassets/backWhite.imageset/backWhite@2x.png renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_backWhite.imageset/backWhite@2x.png

2.03 KB

CNLiveMapModule/Assets/CNLiveMapModule.xcassets/backWhite.imageset/backWhite@3x.png renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_backWhite.imageset/backWhite@3x.png

2.28 KB

CNLiveMapModule/Assets/CNLiveMapModule.xcassets/pyq_fengxiang.imageset/Contents.json renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_pyq_fengxiang.imageset/Contents.json
CNLiveMapModule/Assets/CNLiveMapModule.xcassets/pyq_fengxiang.imageset/pyq_fengxiang@2x.png renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_pyq_fengxiang.imageset/pyq_fengxiang@2x.png

1.15 KB

CNLiveMapModule/Assets/CNLiveMapModule.xcassets/pyq_fengxiang.imageset/pyq_fengxiang@3x.png renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_pyq_fengxiang.imageset/pyq_fengxiang@3x.png

1.3 KB

CNLiveMapModule/Assets/CNLiveMapModule.xcassets/userPosition.imageset/Contents.json renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_userPosition.imageset/Contents.json
CNLiveMapModule/Assets/CNLiveMapModule.xcassets/userPosition.imageset/userPosition.png renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_userPosition.imageset/userPosition.png

3.58 KB

CNLiveMapModule/Assets/CNLiveMapModule.xcassets/where_chose.imageset/Contents.json renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_where_chose.imageset/Contents.json
CNLiveMapModule/Assets/CNLiveMapModule.xcassets/where_chose.imageset/where_chose@2x.png renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_where_chose.imageset/where_chose@2x.png

1.23 KB

CNLiveMapModule/Assets/CNLiveMapModule.xcassets/where_chose.imageset/where_chose@3x.png renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_where_chose.imageset/where_chose@3x.png

2.97 KB

CNLiveMapModule/Assets/CNLiveMapModule.xcassets/where_no_select.imageset/Contents.json renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_where_no_select.imageset/Contents.json
CNLiveMapModule/Assets/CNLiveMapModule.xcassets/where_no_select.imageset/where_no_select@2x.png renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_where_no_select.imageset/where_no_select@2x.png

2.39 KB

CNLiveMapModule/Assets/CNLiveMapModule.xcassets/where_no_select.imageset/where_no_select@3x.png renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_where_no_select.imageset/where_no_select@3x.png

4.78 KB

CNLiveMapModule/Assets/CNLiveMapModule.xcassets/where_point_b.imageset/Contents.json renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_where_point_b.imageset/Contents.json
CNLiveMapModule/Assets/CNLiveMapModule.xcassets/where_point_b.imageset/where_point_b@2x.png renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_where_point_b.imageset/where_point_b@2x.png

1.59 KB

CNLiveMapModule/Assets/CNLiveMapModule.xcassets/where_point_b.imageset/where_point_b@3x.png renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_where_point_b.imageset/where_point_b@3x.png

3.15 KB

CNLiveMapModule/Assets/CNLiveMapModule.xcassets/where_position.imageset/Contents.json renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_where_position.imageset/Contents.json
CNLiveMapModule/Assets/CNLiveMapModule.xcassets/where_position.imageset/where_position@2x.png renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_where_position.imageset/where_position@2x.png

2.41 KB

CNLiveMapModule/Assets/CNLiveMapModule.xcassets/where_position.imageset/where_position@3x.png renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_where_position.imageset/where_position@3x.png

5.64 KB

CNLiveMapModule/Assets/CNLiveMapModule.xcassets/where_route.imageset/Contents.json renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_where_route.imageset/Contents.json
CNLiveMapModule/Assets/CNLiveMapModule.xcassets/where_route.imageset/where_route@2x.png renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_where_route.imageset/where_route@2x.png

5.32 KB

CNLiveMapModule/Assets/CNLiveMapModule.xcassets/where_route.imageset/where_route@3x.png renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_where_route.imageset/where_route@3x.png

8.89 KB

CNLiveMapModule/Assets/CNLiveMapModule.xcassets/where_select.imageset/Contents.json renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_where_select.imageset/Contents.json
CNLiveMapModule/Assets/CNLiveMapModule.xcassets/where_select.imageset/where_select@2x.png renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_where_select.imageset/where_select@2x.png

2.39 KB

CNLiveMapModule/Assets/CNLiveMapModule.xcassets/where_select.imageset/where_select@3x.png renamed to CNLiveMapModule/Assets/CNLiveMapModule.xcassets/map_module_where_select.imageset/where_select@3x.png

4.73 KB

CNLiveMapModule/Classes/Controller/CNLiveMapDetailViewController.mm
... ... @@ -105,7 +105,8 @@ BMKRouteSearchDelegate
105 105 //返回按钮
106 106 UIButton *backBtn = [[UIButton alloc] init];
107 107 backBtn.backgroundColor = [[UIColor lightGrayColor] colorWithAlphaComponent:0.8];
108   - [backBtn setImage:[UIImage imageNamed:@"backWhite"] forState:UIControlStateNormal];
  108 + UIImage *image = [self getImageName:@"map_module_backWhite" bundleName:@"CNLiveMapModule" targetClass:[self class]];
  109 + [backBtn setImage:image forState:UIControlStateNormal];
109 110 [backBtn addTarget:self action:@selector(backController) forControlEvents:UIControlEventTouchUpInside];
110 111 [self.mapView addSubview:backBtn];
111 112 [backBtn mas_makeConstraints:^(MASConstraintMaker *make) {
... ... @@ -119,7 +120,8 @@ BMKRouteSearchDelegate
119 120 UIButton *sendBtn = [[UIButton alloc] init];
120 121 sendBtn.backgroundColor = [[UIColor lightGrayColor] colorWithAlphaComponent:0.8];
121 122 [sendBtn addTarget:self action:@selector(selectToOperation) forControlEvents:UIControlEventTouchUpInside];
122   - [sendBtn setImage:[UIImage imageNamed:@"pyq_fengxiang"] forState:UIControlStateNormal];
  123 + UIImage *image1 = [self getImageName:@"map_module_pyq_fengxiang" bundleName:@"CNLiveMapModule" targetClass:[self class]];
  124 + [sendBtn setImage:image1 forState:UIControlStateNormal];
123 125 [self.mapView addSubview:sendBtn];
124 126 [sendBtn mas_makeConstraints:^(MASConstraintMaker *make) {
125 127 make.right.equalTo(self.mapView.mas_right).offset(-15);
... ... @@ -486,7 +488,8 @@ BMKRouteSearchDelegate
486 488 if (annotationView == nil) {
487 489 annotationView = [[BMKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:pointReuseIndentifier];
488 490 }
489   - annotationView.image = [UIImage imageNamed:@"where_point_b"];
  491 + UIImage *image1 = [self getImageName:@"map_module_where_point_b" bundleName:@"CNLiveMapModule" targetClass:[self class]];
  492 + annotationView.image = image1;
490 493 annotationView.pinColor = BMKPinAnnotationColorRed;
491 494 // annotationView.canShowCallout= YES; //设置气泡可以弹出,默认为NO
492 495 // annotationView.animatesDrop=YES; //设置标注动画显示,默认为NO
... ... @@ -575,7 +578,8 @@ BMKRouteSearchDelegate
575 578 -(UIButton *)showListBtn{
576 579 if (!_showListBtn) {
577 580 _showListBtn = [[UIButton alloc] init];
578   - [_showListBtn setImage:[UIImage imageNamed:@"where_route"] forState:UIControlStateNormal];
  581 + UIImage *image = [self getImageName:@"map_module_where_route" bundleName:@"CNLiveMapModule" targetClass:[self class]];
  582 + [_showListBtn setImage:image forState:UIControlStateNormal];
579 583 [_showListBtn addTarget:self action:@selector(showListSelectBtn) forControlEvents:UIControlEventTouchUpInside];
580 584 }
581 585 return _showListBtn;
... ... @@ -598,7 +602,8 @@ BMKRouteSearchDelegate
598 602 // //定位图标名称,需要将该图片放到 mapapi.bundle/images 目录下
599 603 // // param.locationViewImgName = @"icon_nav_bus";
600 604 // //用户自定义定位图标,V4.2.1以后支持
601   - param.locationViewImage = [UIImage imageNamed:@"userPosition"];
  605 + UIImage *image = [self getImageName:@"map_module_userPosition" bundleName:@"CNLiveMapModule" targetClass:[self class]];
  606 + param.locationViewImage = image;
602 607 // //根据配置参数更新定位图层样式
603 608 // //设置显示精度圈,默认YES
604 609 // param.isAccuracyCircleShow = NO;
... ... @@ -611,7 +616,8 @@ BMKRouteSearchDelegate
611 616 -(UIButton *)resetBtn{
612 617 if (!_resetBtn) {
613 618 _resetBtn = [[UIButton alloc] init];
614   - [_resetBtn setImage:[UIImage imageNamed:@"where_select"] forState:UIControlStateNormal];
  619 + UIImage *image = [self getImageName:@"map_module_where_select" bundleName:@"CNLiveMapModule" targetClass:[self class]];
  620 + [_resetBtn setImage:image forState:UIControlStateNormal];
615 621 [_resetBtn addTarget:self action:@selector(clickRestBtn) forControlEvents:UIControlEventTouchUpInside];
616 622 }
617 623 return _resetBtn;
... ...
CNLiveMapModule/Classes/Controller/CNLiveMapViewController.m
... ... @@ -466,7 +466,7 @@ UISearchBarDelegate
466 466 annotationView = [[BMKAnnotationView alloc] initWithAnnotation:annotation
467 467 reuseIdentifier:reuseIndetifier];
468 468 }
469   - UIImage *image = [self getImageName:@"where_point_b" bundleName:@"CNLiveMapModule" targetClass:[self class]];
  469 + UIImage *image = [self getImageName:@"map_module_where_point_b" bundleName:@"CNLiveMapModule" targetClass:[self class]];
470 470  
471 471 annotationView.image = image;
472 472 return annotationView;
... ... @@ -558,7 +558,7 @@ UISearchBarDelegate
558 558 //定位图标名称,需要将该图片放到 mapapi.bundle/images 目录下
559 559 // param.locationViewImgName = @"icon_nav_bus";
560 560 //用户自定义定位图标,V4.2.1以后支持
561   - UIImage *image = [self getImageName:@"where_position" bundleName:@"CNLiveMapModule" targetClass:[self class]];
  561 + UIImage *image = [self getImageName:@"map_module_where_position" bundleName:@"CNLiveMapModule" targetClass:[self class]];
562 562 param.locationViewImage = image;
563 563 //根据配置参数更新定位图层样式
564 564 //设置显示精度圈,默认YES
... ... @@ -581,8 +581,8 @@ UISearchBarDelegate
581 581 -(UIButton *)repositionBtn{
582 582 if (!_repositionBtn) {
583 583 _repositionBtn = [UIButton buttonWithType:UIButtonTypeCustom];
584   - UIImage *image1 = [self getImageName:@"where_select" bundleName:@"CNLiveMapModule" targetClass:[self class]];
585   - UIImage *image2 = [self getImageName:@"where_no_select" bundleName:@"CNLiveMapModule" targetClass:[self class]];
  584 + UIImage *image1 = [self getImageName:@"map_module_where_select" bundleName:@"CNLiveMapModule" targetClass:[self class]];
  585 + UIImage *image2 = [self getImageName:@"map_module_where_no_select" bundleName:@"CNLiveMapModule" targetClass:[self class]];
586 586  
587 587 [_repositionBtn setImage:image1 forState:UIControlStateNormal];
588 588 [_repositionBtn setImage:image2 forState:UIControlStateSelected];
... ...
CNLiveMapModule/Classes/Map_PrefixHeader.pch
... ... @@ -24,7 +24,6 @@
24 24 #import <CNLiveEnvironment/CNLiveEnvironment.h>
25 25 #import <CNLiveCustomUI/CNLiveRefreshHeader.h>
26 26 #import <CNLiveServices/CNLiveServices.h>
27   -#import <UIMapKit/UIMapKit.h>
28 27 // Include any system framework and library headers here that should be included in all compilation units.
29 28 // You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
30 29  
... ...
CNLiveMapModule/Classes/View/CNLiveMapTableViewCell.m
... ... @@ -107,7 +107,7 @@
107 107 -(UIImageView *)choseIMG{
108 108 if (_choseIMG == nil) {
109 109 _choseIMG = [[UIImageView alloc] init];
110   - UIImage *image = [self getImageName:@"where_chose" bundleName:@"CNLiveMapModule" targetClass:[self class]];
  110 + UIImage *image = [self getImageName:@"map_module_where_chose" bundleName:@"CNLiveMapModule" targetClass:[self class]];
111 111 _choseIMG.image = image;
112 112 _choseIMG.hidden = YES;
113 113 }
... ...