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