├── LICENSE ├── README.md └── WeChatLocationDemo ├── WeChatLocationDemo.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── huiyang.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── huiyang.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ ├── WeChatLocationDemo.xcscheme │ └── xcschememanagement.plist ├── WeChatLocationDemo ├── AppDelegate.h ├── AppDelegate.m ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard ├── Images.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── LaunchImage.launchimage │ │ └── Contents.json │ ├── location_back_icon.imageset │ │ ├── Contents.json │ │ └── location_back_icon@2x.png │ ├── location_blue_icon.imageset │ │ ├── Contents.json │ │ └── location_blue_icon@2x.png │ ├── location_green_icon.imageset │ │ ├── Contents.json │ │ └── location_green_icon@2x.png │ └── poi_1.imageset │ │ ├── Contents.json │ │ └── poi_1.png ├── Info.plist ├── LocationCell.h ├── LocationCell.m ├── Model │ ├── LocationModel.h │ └── LocationModel.m ├── Resources │ └── poi_1.png ├── ThirdParty │ └── Masonry │ │ ├── MASCompositeConstraint.h │ │ ├── MASCompositeConstraint.m │ │ ├── MASConstraint+Private.h │ │ ├── MASConstraint.h │ │ ├── MASConstraint.m │ │ ├── MASConstraintMaker.h │ │ ├── MASConstraintMaker.m │ │ ├── MASLayoutConstraint.h │ │ ├── MASLayoutConstraint.m │ │ ├── MASUtilities.h │ │ ├── MASViewAttribute.h │ │ ├── MASViewAttribute.m │ │ ├── MASViewConstraint.h │ │ ├── MASViewConstraint.m │ │ ├── Masonry.h │ │ ├── NSArray+MASAdditions.h │ │ ├── NSArray+MASAdditions.m │ │ ├── NSArray+MASShorthandAdditions.h │ │ ├── NSLayoutConstraint+MASDebugAdditions.h │ │ ├── NSLayoutConstraint+MASDebugAdditions.m │ │ ├── View+MASAdditions.h │ │ ├── View+MASAdditions.m │ │ └── View+MASShorthandAdditions.h ├── Vendors │ └── BaiduMapAPI.framework │ │ ├── BaiduMapAPI │ │ ├── Headers │ │ ├── BMKActionPaopaoView.h │ │ ├── BMKAnnotation.h │ │ ├── BMKAnnotationView.h │ │ ├── BMKArcline.h │ │ ├── BMKArclineView.h │ │ ├── BMKBaseComponent.h │ │ ├── BMKBusLineSearch.h │ │ ├── BMKBusLineSearchOption.h │ │ ├── BMKCircle.h │ │ ├── BMKCircleView.h │ │ ├── BMKCloudPOIList.h │ │ ├── BMKCloudSearch.h │ │ ├── BMKCloudSearchComponent.h │ │ ├── BMKCloudSearchInfo.h │ │ ├── BMKGeneralDelegate.h │ │ ├── BMKGeocodeSearch.h │ │ ├── BMKGeocodeSearchOption.h │ │ ├── BMKGeocodeType.h │ │ ├── BMKGeometry.h │ │ ├── BMKGradient.h │ │ ├── BMKGroundOverlay.h │ │ ├── BMKGroundOverlayView.h │ │ ├── BMKHeatMap.h │ │ ├── BMKLocationComponent.h │ │ ├── BMKLocationService.h │ │ ├── BMKLocationViewDisplayParam.h │ │ ├── BMKMapComponent.h │ │ ├── BMKMapManager.h │ │ ├── BMKMapStatus.h │ │ ├── BMKMapView.h │ │ ├── BMKMultiPoint.h │ │ ├── BMKNavigation.h │ │ ├── BMKOfflineMap.h │ │ ├── BMKOfflineMapType.h │ │ ├── BMKOverlay.h │ │ ├── BMKOverlayGLBasicView.h │ │ ├── BMKOverlayPathView.h │ │ ├── BMKOverlayView.h │ │ ├── BMKPinAnnotationView.h │ │ ├── BMKPoiSearch.h │ │ ├── BMKPoiSearchOption.h │ │ ├── BMKPoiSearchType.h │ │ ├── BMKPointAnnotation.h │ │ ├── BMKPolygon.h │ │ ├── BMKPolygonView.h │ │ ├── BMKPolyline.h │ │ ├── BMKPolylineView.h │ │ ├── BMKRouteSearch.h │ │ ├── BMKRouteSearchOption.h │ │ ├── BMKRouteSearchType.h │ │ ├── BMKSearchComponent.h │ │ ├── BMKShape.h │ │ ├── BMKShareURLSearch.h │ │ ├── BMKShareUrlSearchOption.h │ │ ├── BMKSuggestionSearch.h │ │ ├── BMKSuggestionSearchOption.h │ │ ├── BMKTypes.h │ │ ├── BMKUserLocation.h │ │ ├── BMKUtilsComponent.h │ │ ├── BMKVersion.h │ │ └── BMapKit.h │ │ ├── Resources │ │ └── mapapi.bundle │ │ │ ├── files │ │ │ ├── Beijing, China.gpx │ │ │ ├── DVDirectory.cfg │ │ │ ├── DVDirectory_Retina.cfg │ │ │ ├── DVHotMap.cfg │ │ │ ├── DVHotMap_Retina.cfg │ │ │ ├── DVHotcity.cfg │ │ │ ├── DVHotcity_Retina.cfg │ │ │ ├── DVVersion.cfg │ │ │ ├── DVVersion_Retina.cfg │ │ │ ├── ResPack.rs │ │ │ ├── channel │ │ │ ├── mapstyle.sty │ │ │ ├── satellitestyle.sty │ │ │ └── trafficstyle.sty │ │ │ └── images │ │ │ ├── baidumap_logo.png │ │ │ ├── baidumap_logo@2x.png │ │ │ ├── bnavi_icon_location_fixed.png │ │ │ ├── bnavi_icon_location_fixed@2x.png │ │ │ ├── direction_wheel.png │ │ │ ├── direction_wheel@2x.png │ │ │ ├── icon_action_paopao_middle_left.png │ │ │ ├── icon_action_paopao_middle_left@2x.png │ │ │ ├── icon_action_paopao_middle_left_highlighted.png │ │ │ ├── icon_action_paopao_middle_left_highlighted@2x.png │ │ │ ├── icon_action_paopao_middle_right.png │ │ │ ├── icon_action_paopao_middle_right@2x.png │ │ │ ├── icon_action_paopao_middle_right_highlighted.png │ │ │ ├── icon_action_paopao_middle_right_highlighted@2x.png │ │ │ ├── icon_cellphone.png │ │ │ ├── icon_cellphone2.png │ │ │ ├── icon_cellphone2@2x.png │ │ │ ├── icon_cellphone@2x.png │ │ │ ├── icon_center_point.png │ │ │ ├── icon_center_point@2x.png │ │ │ ├── icon_compass.png │ │ │ ├── icon_compass@2x.png │ │ │ ├── icon_compass_background.png │ │ │ ├── icon_compass_background@2x.png │ │ │ ├── icon_direction.png │ │ │ ├── icon_direction@2x.png │ │ │ ├── icon_nav_bus.png │ │ │ ├── icon_nav_bus@2x.png │ │ │ ├── icon_nav_end.png │ │ │ ├── icon_nav_end@2x.png │ │ │ ├── icon_nav_rail.png │ │ │ ├── icon_nav_rail@2x.png │ │ │ ├── icon_nav_start.png │ │ │ ├── icon_nav_start@2x.png │ │ │ ├── icon_nav_waypoint.png │ │ │ ├── icon_nav_waypoint@2x.png │ │ │ ├── icon_paopao_middle_left.png │ │ │ ├── icon_paopao_middle_left@2x.png │ │ │ ├── icon_paopao_middle_left_highlighted.png │ │ │ ├── icon_paopao_middle_left_highlighted@2x.png │ │ │ ├── icon_paopao_middle_right.png │ │ │ ├── icon_paopao_middle_right@2x.png │ │ │ ├── icon_paopao_middle_right_highlighted.png │ │ │ ├── icon_paopao_middle_right_highlighted@2x.png │ │ │ ├── lineDashTexture.png │ │ │ ├── pin_green.png │ │ │ ├── pin_green@2x.png │ │ │ ├── pin_purple.png │ │ │ ├── pin_purple@2x.png │ │ │ ├── pin_red.png │ │ │ ├── pin_red@2x.png │ │ │ └── test.png │ │ └── readme.txt ├── ViewController.h ├── ViewController.m └── main.m └── WeChatLocationDemoTests ├── Info.plist └── WeChatLocationDemoTests.m /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 yanghui 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WeChat-Location 2 | WeChat Location 3 | 利用百度地图,高仿微信发送地理位置功能 4 | ![image](https://raw.githubusercontent.com/xiaoyangh/screenshots/master/IMG_0016.PNG) 5 | ![image](https://raw.githubusercontent.com/xiaoyangh/screenshots/master/IMG_0017.PNG) 6 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo.xcodeproj/project.xcworkspace/xcuserdata/huiyang.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo.xcodeproj/project.xcworkspace/xcuserdata/huiyang.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo.xcodeproj/xcuserdata/huiyang.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 20 | 21 | 22 | 24 | 36 | 37 | 38 | 40 | 52 | 53 | 54 | 56 | 68 | 69 | 70 | 72 | 84 | 85 | 86 | 88 | 100 | 101 | 102 | 104 | 116 | 117 | 118 | 120 | 132 | 133 | 134 | 136 | 148 | 149 | 150 | 152 | 164 | 165 | 166 | 167 | 168 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo.xcodeproj/xcuserdata/huiyang.xcuserdatad/xcschemes/WeChatLocationDemo.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 75 | 77 | 83 | 84 | 85 | 86 | 87 | 88 | 94 | 96 | 102 | 103 | 104 | 105 | 107 | 108 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo.xcodeproj/xcuserdata/huiyang.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | WeChatLocationDemo.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 320A8C111B12D07400683E8E 16 | 17 | primary 18 | 19 | 20 | 320A8C2A1B12D07400683E8E 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // WeChatLocationDemo 4 | // 5 | // Created by HuiYang on 15/5/25. 6 | // Copyright (c) 2015年 Email:xiaoyangh@foxmail.com. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // WeChatLocationDemo 4 | // 5 | // Created by HuiYang on 15/5/25. 6 | // Copyright (c) 2015年 Email:xiaoyangh@foxmail.com. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | #import "ViewController.h" 11 | #import 12 | 13 | #warning 再次配置你的百度key[这是我自己的私人key,随时可能失效😄 14 | 15 | #define KBaiduMapKey @"d0jqHI5ybsxSSOneCXAbGIVa" 16 | 17 | @interface AppDelegate () 18 | { 19 | BMKMapManager* mapManager; 20 | } 21 | @end 22 | 23 | @implementation AppDelegate 24 | 25 | 26 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 27 | { 28 | 29 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 30 | 31 | [self setupBaiduMap]; 32 | 33 | UINavigationController *rootNav =[[UINavigationController alloc]initWithRootViewController:[[ViewController alloc] init]]; 34 | [self.window setRootViewController:rootNav]; 35 | [self.window makeKeyAndVisible]; 36 | 37 | return YES; 38 | } 39 | 40 | -(void)setupBaiduMap 41 | { 42 | mapManager = [[BMKMapManager alloc]init]; 43 | BOOL ret = [mapManager start:KBaiduMapKey generalDelegate:self]; 44 | 45 | if (!ret) { 46 | NSLog(@"manager start failed!"); 47 | } 48 | } 49 | 50 | - (void)applicationWillResignActive:(UIApplication *)application { 51 | /* 52 | Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 53 | Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 54 | */ 55 | [BMKMapView willBackGround]; 56 | } 57 | 58 | 59 | - (void)applicationDidEnterBackground:(UIApplication *)application { 60 | /* 61 | Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 62 | If your application supports background execution, called instead of applicationWillTerminate: when the user quits. 63 | */ 64 | } 65 | 66 | 67 | - (void)applicationWillEnterForeground:(UIApplication *)application { 68 | /* 69 | Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background. 70 | */ 71 | } 72 | 73 | 74 | - (void)applicationDidBecomeActive:(UIApplication *)application { 75 | /* 76 | Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 77 | */ 78 | [BMKMapView didForeGround]; 79 | } 80 | 81 | 82 | - (void)applicationWillTerminate:(UIApplication *)application { 83 | /* 84 | Called when the application is about to terminate. 85 | See also applicationDidEnterBackground:. 86 | */ 87 | } 88 | 89 | #pragma mark - 90 | #pragma mark Memory management 91 | 92 | - (void)applicationDidReceiveMemoryWarning:(UIApplication *)application { 93 | /* 94 | Free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later. 95 | */ 96 | } 97 | 98 | - (void)onGetNetworkState:(int)iError 99 | { 100 | if (0 == iError) { 101 | NSLog(@"联网成功"); 102 | } 103 | else{ 104 | NSLog(@"onGetNetworkState %d",iError); 105 | } 106 | 107 | } 108 | 109 | - (void)onGetPermissionState:(int)iError 110 | { 111 | if (0 == iError) { 112 | NSLog(@"授权成功"); 113 | } 114 | else { 115 | NSLog(@"onGetPermissionState %d",iError); 116 | } 117 | } 118 | 119 | @end 120 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "minimum-system-version" : "7.0", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "orientation" : "portrait", 11 | "idiom" : "iphone", 12 | "minimum-system-version" : "7.0", 13 | "subtype" : "retina4", 14 | "scale" : "2x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Images.xcassets/location_back_icon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x", 10 | "filename" : "location_back_icon@2x.png" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Images.xcassets/location_back_icon.imageset/location_back_icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Images.xcassets/location_back_icon.imageset/location_back_icon@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Images.xcassets/location_blue_icon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x", 10 | "filename" : "location_blue_icon@2x.png" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Images.xcassets/location_blue_icon.imageset/location_blue_icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Images.xcassets/location_blue_icon.imageset/location_blue_icon@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Images.xcassets/location_green_icon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x", 10 | "filename" : "location_green_icon@2x.png" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Images.xcassets/location_green_icon.imageset/location_green_icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Images.xcassets/location_green_icon.imageset/location_green_icon@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Images.xcassets/poi_1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "poi_1.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Images.xcassets/poi_1.imageset/poi_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Images.xcassets/poi_1.imageset/poi_1.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.zzb.dev 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundleDisplayName 16 | 微信位置Demo 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | NSLocationWhenInUseUsageDescription 47 | 48 | NSLocationAlwaysUsageDescription 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/LocationCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // LocationCell.h 3 | // WeChatLocationDemo 4 | // 5 | // Created by HuiYang on 15/5/25. 6 | // Copyright (c) 2015年 Email:xiaoyangh@foxmail.com. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface LocationCell : UITableViewCell 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/LocationCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // LocationCell.m 3 | // WeChatLocationDemo 4 | // 5 | // Created by HuiYang on 15/5/25. 6 | // Copyright (c) 2015年 Email:xiaoyangh@foxmail.com. All rights reserved. 7 | // 8 | 9 | #import "LocationCell.h" 10 | 11 | @implementation LocationCell 12 | 13 | -(id)initWithStyle:(UITableViewCellStyle)style 14 | reuseIdentifier:(NSString *)reuseIdentifier 15 | { 16 | self = [super initWithStyle:UITableViewCellStyleSubtitle // or whatever style you want 17 | reuseIdentifier:reuseIdentifier]; 18 | return self; 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Model/LocationModel.h: -------------------------------------------------------------------------------- 1 | // 2 | // LocationModel.h 3 | // WeChatLocationDemo 4 | // 5 | // Created by HuiYang on 15/5/25. 6 | // Copyright (c) 2015年 Email:xiaoyangh@foxmail.com. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface LocationModel : NSObject 12 | //title 13 | @property(nonatomic,strong)NSString *name; 14 | //detail 15 | @property(nonatomic,strong)NSString *address; 16 | //经度 17 | @property(nonatomic,assign)double longitude; 18 | //纬度 19 | @property(nonatomic,assign)double latitude; 20 | 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Model/LocationModel.m: -------------------------------------------------------------------------------- 1 | // 2 | // LocationModel.m 3 | // WeChatLocationDemo 4 | // 5 | // Created by HuiYang on 15/5/25. 6 | // Copyright (c) 2015年 Email:xiaoyangh@foxmail.com. All rights reserved. 7 | // 8 | 9 | #import "LocationModel.h" 10 | 11 | @implementation LocationModel 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Resources/poi_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Resources/poi_1.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/ThirdParty/Masonry/MASCompositeConstraint.h: -------------------------------------------------------------------------------- 1 | // 2 | // MASCompositeConstraint.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 21/07/13. 6 | // Copyright (c) 2013 cloudling. All rights reserved. 7 | // 8 | 9 | #import "MASConstraint.h" 10 | #import "MASUtilities.h" 11 | 12 | /** 13 | * A group of MASConstraint objects 14 | */ 15 | @interface MASCompositeConstraint : MASConstraint 16 | 17 | /** 18 | * Creates a composite with a predefined array of children 19 | * 20 | * @param children child MASConstraints 21 | * 22 | * @return a composite constraint 23 | */ 24 | - (id)initWithChildren:(NSArray *)children; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/ThirdParty/Masonry/MASCompositeConstraint.m: -------------------------------------------------------------------------------- 1 | // 2 | // MASCompositeConstraint.m 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 21/07/13. 6 | // Copyright (c) 2013 cloudling. All rights reserved. 7 | // 8 | 9 | #import "MASCompositeConstraint.h" 10 | #import "MASConstraint+Private.h" 11 | 12 | @interface MASCompositeConstraint () 13 | 14 | @property (nonatomic, strong) id mas_key; 15 | @property (nonatomic, strong) NSMutableArray *childConstraints; 16 | 17 | @end 18 | 19 | @implementation MASCompositeConstraint 20 | 21 | - (id)initWithChildren:(NSArray *)children { 22 | self = [super init]; 23 | if (!self) return nil; 24 | 25 | _childConstraints = [children mutableCopy]; 26 | for (MASConstraint *constraint in _childConstraints) { 27 | constraint.delegate = self; 28 | } 29 | 30 | return self; 31 | } 32 | 33 | #pragma mark - MASConstraintDelegate 34 | 35 | - (void)constraint:(MASConstraint *)constraint shouldBeReplacedWithConstraint:(MASConstraint *)replacementConstraint { 36 | NSUInteger index = [self.childConstraints indexOfObject:constraint]; 37 | NSAssert(index != NSNotFound, @"Could not find constraint %@", constraint); 38 | [self.childConstraints replaceObjectAtIndex:index withObject:replacementConstraint]; 39 | } 40 | 41 | - (MASConstraint *)constraint:(MASConstraint __unused *)constraint addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute { 42 | id strongDelegate = self.delegate; 43 | MASConstraint *newConstraint = [strongDelegate constraint:self addConstraintWithLayoutAttribute:layoutAttribute]; 44 | newConstraint.delegate = self; 45 | [self.childConstraints addObject:newConstraint]; 46 | return newConstraint; 47 | } 48 | 49 | #pragma mark - NSLayoutConstraint multiplier proxies 50 | 51 | - (MASConstraint * (^)(CGFloat))multipliedBy { 52 | return ^id(CGFloat multiplier) { 53 | for (MASConstraint *constraint in self.childConstraints) { 54 | constraint.multipliedBy(multiplier); 55 | } 56 | return self; 57 | }; 58 | } 59 | 60 | - (MASConstraint * (^)(CGFloat))dividedBy { 61 | return ^id(CGFloat divider) { 62 | for (MASConstraint *constraint in self.childConstraints) { 63 | constraint.dividedBy(divider); 64 | } 65 | return self; 66 | }; 67 | } 68 | 69 | #pragma mark - MASLayoutPriority proxy 70 | 71 | - (MASConstraint * (^)(MASLayoutPriority))priority { 72 | return ^id(MASLayoutPriority priority) { 73 | for (MASConstraint *constraint in self.childConstraints) { 74 | constraint.priority(priority); 75 | } 76 | return self; 77 | }; 78 | } 79 | 80 | #pragma mark - NSLayoutRelation proxy 81 | 82 | - (MASConstraint * (^)(id, NSLayoutRelation))equalToWithRelation { 83 | return ^id(id attr, NSLayoutRelation relation) { 84 | for (MASConstraint *constraint in self.childConstraints.copy) { 85 | constraint.equalToWithRelation(attr, relation); 86 | } 87 | return self; 88 | }; 89 | } 90 | 91 | #pragma mark - attribute chaining 92 | 93 | - (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute { 94 | [self constraint:self addConstraintWithLayoutAttribute:layoutAttribute]; 95 | return self; 96 | } 97 | 98 | #pragma mark - Animator proxy 99 | 100 | #if TARGET_OS_MAC && !TARGET_OS_IPHONE 101 | 102 | - (MASConstraint *)animator { 103 | for (MASConstraint *constraint in self.childConstraints) { 104 | [constraint animator]; 105 | } 106 | return self; 107 | } 108 | 109 | #endif 110 | 111 | #pragma mark - debug helpers 112 | 113 | - (MASConstraint * (^)(id))key { 114 | return ^id(id key) { 115 | self.mas_key = key; 116 | int i = 0; 117 | for (MASConstraint *constraint in self.childConstraints) { 118 | constraint.key([NSString stringWithFormat:@"%@[%d]", key, i++]); 119 | } 120 | return self; 121 | }; 122 | } 123 | 124 | #pragma mark - NSLayoutConstraint constant setters 125 | 126 | - (void)setInsets:(MASEdgeInsets)insets { 127 | for (MASConstraint *constraint in self.childConstraints) { 128 | constraint.insets = insets; 129 | } 130 | } 131 | 132 | - (void)setOffset:(CGFloat)offset { 133 | for (MASConstraint *constraint in self.childConstraints) { 134 | constraint.offset = offset; 135 | } 136 | } 137 | 138 | - (void)setSizeOffset:(CGSize)sizeOffset { 139 | for (MASConstraint *constraint in self.childConstraints) { 140 | constraint.sizeOffset = sizeOffset; 141 | } 142 | } 143 | 144 | - (void)setCenterOffset:(CGPoint)centerOffset { 145 | for (MASConstraint *constraint in self.childConstraints) { 146 | constraint.centerOffset = centerOffset; 147 | } 148 | } 149 | 150 | #pragma mark - MASConstraint 151 | 152 | - (void)activate { 153 | for (MASConstraint *constraint in self.childConstraints) { 154 | [constraint activate]; 155 | } 156 | } 157 | 158 | - (void)deactivate { 159 | for (MASConstraint *constraint in self.childConstraints) { 160 | [constraint deactivate]; 161 | } 162 | } 163 | 164 | - (void)install { 165 | for (MASConstraint *constraint in self.childConstraints) { 166 | constraint.updateExisting = self.updateExisting; 167 | [constraint install]; 168 | } 169 | } 170 | 171 | - (void)uninstall { 172 | for (MASConstraint *constraint in self.childConstraints) { 173 | [constraint uninstall]; 174 | } 175 | } 176 | 177 | @end 178 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/ThirdParty/Masonry/MASConstraint+Private.h: -------------------------------------------------------------------------------- 1 | // 2 | // MASConstraint+Private.h 3 | // Masonry 4 | // 5 | // Created by Nick Tymchenko on 29/04/14. 6 | // Copyright (c) 2014 cloudling. All rights reserved. 7 | // 8 | 9 | #import "MASConstraint.h" 10 | 11 | @protocol MASConstraintDelegate; 12 | 13 | 14 | @interface MASConstraint () 15 | 16 | /** 17 | * Whether or not to check for an existing constraint instead of adding constraint 18 | */ 19 | @property (nonatomic, assign) BOOL updateExisting; 20 | 21 | /** 22 | * Usually MASConstraintMaker but could be a parent MASConstraint 23 | */ 24 | @property (nonatomic, weak) id delegate; 25 | 26 | /** 27 | * Based on a provided value type, is equal to calling: 28 | * NSNumber - setOffset: 29 | * NSValue with CGPoint - setPointOffset: 30 | * NSValue with CGSize - setSizeOffset: 31 | * NSValue with MASEdgeInsets - setInsets: 32 | */ 33 | - (void)setLayoutConstantWithValue:(NSValue *)value; 34 | 35 | @end 36 | 37 | 38 | @interface MASConstraint (Abstract) 39 | 40 | /** 41 | * Sets the constraint relation to given NSLayoutRelation 42 | * returns a block which accepts one of the following: 43 | * MASViewAttribute, UIView, NSValue, NSArray 44 | * see readme for more details. 45 | */ 46 | - (MASConstraint * (^)(id, NSLayoutRelation))equalToWithRelation; 47 | 48 | /** 49 | * Override to set a custom chaining behaviour 50 | */ 51 | - (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute; 52 | 53 | @end 54 | 55 | 56 | @protocol MASConstraintDelegate 57 | 58 | /** 59 | * Notifies the delegate when the constraint needs to be replaced with another constraint. For example 60 | * A MASViewConstraint may turn into a MASCompositeConstraint when an array is passed to one of the equality blocks 61 | */ 62 | - (void)constraint:(MASConstraint *)constraint shouldBeReplacedWithConstraint:(MASConstraint *)replacementConstraint; 63 | 64 | - (MASConstraint *)constraint:(MASConstraint *)constraint addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute; 65 | 66 | @end 67 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/ThirdParty/Masonry/MASConstraint.h: -------------------------------------------------------------------------------- 1 | // 2 | // MASConstraint.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 22/07/13. 6 | // Copyright (c) 2013 cloudling. All rights reserved. 7 | // 8 | 9 | #import "MASUtilities.h" 10 | 11 | /** 12 | * Enables Constraints to be created with chainable syntax 13 | * Constraint can represent single NSLayoutConstraint (MASViewConstraint) 14 | * or a group of NSLayoutConstraints (MASComposisteConstraint) 15 | */ 16 | @interface MASConstraint : NSObject 17 | 18 | // Chaining Support 19 | 20 | /** 21 | * Modifies the NSLayoutConstraint constant, 22 | * only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following 23 | * NSLayoutAttributeTop, NSLayoutAttributeLeft, NSLayoutAttributeBottom, NSLayoutAttributeRight 24 | */ 25 | - (MASConstraint * (^)(MASEdgeInsets insets))insets; 26 | 27 | /** 28 | * Modifies the NSLayoutConstraint constant, 29 | * only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following 30 | * NSLayoutAttributeWidth, NSLayoutAttributeHeight 31 | */ 32 | - (MASConstraint * (^)(CGSize offset))sizeOffset; 33 | 34 | /** 35 | * Modifies the NSLayoutConstraint constant, 36 | * only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following 37 | * NSLayoutAttributeCenterX, NSLayoutAttributeCenterY 38 | */ 39 | - (MASConstraint * (^)(CGPoint offset))centerOffset; 40 | 41 | /** 42 | * Modifies the NSLayoutConstraint constant 43 | */ 44 | - (MASConstraint * (^)(CGFloat offset))offset; 45 | 46 | /** 47 | * Modifies the NSLayoutConstraint constant based on a value type 48 | */ 49 | - (MASConstraint * (^)(NSValue *value))valueOffset; 50 | 51 | /** 52 | * Sets the NSLayoutConstraint multiplier property 53 | */ 54 | - (MASConstraint * (^)(CGFloat multiplier))multipliedBy; 55 | 56 | /** 57 | * Sets the NSLayoutConstraint multiplier to 1.0/dividedBy 58 | */ 59 | - (MASConstraint * (^)(CGFloat divider))dividedBy; 60 | 61 | /** 62 | * Sets the NSLayoutConstraint priority to a float or MASLayoutPriority 63 | */ 64 | - (MASConstraint * (^)(MASLayoutPriority priority))priority; 65 | 66 | /** 67 | * Sets the NSLayoutConstraint priority to MASLayoutPriorityLow 68 | */ 69 | - (MASConstraint * (^)())priorityLow; 70 | 71 | /** 72 | * Sets the NSLayoutConstraint priority to MASLayoutPriorityMedium 73 | */ 74 | - (MASConstraint * (^)())priorityMedium; 75 | 76 | /** 77 | * Sets the NSLayoutConstraint priority to MASLayoutPriorityHigh 78 | */ 79 | - (MASConstraint * (^)())priorityHigh; 80 | 81 | /** 82 | * Sets the constraint relation to NSLayoutRelationEqual 83 | * returns a block which accepts one of the following: 84 | * MASViewAttribute, UIView, NSValue, NSArray 85 | * see readme for more details. 86 | */ 87 | - (MASConstraint * (^)(id attr))equalTo; 88 | 89 | /** 90 | * Sets the constraint relation to NSLayoutRelationGreaterThanOrEqual 91 | * returns a block which accepts one of the following: 92 | * MASViewAttribute, UIView, NSValue, NSArray 93 | * see readme for more details. 94 | */ 95 | - (MASConstraint * (^)(id attr))greaterThanOrEqualTo; 96 | 97 | /** 98 | * Sets the constraint relation to NSLayoutRelationLessThanOrEqual 99 | * returns a block which accepts one of the following: 100 | * MASViewAttribute, UIView, NSValue, NSArray 101 | * see readme for more details. 102 | */ 103 | - (MASConstraint * (^)(id attr))lessThanOrEqualTo; 104 | 105 | /** 106 | * Optional semantic property which has no effect but improves the readability of constraint 107 | */ 108 | - (MASConstraint *)with; 109 | 110 | /** 111 | * Optional semantic property which has no effect but improves the readability of constraint 112 | */ 113 | - (MASConstraint *)and; 114 | 115 | /** 116 | * Creates a new MASCompositeConstraint with the called attribute and reciever 117 | */ 118 | - (MASConstraint *)left; 119 | - (MASConstraint *)top; 120 | - (MASConstraint *)right; 121 | - (MASConstraint *)bottom; 122 | - (MASConstraint *)leading; 123 | - (MASConstraint *)trailing; 124 | - (MASConstraint *)width; 125 | - (MASConstraint *)height; 126 | - (MASConstraint *)centerX; 127 | - (MASConstraint *)centerY; 128 | - (MASConstraint *)baseline; 129 | 130 | #if TARGET_OS_IPHONE 131 | 132 | - (MASConstraint *)leftMargin; 133 | - (MASConstraint *)rightMargin; 134 | - (MASConstraint *)topMargin; 135 | - (MASConstraint *)bottomMargin; 136 | - (MASConstraint *)leadingMargin; 137 | - (MASConstraint *)trailingMargin; 138 | - (MASConstraint *)centerXWithinMargins; 139 | - (MASConstraint *)centerYWithinMargins; 140 | 141 | #endif 142 | 143 | 144 | /** 145 | * Sets the constraint debug name 146 | */ 147 | - (MASConstraint * (^)(id key))key; 148 | 149 | // NSLayoutConstraint constant Setters 150 | // for use outside of mas_updateConstraints/mas_makeConstraints blocks 151 | 152 | /** 153 | * Modifies the NSLayoutConstraint constant, 154 | * only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following 155 | * NSLayoutAttributeTop, NSLayoutAttributeLeft, NSLayoutAttributeBottom, NSLayoutAttributeRight 156 | */ 157 | - (void)setInsets:(MASEdgeInsets)insets; 158 | 159 | /** 160 | * Modifies the NSLayoutConstraint constant, 161 | * only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following 162 | * NSLayoutAttributeWidth, NSLayoutAttributeHeight 163 | */ 164 | - (void)setSizeOffset:(CGSize)sizeOffset; 165 | 166 | /** 167 | * Modifies the NSLayoutConstraint constant, 168 | * only affects MASConstraints in which the first item's NSLayoutAttribute is one of the following 169 | * NSLayoutAttributeCenterX, NSLayoutAttributeCenterY 170 | */ 171 | - (void)setCenterOffset:(CGPoint)centerOffset; 172 | 173 | /** 174 | * Modifies the NSLayoutConstraint constant 175 | */ 176 | - (void)setOffset:(CGFloat)offset; 177 | 178 | 179 | // NSLayoutConstraint Installation support 180 | 181 | #if TARGET_OS_MAC && !TARGET_OS_IPHONE 182 | /** 183 | * Whether or not to go through the animator proxy when modifying the constraint 184 | */ 185 | @property (nonatomic, copy, readonly) MASConstraint *animator; 186 | #endif 187 | 188 | /** 189 | * Activates an NSLayoutConstraint if it's supported by an OS. 190 | * Invokes install otherwise. 191 | */ 192 | - (void)activate; 193 | 194 | /** 195 | * Deactivates previously installed/activated NSLayoutConstraint. 196 | */ 197 | - (void)deactivate; 198 | 199 | /** 200 | * Creates a NSLayoutConstraint and adds it to the appropriate view. 201 | */ 202 | - (void)install; 203 | 204 | /** 205 | * Removes previously installed NSLayoutConstraint 206 | */ 207 | - (void)uninstall; 208 | 209 | @end 210 | 211 | 212 | /** 213 | * Convenience auto-boxing macros for MASConstraint methods. 214 | * 215 | * Defining MAS_SHORTHAND_GLOBALS will turn on auto-boxing for default syntax. 216 | * A potential drawback of this is that the unprefixed macros will appear in global scope. 217 | */ 218 | #define mas_equalTo(...) equalTo(MASBoxValue((__VA_ARGS__))) 219 | #define mas_greaterThanOrEqualTo(...) greaterThanOrEqualTo(MASBoxValue((__VA_ARGS__))) 220 | #define mas_lessThanOrEqualTo(...) lessThanOrEqualTo(MASBoxValue((__VA_ARGS__))) 221 | 222 | #define mas_offset(...) valueOffset(MASBoxValue((__VA_ARGS__))) 223 | 224 | 225 | #ifdef MAS_SHORTHAND_GLOBALS 226 | 227 | #define equalTo(...) mas_equalTo(__VA_ARGS__) 228 | #define greaterThanOrEqualTo(...) mas_greaterThanOrEqualTo(__VA_ARGS__) 229 | #define lessThanOrEqualTo(...) mas_lessThanOrEqualTo(__VA_ARGS__) 230 | 231 | #define offset(...) mas_offset(__VA_ARGS__) 232 | 233 | #endif 234 | 235 | 236 | @interface MASConstraint (AutoboxingSupport) 237 | 238 | /** 239 | * Aliases to corresponding relation methods (for shorthand macros) 240 | * Also needed to aid autocompletion 241 | */ 242 | - (MASConstraint * (^)(id attr))mas_equalTo; 243 | - (MASConstraint * (^)(id attr))mas_greaterThanOrEqualTo; 244 | - (MASConstraint * (^)(id attr))mas_lessThanOrEqualTo; 245 | 246 | /** 247 | * A dummy method to aid autocompletion 248 | */ 249 | - (MASConstraint * (^)(id offset))mas_offset; 250 | 251 | @end 252 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/ThirdParty/Masonry/MASConstraintMaker.h: -------------------------------------------------------------------------------- 1 | // 2 | // MASConstraintBuilder.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 20/07/13. 6 | // Copyright (c) 2013 cloudling. All rights reserved. 7 | // 8 | 9 | #import "MASConstraint.h" 10 | #import "MASUtilities.h" 11 | 12 | typedef NS_OPTIONS(NSInteger, MASAttribute) { 13 | MASAttributeLeft = 1 << NSLayoutAttributeLeft, 14 | MASAttributeRight = 1 << NSLayoutAttributeRight, 15 | MASAttributeTop = 1 << NSLayoutAttributeTop, 16 | MASAttributeBottom = 1 << NSLayoutAttributeBottom, 17 | MASAttributeLeading = 1 << NSLayoutAttributeLeading, 18 | MASAttributeTrailing = 1 << NSLayoutAttributeTrailing, 19 | MASAttributeWidth = 1 << NSLayoutAttributeWidth, 20 | MASAttributeHeight = 1 << NSLayoutAttributeHeight, 21 | MASAttributeCenterX = 1 << NSLayoutAttributeCenterX, 22 | MASAttributeCenterY = 1 << NSLayoutAttributeCenterY, 23 | MASAttributeBaseline = 1 << NSLayoutAttributeBaseline, 24 | 25 | #if TARGET_OS_IPHONE 26 | 27 | MASAttributeLeftMargin = 1 << NSLayoutAttributeLeftMargin, 28 | MASAttributeRightMargin = 1 << NSLayoutAttributeRightMargin, 29 | MASAttributeTopMargin = 1 << NSLayoutAttributeTopMargin, 30 | MASAttributeBottomMargin = 1 << NSLayoutAttributeBottomMargin, 31 | MASAttributeLeadingMargin = 1 << NSLayoutAttributeLeadingMargin, 32 | MASAttributeTrailingMargin = 1 << NSLayoutAttributeTrailingMargin, 33 | MASAttributeCenterXWithinMargins = 1 << NSLayoutAttributeCenterXWithinMargins, 34 | MASAttributeCenterYWithinMargins = 1 << NSLayoutAttributeCenterYWithinMargins, 35 | 36 | #endif 37 | 38 | }; 39 | 40 | /** 41 | * Provides factory methods for creating MASConstraints. 42 | * Constraints are collected until they are ready to be installed 43 | * 44 | */ 45 | @interface MASConstraintMaker : NSObject 46 | 47 | /** 48 | * The following properties return a new MASViewConstraint 49 | * with the first item set to the makers associated view and the appropriate MASViewAttribute 50 | */ 51 | @property (nonatomic, strong, readonly) MASConstraint *left; 52 | @property (nonatomic, strong, readonly) MASConstraint *top; 53 | @property (nonatomic, strong, readonly) MASConstraint *right; 54 | @property (nonatomic, strong, readonly) MASConstraint *bottom; 55 | @property (nonatomic, strong, readonly) MASConstraint *leading; 56 | @property (nonatomic, strong, readonly) MASConstraint *trailing; 57 | @property (nonatomic, strong, readonly) MASConstraint *width; 58 | @property (nonatomic, strong, readonly) MASConstraint *height; 59 | @property (nonatomic, strong, readonly) MASConstraint *centerX; 60 | @property (nonatomic, strong, readonly) MASConstraint *centerY; 61 | @property (nonatomic, strong, readonly) MASConstraint *baseline; 62 | 63 | #if TARGET_OS_IPHONE 64 | 65 | @property (nonatomic, strong, readonly) MASConstraint *leftMargin; 66 | @property (nonatomic, strong, readonly) MASConstraint *rightMargin; 67 | @property (nonatomic, strong, readonly) MASConstraint *topMargin; 68 | @property (nonatomic, strong, readonly) MASConstraint *bottomMargin; 69 | @property (nonatomic, strong, readonly) MASConstraint *leadingMargin; 70 | @property (nonatomic, strong, readonly) MASConstraint *trailingMargin; 71 | @property (nonatomic, strong, readonly) MASConstraint *centerXWithinMargins; 72 | @property (nonatomic, strong, readonly) MASConstraint *centerYWithinMargins; 73 | 74 | #endif 75 | 76 | /** 77 | * Returns a block which creates a new MASCompositeConstraint with the first item set 78 | * to the makers associated view and children corresponding to the set bits in the 79 | * MASAttribute parameter. Combine multiple attributes via binary-or. 80 | */ 81 | @property (nonatomic, strong, readonly) MASConstraint *(^attributes)(MASAttribute attrs); 82 | 83 | /** 84 | * Creates a MASCompositeConstraint with type MASCompositeConstraintTypeEdges 85 | * which generates the appropriate MASViewConstraint children (top, left, bottom, right) 86 | * with the first item set to the makers associated view 87 | */ 88 | @property (nonatomic, strong, readonly) MASConstraint *edges; 89 | 90 | /** 91 | * Creates a MASCompositeConstraint with type MASCompositeConstraintTypeSize 92 | * which generates the appropriate MASViewConstraint children (width, height) 93 | * with the first item set to the makers associated view 94 | */ 95 | @property (nonatomic, strong, readonly) MASConstraint *size; 96 | 97 | /** 98 | * Creates a MASCompositeConstraint with type MASCompositeConstraintTypeCenter 99 | * which generates the appropriate MASViewConstraint children (centerX, centerY) 100 | * with the first item set to the makers associated view 101 | */ 102 | @property (nonatomic, strong, readonly) MASConstraint *center; 103 | 104 | /** 105 | * Whether or not to check for an existing constraint instead of adding constraint 106 | */ 107 | @property (nonatomic, assign) BOOL updateExisting; 108 | 109 | /** 110 | * Whether or not to remove existing constraints prior to installing 111 | */ 112 | @property (nonatomic, assign) BOOL removeExisting; 113 | 114 | /** 115 | * initialises the maker with a default view 116 | * 117 | * @param view any MASConstrait are created with this view as the first item 118 | * 119 | * @return a new MASConstraintMaker 120 | */ 121 | - (id)initWithView:(MAS_VIEW *)view; 122 | 123 | /** 124 | * Calls install method on any MASConstraints which have been created by this maker 125 | * 126 | * @return an array of all the installed MASConstraints 127 | */ 128 | - (NSArray *)install; 129 | 130 | - (MASConstraint * (^)(dispatch_block_t))group; 131 | 132 | @end 133 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/ThirdParty/Masonry/MASLayoutConstraint.h: -------------------------------------------------------------------------------- 1 | // 2 | // MASLayoutConstraint.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 3/08/13. 6 | // Copyright (c) 2013 Jonas Budelmann. All rights reserved. 7 | // 8 | 9 | #import "MASUtilities.h" 10 | 11 | /** 12 | * When you are debugging or printing the constraints attached to a view this subclass 13 | * makes it easier to identify which constraints have been created via Masonry 14 | */ 15 | @interface MASLayoutConstraint : NSLayoutConstraint 16 | 17 | /** 18 | * a key to associate with this constraint 19 | */ 20 | @property (nonatomic, strong) id mas_key; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/ThirdParty/Masonry/MASLayoutConstraint.m: -------------------------------------------------------------------------------- 1 | // 2 | // MASLayoutConstraint.m 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 3/08/13. 6 | // Copyright (c) 2013 Jonas Budelmann. All rights reserved. 7 | // 8 | 9 | #import "MASLayoutConstraint.h" 10 | 11 | @implementation MASLayoutConstraint 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/ThirdParty/Masonry/MASUtilities.h: -------------------------------------------------------------------------------- 1 | // 2 | // MASUtilities.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 19/08/13. 6 | // Copyright (c) 2013 Jonas Budelmann. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #if TARGET_OS_IPHONE 12 | 13 | #import 14 | #define MAS_VIEW UIView 15 | #define MASEdgeInsets UIEdgeInsets 16 | 17 | typedef UILayoutPriority MASLayoutPriority; 18 | static const MASLayoutPriority MASLayoutPriorityRequired = UILayoutPriorityRequired; 19 | static const MASLayoutPriority MASLayoutPriorityDefaultHigh = UILayoutPriorityDefaultHigh; 20 | static const MASLayoutPriority MASLayoutPriorityDefaultMedium = 500; 21 | static const MASLayoutPriority MASLayoutPriorityDefaultLow = UILayoutPriorityDefaultLow; 22 | static const MASLayoutPriority MASLayoutPriorityFittingSizeLevel = UILayoutPriorityFittingSizeLevel; 23 | 24 | #elif TARGET_OS_MAC 25 | 26 | #import 27 | #define MAS_VIEW NSView 28 | #define MASEdgeInsets NSEdgeInsets 29 | 30 | typedef NSLayoutPriority MASLayoutPriority; 31 | static const MASLayoutPriority MASLayoutPriorityRequired = NSLayoutPriorityRequired; 32 | static const MASLayoutPriority MASLayoutPriorityDefaultHigh = NSLayoutPriorityDefaultHigh; 33 | static const MASLayoutPriority MASLayoutPriorityDragThatCanResizeWindow = NSLayoutPriorityDragThatCanResizeWindow; 34 | static const MASLayoutPriority MASLayoutPriorityDefaultMedium = 501; 35 | static const MASLayoutPriority MASLayoutPriorityWindowSizeStayPut = NSLayoutPriorityWindowSizeStayPut; 36 | static const MASLayoutPriority MASLayoutPriorityDragThatCannotResizeWindow = NSLayoutPriorityDragThatCannotResizeWindow; 37 | static const MASLayoutPriority MASLayoutPriorityDefaultLow = NSLayoutPriorityDefaultLow; 38 | static const MASLayoutPriority MASLayoutPriorityFittingSizeCompression = NSLayoutPriorityFittingSizeCompression; 39 | 40 | #endif 41 | 42 | /** 43 | * Allows you to attach keys to objects matching the variable names passed. 44 | * 45 | * view1.mas_key = @"view1", view2.mas_key = @"view2"; 46 | * 47 | * is equivalent to: 48 | * 49 | * MASAttachKeys(view1, view2); 50 | */ 51 | #define MASAttachKeys(...) \ 52 | NSDictionary *keyPairs = NSDictionaryOfVariableBindings(__VA_ARGS__); \ 53 | for (id key in keyPairs.allKeys) { \ 54 | id obj = keyPairs[key]; \ 55 | NSAssert([obj respondsToSelector:@selector(setMas_key:)], \ 56 | @"Cannot attach mas_key to %@", obj); \ 57 | [obj setMas_key:key]; \ 58 | } 59 | 60 | /** 61 | * Used to create object hashes 62 | * Based on http://www.mikeash.com/pyblog/friday-qa-2010-06-18-implementing-equality-and-hashing.html 63 | */ 64 | #define MAS_NSUINT_BIT (CHAR_BIT * sizeof(NSUInteger)) 65 | #define MAS_NSUINTROTATE(val, howmuch) ((((NSUInteger)val) << howmuch) | (((NSUInteger)val) >> (MAS_NSUINT_BIT - howmuch))) 66 | 67 | /** 68 | * Given a scalar or struct value, wraps it in NSValue 69 | * Based on EXPObjectify: https://github.com/specta/expecta 70 | */ 71 | static inline id _MASBoxValue(const char *type, ...) { 72 | va_list v; 73 | va_start(v, type); 74 | id obj = nil; 75 | if (strcmp(type, @encode(id)) == 0) { 76 | id actual = va_arg(v, id); 77 | obj = actual; 78 | } else if (strcmp(type, @encode(CGPoint)) == 0) { 79 | CGPoint actual = (CGPoint)va_arg(v, CGPoint); 80 | obj = [NSValue value:&actual withObjCType:type]; 81 | } else if (strcmp(type, @encode(CGSize)) == 0) { 82 | CGSize actual = (CGSize)va_arg(v, CGSize); 83 | obj = [NSValue value:&actual withObjCType:type]; 84 | } else if (strcmp(type, @encode(MASEdgeInsets)) == 0) { 85 | MASEdgeInsets actual = (MASEdgeInsets)va_arg(v, MASEdgeInsets); 86 | obj = [NSValue value:&actual withObjCType:type]; 87 | } else if (strcmp(type, @encode(double)) == 0) { 88 | double actual = (double)va_arg(v, double); 89 | obj = [NSNumber numberWithDouble:actual]; 90 | } else if (strcmp(type, @encode(float)) == 0) { 91 | float actual = (float)va_arg(v, double); 92 | obj = [NSNumber numberWithFloat:actual]; 93 | } else if (strcmp(type, @encode(int)) == 0) { 94 | int actual = (int)va_arg(v, int); 95 | obj = [NSNumber numberWithInt:actual]; 96 | } else if (strcmp(type, @encode(long)) == 0) { 97 | long actual = (long)va_arg(v, long); 98 | obj = [NSNumber numberWithLong:actual]; 99 | } else if (strcmp(type, @encode(long long)) == 0) { 100 | long long actual = (long long)va_arg(v, long long); 101 | obj = [NSNumber numberWithLongLong:actual]; 102 | } else if (strcmp(type, @encode(short)) == 0) { 103 | short actual = (short)va_arg(v, int); 104 | obj = [NSNumber numberWithShort:actual]; 105 | } else if (strcmp(type, @encode(char)) == 0) { 106 | char actual = (char)va_arg(v, int); 107 | obj = [NSNumber numberWithChar:actual]; 108 | } else if (strcmp(type, @encode(bool)) == 0) { 109 | bool actual = (bool)va_arg(v, int); 110 | obj = [NSNumber numberWithBool:actual]; 111 | } else if (strcmp(type, @encode(unsigned char)) == 0) { 112 | unsigned char actual = (unsigned char)va_arg(v, unsigned int); 113 | obj = [NSNumber numberWithUnsignedChar:actual]; 114 | } else if (strcmp(type, @encode(unsigned int)) == 0) { 115 | unsigned int actual = (unsigned int)va_arg(v, unsigned int); 116 | obj = [NSNumber numberWithUnsignedInt:actual]; 117 | } else if (strcmp(type, @encode(unsigned long)) == 0) { 118 | unsigned long actual = (unsigned long)va_arg(v, unsigned long); 119 | obj = [NSNumber numberWithUnsignedLong:actual]; 120 | } else if (strcmp(type, @encode(unsigned long long)) == 0) { 121 | unsigned long long actual = (unsigned long long)va_arg(v, unsigned long long); 122 | obj = [NSNumber numberWithUnsignedLongLong:actual]; 123 | } else if (strcmp(type, @encode(unsigned short)) == 0) { 124 | unsigned short actual = (unsigned short)va_arg(v, unsigned int); 125 | obj = [NSNumber numberWithUnsignedShort:actual]; 126 | } 127 | va_end(v); 128 | return obj; 129 | } 130 | 131 | #define MASBoxValue(value) _MASBoxValue(@encode(__typeof__((value))), (value)) 132 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/ThirdParty/Masonry/MASViewAttribute.h: -------------------------------------------------------------------------------- 1 | // 2 | // MASAttribute.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 21/07/13. 6 | // Copyright (c) 2013 cloudling. All rights reserved. 7 | // 8 | 9 | #import "MASUtilities.h" 10 | 11 | /** 12 | * An immutable tuple which stores the view and the related NSLayoutAttribute. 13 | * Describes part of either the left or right hand side of a constraint equation 14 | */ 15 | @interface MASViewAttribute : NSObject 16 | 17 | /** 18 | * The view which the reciever relates to 19 | */ 20 | @property (nonatomic, weak, readonly) MAS_VIEW *view; 21 | 22 | /** 23 | * The attribute which the reciever relates to 24 | */ 25 | @property (nonatomic, assign, readonly) NSLayoutAttribute layoutAttribute; 26 | 27 | /** 28 | * The designated initializer. 29 | */ 30 | - (id)initWithView:(MAS_VIEW *)view layoutAttribute:(NSLayoutAttribute)layoutAttribute; 31 | 32 | /** 33 | * Determine whether the layoutAttribute is a size attribute 34 | * 35 | * @return YES if layoutAttribute is equal to NSLayoutAttributeWidth or NSLayoutAttributeHeight 36 | */ 37 | - (BOOL)isSizeAttribute; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/ThirdParty/Masonry/MASViewAttribute.m: -------------------------------------------------------------------------------- 1 | // 2 | // MASAttribute.m 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 21/07/13. 6 | // Copyright (c) 2013 cloudling. All rights reserved. 7 | // 8 | 9 | #import "MASViewAttribute.h" 10 | 11 | @implementation MASViewAttribute 12 | 13 | - (id)initWithView:(MAS_VIEW *)view layoutAttribute:(NSLayoutAttribute)layoutAttribute { 14 | self = [super init]; 15 | if (!self) return nil; 16 | 17 | _view = view; 18 | _layoutAttribute = layoutAttribute; 19 | 20 | return self; 21 | } 22 | 23 | - (BOOL)isSizeAttribute { 24 | return self.layoutAttribute == NSLayoutAttributeWidth 25 | || self.layoutAttribute == NSLayoutAttributeHeight; 26 | } 27 | 28 | - (BOOL)isEqual:(MASViewAttribute *)viewAttribute { 29 | if ([viewAttribute isKindOfClass:self.class]) { 30 | return self.view == viewAttribute.view 31 | && self.layoutAttribute == viewAttribute.layoutAttribute; 32 | } 33 | return [super isEqual:viewAttribute]; 34 | } 35 | 36 | - (NSUInteger)hash { 37 | return MAS_NSUINTROTATE([self.view hash], MAS_NSUINT_BIT / 2) ^ self.layoutAttribute; 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/ThirdParty/Masonry/MASViewConstraint.h: -------------------------------------------------------------------------------- 1 | // 2 | // MASConstraint.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 20/07/13. 6 | // Copyright (c) 2013 cloudling. All rights reserved. 7 | // 8 | 9 | #import "MASViewAttribute.h" 10 | #import "MASConstraint.h" 11 | #import "MASLayoutConstraint.h" 12 | #import "MASUtilities.h" 13 | 14 | /** 15 | * A single constraint. 16 | * Contains the attributes neccessary for creating a NSLayoutConstraint and adding it to the appropriate view 17 | */ 18 | @interface MASViewConstraint : MASConstraint 19 | 20 | /** 21 | * First item/view and first attribute of the NSLayoutConstraint 22 | */ 23 | @property (nonatomic, strong, readonly) MASViewAttribute *firstViewAttribute; 24 | 25 | /** 26 | * Second item/view and second attribute of the NSLayoutConstraint 27 | */ 28 | @property (nonatomic, strong, readonly) MASViewAttribute *secondViewAttribute; 29 | 30 | /** 31 | * initialises the MASViewConstraint with the first part of the equation 32 | * 33 | * @param firstViewAttribute view.mas_left, view.mas_width etc. 34 | * 35 | * @return a new view constraint 36 | */ 37 | - (id)initWithFirstViewAttribute:(MASViewAttribute *)firstViewAttribute; 38 | 39 | /** 40 | * Returns all MASViewConstraints installed with this view as a first item. 41 | * 42 | * @param view A view to retrieve constraints for. 43 | * 44 | * @return An array of MASViewConstraints. 45 | */ 46 | + (NSArray *)installedConstraintsForView:(MAS_VIEW *)view; 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/ThirdParty/Masonry/Masonry.h: -------------------------------------------------------------------------------- 1 | // 2 | // Masonry.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 20/07/13. 6 | // Copyright (c) 2013 cloudling. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for Masonry. 12 | FOUNDATION_EXPORT double MasonryVersionNumber; 13 | 14 | //! Project version string for Masonry. 15 | FOUNDATION_EXPORT const unsigned char MasonryVersionString[]; 16 | 17 | #import "MASUtilities.h" 18 | #import "View+MASAdditions.h" 19 | #import "View+MASShorthandAdditions.h" 20 | #import "NSArray+MASAdditions.h" 21 | #import "NSArray+MASShorthandAdditions.h" 22 | #import "MASConstraint.h" 23 | #import "MASCompositeConstraint.h" 24 | #import "MASViewAttribute.h" 25 | #import "MASViewConstraint.h" 26 | #import "MASConstraintMaker.h" 27 | #import "MASLayoutConstraint.h" 28 | #import "NSLayoutConstraint+MASDebugAdditions.h" 29 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/ThirdParty/Masonry/NSArray+MASAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSArray+MASAdditions.h 3 | // 4 | // 5 | // Created by Daniel Hammond on 11/26/13. 6 | // 7 | // 8 | 9 | #import "MASUtilities.h" 10 | #import "MASConstraintMaker.h" 11 | #import "MASViewAttribute.h" 12 | 13 | @interface NSArray (MASAdditions) 14 | 15 | /** 16 | * Creates a MASConstraintMaker with each view in the callee. 17 | * Any constraints defined are added to the view or the appropriate superview once the block has finished executing on each view 18 | * 19 | * @param block scope within which you can build up the constraints which you wish to apply to each view. 20 | * 21 | * @return Array of created MASConstraints 22 | */ 23 | - (NSArray *)mas_makeConstraints:(void(^)(MASConstraintMaker *make))block; 24 | 25 | /** 26 | * Creates a MASConstraintMaker with each view in the callee. 27 | * Any constraints defined are added to each view or the appropriate superview once the block has finished executing on each view. 28 | * If an existing constraint exists then it will be updated instead. 29 | * 30 | * @param block scope within which you can build up the constraints which you wish to apply to each view. 31 | * 32 | * @return Array of created/updated MASConstraints 33 | */ 34 | - (NSArray *)mas_updateConstraints:(void(^)(MASConstraintMaker *make))block; 35 | 36 | /** 37 | * Creates a MASConstraintMaker with each view in the callee. 38 | * Any constraints defined are added to each view or the appropriate superview once the block has finished executing on each view. 39 | * All constraints previously installed for the views will be removed. 40 | * 41 | * @param block scope within which you can build up the constraints which you wish to apply to each view. 42 | * 43 | * @return Array of created/updated MASConstraints 44 | */ 45 | - (NSArray *)mas_remakeConstraints:(void(^)(MASConstraintMaker *make))block; 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/ThirdParty/Masonry/NSArray+MASAdditions.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSArray+MASAdditions.m 3 | // 4 | // 5 | // Created by Daniel Hammond on 11/26/13. 6 | // 7 | // 8 | 9 | #import "NSArray+MASAdditions.h" 10 | #import "View+MASAdditions.h" 11 | 12 | @implementation NSArray (MASAdditions) 13 | 14 | - (NSArray *)mas_makeConstraints:(void(^)(MASConstraintMaker *make))block { 15 | NSMutableArray *constraints = [NSMutableArray array]; 16 | for (MAS_VIEW *view in self) { 17 | NSAssert([view isKindOfClass:[MAS_VIEW class]], @"All objects in the array must be views"); 18 | [constraints addObjectsFromArray:[view mas_makeConstraints:block]]; 19 | } 20 | return constraints; 21 | } 22 | 23 | - (NSArray *)mas_updateConstraints:(void(^)(MASConstraintMaker *make))block { 24 | NSMutableArray *constraints = [NSMutableArray array]; 25 | for (MAS_VIEW *view in self) { 26 | NSAssert([view isKindOfClass:[MAS_VIEW class]], @"All objects in the array must be views"); 27 | [constraints addObjectsFromArray:[view mas_updateConstraints:block]]; 28 | } 29 | return constraints; 30 | } 31 | 32 | - (NSArray *)mas_remakeConstraints:(void(^)(MASConstraintMaker *make))block { 33 | NSMutableArray *constraints = [NSMutableArray array]; 34 | for (MAS_VIEW *view in self) { 35 | NSAssert([view isKindOfClass:[MAS_VIEW class]], @"All objects in the array must be views"); 36 | [constraints addObjectsFromArray:[view mas_remakeConstraints:block]]; 37 | } 38 | return constraints; 39 | } 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/ThirdParty/Masonry/NSArray+MASShorthandAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSArray+MASShorthandAdditions.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 22/07/13. 6 | // Copyright (c) 2013 Jonas Budelmann. All rights reserved. 7 | // 8 | 9 | #import "NSArray+MASAdditions.h" 10 | 11 | #ifdef MAS_SHORTHAND 12 | 13 | /** 14 | * Shorthand array additions without the 'mas_' prefixes, 15 | * only enabled if MAS_SHORTHAND is defined 16 | */ 17 | @interface NSArray (MASShorthandAdditions) 18 | 19 | - (NSArray *)makeConstraints:(void(^)(MASConstraintMaker *make))block; 20 | - (NSArray *)updateConstraints:(void(^)(MASConstraintMaker *make))block; 21 | - (NSArray *)remakeConstraints:(void(^)(MASConstraintMaker *make))block; 22 | 23 | @end 24 | 25 | @implementation NSArray (MASShorthandAdditions) 26 | 27 | - (NSArray *)makeConstraints:(void(^)(MASConstraintMaker *))block { 28 | return [self mas_makeConstraints:block]; 29 | } 30 | 31 | - (NSArray *)updateConstraints:(void(^)(MASConstraintMaker *))block { 32 | return [self mas_updateConstraints:block]; 33 | } 34 | 35 | - (NSArray *)remakeConstraints:(void(^)(MASConstraintMaker *))block { 36 | return [self mas_remakeConstraints:block]; 37 | } 38 | 39 | @end 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/ThirdParty/Masonry/NSLayoutConstraint+MASDebugAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSLayoutConstraint+MASDebugAdditions.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 3/08/13. 6 | // Copyright (c) 2013 Jonas Budelmann. All rights reserved. 7 | // 8 | 9 | #import "MASUtilities.h" 10 | 11 | /** 12 | * makes debug and log output of NSLayoutConstraints more readable 13 | */ 14 | @interface NSLayoutConstraint (MASDebugAdditions) 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/ThirdParty/Masonry/NSLayoutConstraint+MASDebugAdditions.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSLayoutConstraint+MASDebugAdditions.m 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 3/08/13. 6 | // Copyright (c) 2013 Jonas Budelmann. All rights reserved. 7 | // 8 | 9 | #import "NSLayoutConstraint+MASDebugAdditions.h" 10 | #import "MASConstraint.h" 11 | #import "MASLayoutConstraint.h" 12 | 13 | @implementation NSLayoutConstraint (MASDebugAdditions) 14 | 15 | #pragma mark - description maps 16 | 17 | + (NSDictionary *)layoutRelationDescriptionsByValue { 18 | static dispatch_once_t once; 19 | static NSDictionary *descriptionMap; 20 | dispatch_once(&once, ^{ 21 | descriptionMap = @{ 22 | @(NSLayoutRelationEqual) : @"==", 23 | @(NSLayoutRelationGreaterThanOrEqual) : @">=", 24 | @(NSLayoutRelationLessThanOrEqual) : @"<=", 25 | }; 26 | }); 27 | return descriptionMap; 28 | } 29 | 30 | + (NSDictionary *)layoutAttributeDescriptionsByValue { 31 | static dispatch_once_t once; 32 | static NSDictionary *descriptionMap; 33 | dispatch_once(&once, ^{ 34 | descriptionMap = @{ 35 | @(NSLayoutAttributeTop) : @"top", 36 | @(NSLayoutAttributeLeft) : @"left", 37 | @(NSLayoutAttributeBottom) : @"bottom", 38 | @(NSLayoutAttributeRight) : @"right", 39 | @(NSLayoutAttributeLeading) : @"leading", 40 | @(NSLayoutAttributeTrailing) : @"trailing", 41 | @(NSLayoutAttributeWidth) : @"width", 42 | @(NSLayoutAttributeHeight) : @"height", 43 | @(NSLayoutAttributeCenterX) : @"centerX", 44 | @(NSLayoutAttributeCenterY) : @"centerY", 45 | @(NSLayoutAttributeBaseline) : @"baseline", 46 | 47 | #if TARGET_OS_IPHONE 48 | @(NSLayoutAttributeLeftMargin) : @"leftMargin", 49 | @(NSLayoutAttributeRightMargin) : @"rightMargin", 50 | @(NSLayoutAttributeTopMargin) : @"topMargin", 51 | @(NSLayoutAttributeBottomMargin) : @"bottomMargin", 52 | @(NSLayoutAttributeLeadingMargin) : @"leadingMargin", 53 | @(NSLayoutAttributeTrailingMargin) : @"trailingMargin", 54 | @(NSLayoutAttributeCenterXWithinMargins) : @"centerXWithinMargins", 55 | @(NSLayoutAttributeCenterYWithinMargins) : @"centerYWithinMargins", 56 | #endif 57 | 58 | }; 59 | 60 | }); 61 | return descriptionMap; 62 | } 63 | 64 | 65 | + (NSDictionary *)layoutPriorityDescriptionsByValue { 66 | static dispatch_once_t once; 67 | static NSDictionary *descriptionMap; 68 | dispatch_once(&once, ^{ 69 | #if TARGET_OS_IPHONE 70 | descriptionMap = @{ 71 | @(MASLayoutPriorityDefaultHigh) : @"high", 72 | @(MASLayoutPriorityDefaultLow) : @"low", 73 | @(MASLayoutPriorityDefaultMedium) : @"medium", 74 | @(MASLayoutPriorityRequired) : @"required", 75 | @(MASLayoutPriorityFittingSizeLevel) : @"fitting size", 76 | }; 77 | #elif TARGET_OS_MAC 78 | descriptionMap = @{ 79 | @(MASLayoutPriorityDefaultHigh) : @"high", 80 | @(MASLayoutPriorityDragThatCanResizeWindow) : @"drag can resize window", 81 | @(MASLayoutPriorityDefaultMedium) : @"medium", 82 | @(MASLayoutPriorityWindowSizeStayPut) : @"window size stay put", 83 | @(MASLayoutPriorityDragThatCannotResizeWindow) : @"drag cannot resize window", 84 | @(MASLayoutPriorityDefaultLow) : @"low", 85 | @(MASLayoutPriorityFittingSizeCompression) : @"fitting size", 86 | @(MASLayoutPriorityRequired) : @"required", 87 | }; 88 | #endif 89 | }); 90 | return descriptionMap; 91 | } 92 | 93 | #pragma mark - description override 94 | 95 | + (NSString *)descriptionForObject:(id)obj { 96 | if ([obj respondsToSelector:@selector(mas_key)] && [obj mas_key]) { 97 | return [NSString stringWithFormat:@"%@:%@", [obj class], [obj mas_key]]; 98 | } 99 | return [NSString stringWithFormat:@"%@:%p", [obj class], obj]; 100 | } 101 | 102 | - (NSString *)description { 103 | NSMutableString *description = [[NSMutableString alloc] initWithString:@"<"]; 104 | 105 | [description appendString:[self.class descriptionForObject:self]]; 106 | 107 | [description appendFormat:@" %@", [self.class descriptionForObject:self.firstItem]]; 108 | if (self.firstAttribute != NSLayoutAttributeNotAnAttribute) { 109 | [description appendFormat:@".%@", [self.class.layoutAttributeDescriptionsByValue objectForKey:@(self.firstAttribute)]]; 110 | } 111 | 112 | [description appendFormat:@" %@", [self.class.layoutRelationDescriptionsByValue objectForKey:@(self.relation)]]; 113 | 114 | if (self.secondItem) { 115 | [description appendFormat:@" %@", [self.class descriptionForObject:self.secondItem]]; 116 | } 117 | if (self.secondAttribute != NSLayoutAttributeNotAnAttribute) { 118 | [description appendFormat:@".%@", [self.class.layoutAttributeDescriptionsByValue objectForKey:@(self.secondAttribute)]]; 119 | } 120 | 121 | if (self.multiplier != 1) { 122 | [description appendFormat:@" * %g", self.multiplier]; 123 | } 124 | 125 | if (self.secondAttribute == NSLayoutAttributeNotAnAttribute) { 126 | [description appendFormat:@" %g", self.constant]; 127 | } else { 128 | if (self.constant) { 129 | [description appendFormat:@" %@ %g", (self.constant < 0 ? @"-" : @"+"), ABS(self.constant)]; 130 | } 131 | } 132 | 133 | if (self.priority != MASLayoutPriorityRequired) { 134 | [description appendFormat:@" ^%@", [self.class.layoutPriorityDescriptionsByValue objectForKey:@(self.priority)] ?: [NSNumber numberWithDouble:self.priority]]; 135 | } 136 | 137 | [description appendString:@">"]; 138 | return description; 139 | } 140 | 141 | @end 142 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/ThirdParty/Masonry/View+MASAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+MASAdditions.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 20/07/13. 6 | // Copyright (c) 2013 cloudling. All rights reserved. 7 | // 8 | 9 | #import "MASUtilities.h" 10 | #import "MASConstraintMaker.h" 11 | #import "MASViewAttribute.h" 12 | 13 | /** 14 | * Provides constraint maker block 15 | * and convience methods for creating MASViewAttribute which are view + NSLayoutAttribute pairs 16 | */ 17 | @interface MAS_VIEW (MASAdditions) 18 | 19 | /** 20 | * following properties return a new MASViewAttribute with current view and appropriate NSLayoutAttribute 21 | */ 22 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_left; 23 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_top; 24 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_right; 25 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_bottom; 26 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_leading; 27 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_trailing; 28 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_width; 29 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_height; 30 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_centerX; 31 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_centerY; 32 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_baseline; 33 | @property (nonatomic, strong, readonly) MASViewAttribute *(^mas_attribute)(NSLayoutAttribute attr); 34 | 35 | #if TARGET_OS_IPHONE 36 | 37 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_leftMargin; 38 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_rightMargin; 39 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_topMargin; 40 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomMargin; 41 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_leadingMargin; 42 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_trailingMargin; 43 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_centerXWithinMargins; 44 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_centerYWithinMargins; 45 | 46 | #endif 47 | 48 | /** 49 | * a key to associate with this view 50 | */ 51 | @property (nonatomic, strong) id mas_key; 52 | 53 | /** 54 | * Finds the closest common superview between this view and another view 55 | * 56 | * @param view other view 57 | * 58 | * @return returns nil if common superview could not be found 59 | */ 60 | - (instancetype)mas_closestCommonSuperview:(MAS_VIEW *)view; 61 | 62 | /** 63 | * Creates a MASConstraintMaker with the callee view. 64 | * Any constraints defined are added to the view or the appropriate superview once the block has finished executing 65 | * 66 | * @param block scope within which you can build up the constraints which you wish to apply to the view. 67 | * 68 | * @return Array of created MASConstraints 69 | */ 70 | - (NSArray *)mas_makeConstraints:(void(^)(MASConstraintMaker *make))block; 71 | 72 | /** 73 | * Creates a MASConstraintMaker with the callee view. 74 | * Any constraints defined are added to the view or the appropriate superview once the block has finished executing. 75 | * If an existing constraint exists then it will be updated instead. 76 | * 77 | * @param block scope within which you can build up the constraints which you wish to apply to the view. 78 | * 79 | * @return Array of created/updated MASConstraints 80 | */ 81 | - (NSArray *)mas_updateConstraints:(void(^)(MASConstraintMaker *make))block; 82 | 83 | /** 84 | * Creates a MASConstraintMaker with the callee view. 85 | * Any constraints defined are added to the view or the appropriate superview once the block has finished executing. 86 | * All constraints previously installed for the view will be removed. 87 | * 88 | * @param block scope within which you can build up the constraints which you wish to apply to the view. 89 | * 90 | * @return Array of created/updated MASConstraints 91 | */ 92 | - (NSArray *)mas_remakeConstraints:(void(^)(MASConstraintMaker *make))block; 93 | 94 | @end 95 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/ThirdParty/Masonry/View+MASAdditions.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+MASAdditions.m 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 20/07/13. 6 | // Copyright (c) 2013 cloudling. All rights reserved. 7 | // 8 | 9 | #import "View+MASAdditions.h" 10 | #import 11 | 12 | @implementation MAS_VIEW (MASAdditions) 13 | 14 | - (NSArray *)mas_makeConstraints:(void(^)(MASConstraintMaker *))block { 15 | self.translatesAutoresizingMaskIntoConstraints = NO; 16 | MASConstraintMaker *constraintMaker = [[MASConstraintMaker alloc] initWithView:self]; 17 | block(constraintMaker); 18 | return [constraintMaker install]; 19 | } 20 | 21 | - (NSArray *)mas_updateConstraints:(void(^)(MASConstraintMaker *))block { 22 | self.translatesAutoresizingMaskIntoConstraints = NO; 23 | MASConstraintMaker *constraintMaker = [[MASConstraintMaker alloc] initWithView:self]; 24 | constraintMaker.updateExisting = YES; 25 | block(constraintMaker); 26 | return [constraintMaker install]; 27 | } 28 | 29 | - (NSArray *)mas_remakeConstraints:(void(^)(MASConstraintMaker *make))block { 30 | self.translatesAutoresizingMaskIntoConstraints = NO; 31 | MASConstraintMaker *constraintMaker = [[MASConstraintMaker alloc] initWithView:self]; 32 | constraintMaker.removeExisting = YES; 33 | block(constraintMaker); 34 | return [constraintMaker install]; 35 | } 36 | 37 | #pragma mark - NSLayoutAttribute properties 38 | 39 | - (MASViewAttribute *)mas_left { 40 | return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeLeft]; 41 | } 42 | 43 | - (MASViewAttribute *)mas_top { 44 | return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeTop]; 45 | } 46 | 47 | - (MASViewAttribute *)mas_right { 48 | return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeRight]; 49 | } 50 | 51 | - (MASViewAttribute *)mas_bottom { 52 | return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeBottom]; 53 | } 54 | 55 | - (MASViewAttribute *)mas_leading { 56 | return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeLeading]; 57 | } 58 | 59 | - (MASViewAttribute *)mas_trailing { 60 | return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeTrailing]; 61 | } 62 | 63 | - (MASViewAttribute *)mas_width { 64 | return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeWidth]; 65 | } 66 | 67 | - (MASViewAttribute *)mas_height { 68 | return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeHeight]; 69 | } 70 | 71 | - (MASViewAttribute *)mas_centerX { 72 | return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeCenterX]; 73 | } 74 | 75 | - (MASViewAttribute *)mas_centerY { 76 | return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeCenterY]; 77 | } 78 | 79 | - (MASViewAttribute *)mas_baseline { 80 | return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeBaseline]; 81 | } 82 | 83 | - (MASViewAttribute *(^)(NSLayoutAttribute))mas_attribute 84 | { 85 | return ^(NSLayoutAttribute attr) { 86 | return [[MASViewAttribute alloc] initWithView:self layoutAttribute:attr]; 87 | }; 88 | } 89 | 90 | #if TARGET_OS_IPHONE 91 | 92 | - (MASViewAttribute *)mas_leftMargin { 93 | return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeLeftMargin]; 94 | } 95 | 96 | - (MASViewAttribute *)mas_rightMargin { 97 | return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeRightMargin]; 98 | } 99 | 100 | - (MASViewAttribute *)mas_topMargin { 101 | return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeTopMargin]; 102 | } 103 | 104 | - (MASViewAttribute *)mas_bottomMargin { 105 | return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeBottomMargin]; 106 | } 107 | 108 | - (MASViewAttribute *)mas_leadingMargin { 109 | return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeLeadingMargin]; 110 | } 111 | 112 | - (MASViewAttribute *)mas_trailingMargin { 113 | return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeTrailingMargin]; 114 | } 115 | 116 | - (MASViewAttribute *)mas_centerXWithinMargins { 117 | return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeCenterXWithinMargins]; 118 | } 119 | 120 | - (MASViewAttribute *)mas_centerYWithinMargins { 121 | return [[MASViewAttribute alloc] initWithView:self layoutAttribute:NSLayoutAttributeCenterYWithinMargins]; 122 | } 123 | 124 | #endif 125 | 126 | #pragma mark - associated properties 127 | 128 | - (id)mas_key { 129 | return objc_getAssociatedObject(self, @selector(mas_key)); 130 | } 131 | 132 | - (void)setMas_key:(id)key { 133 | objc_setAssociatedObject(self, @selector(mas_key), key, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 134 | } 135 | 136 | #pragma mark - heirachy 137 | 138 | - (instancetype)mas_closestCommonSuperview:(MAS_VIEW *)view { 139 | MAS_VIEW *closestCommonSuperview = nil; 140 | 141 | MAS_VIEW *secondViewSuperview = view; 142 | while (!closestCommonSuperview && secondViewSuperview) { 143 | MAS_VIEW *firstViewSuperview = self; 144 | while (!closestCommonSuperview && firstViewSuperview) { 145 | if (secondViewSuperview == firstViewSuperview) { 146 | closestCommonSuperview = secondViewSuperview; 147 | } 148 | firstViewSuperview = firstViewSuperview.superview; 149 | } 150 | secondViewSuperview = secondViewSuperview.superview; 151 | } 152 | return closestCommonSuperview; 153 | } 154 | 155 | @end 156 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/ThirdParty/Masonry/View+MASShorthandAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+MASShorthandAdditions.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 22/07/13. 6 | // Copyright (c) 2013 Jonas Budelmann. All rights reserved. 7 | // 8 | 9 | #import "View+MASAdditions.h" 10 | 11 | #ifdef MAS_SHORTHAND 12 | 13 | /** 14 | * Shorthand view additions without the 'mas_' prefixes, 15 | * only enabled if MAS_SHORTHAND is defined 16 | */ 17 | @interface MAS_VIEW (MASShorthandAdditions) 18 | 19 | @property (nonatomic, strong, readonly) MASViewAttribute *left; 20 | @property (nonatomic, strong, readonly) MASViewAttribute *top; 21 | @property (nonatomic, strong, readonly) MASViewAttribute *right; 22 | @property (nonatomic, strong, readonly) MASViewAttribute *bottom; 23 | @property (nonatomic, strong, readonly) MASViewAttribute *leading; 24 | @property (nonatomic, strong, readonly) MASViewAttribute *trailing; 25 | @property (nonatomic, strong, readonly) MASViewAttribute *width; 26 | @property (nonatomic, strong, readonly) MASViewAttribute *height; 27 | @property (nonatomic, strong, readonly) MASViewAttribute *centerX; 28 | @property (nonatomic, strong, readonly) MASViewAttribute *centerY; 29 | @property (nonatomic, strong, readonly) MASViewAttribute *baseline; 30 | @property (nonatomic, strong, readonly) MASViewAttribute *(^attribute)(NSLayoutAttribute attr); 31 | 32 | #if TARGET_OS_IPHONE 33 | 34 | @property (nonatomic, strong, readonly) MASViewAttribute *leftMargin; 35 | @property (nonatomic, strong, readonly) MASViewAttribute *rightMargin; 36 | @property (nonatomic, strong, readonly) MASViewAttribute *topMargin; 37 | @property (nonatomic, strong, readonly) MASViewAttribute *bottomMargin; 38 | @property (nonatomic, strong, readonly) MASViewAttribute *leadingMargin; 39 | @property (nonatomic, strong, readonly) MASViewAttribute *trailingMargin; 40 | @property (nonatomic, strong, readonly) MASViewAttribute *centerXWithinMargins; 41 | @property (nonatomic, strong, readonly) MASViewAttribute *centerYWithinMargins; 42 | 43 | #endif 44 | 45 | - (NSArray *)makeConstraints:(void(^)(MASConstraintMaker *make))block; 46 | - (NSArray *)updateConstraints:(void(^)(MASConstraintMaker *make))block; 47 | - (NSArray *)remakeConstraints:(void(^)(MASConstraintMaker *make))block; 48 | 49 | @end 50 | 51 | #define MAS_ATTR_FORWARD(attr) \ 52 | - (MASViewAttribute *)attr { \ 53 | return [self mas_##attr]; \ 54 | } 55 | 56 | @implementation MAS_VIEW (MASShorthandAdditions) 57 | 58 | MAS_ATTR_FORWARD(top); 59 | MAS_ATTR_FORWARD(left); 60 | MAS_ATTR_FORWARD(bottom); 61 | MAS_ATTR_FORWARD(right); 62 | MAS_ATTR_FORWARD(leading); 63 | MAS_ATTR_FORWARD(trailing); 64 | MAS_ATTR_FORWARD(width); 65 | MAS_ATTR_FORWARD(height); 66 | MAS_ATTR_FORWARD(centerX); 67 | MAS_ATTR_FORWARD(centerY); 68 | MAS_ATTR_FORWARD(baseline); 69 | 70 | #if TARGET_OS_IPHONE 71 | 72 | MAS_ATTR_FORWARD(leftMargin); 73 | MAS_ATTR_FORWARD(rightMargin); 74 | MAS_ATTR_FORWARD(topMargin); 75 | MAS_ATTR_FORWARD(bottomMargin); 76 | MAS_ATTR_FORWARD(leadingMargin); 77 | MAS_ATTR_FORWARD(trailingMargin); 78 | MAS_ATTR_FORWARD(centerXWithinMargins); 79 | MAS_ATTR_FORWARD(centerYWithinMargins); 80 | 81 | #endif 82 | 83 | - (MASViewAttribute *(^)(NSLayoutAttribute))attribute { 84 | return [self mas_attribute]; 85 | } 86 | 87 | - (NSArray *)makeConstraints:(void(^)(MASConstraintMaker *))block { 88 | return [self mas_makeConstraints:block]; 89 | } 90 | 91 | - (NSArray *)updateConstraints:(void(^)(MASConstraintMaker *))block { 92 | return [self mas_updateConstraints:block]; 93 | } 94 | 95 | - (NSArray *)remakeConstraints:(void(^)(MASConstraintMaker *))block { 96 | return [self mas_remakeConstraints:block]; 97 | } 98 | 99 | @end 100 | 101 | #endif 102 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/BaiduMapAPI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/BaiduMapAPI -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKActionPaopaoView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKActionPaopaoView.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | /// 该类用于定义一个PaopaoView 11 | @interface BMKActionPaopaoView : UIView 12 | 13 | /** 14 | *初始化并返回一个BMKActionPaopaoView 15 | *@param customView 自定义View,customView=nil时返回默认的PaopaoView 16 | *@return 初始化成功则返回BMKActionPaopaoView,否则返回nil 17 | */ 18 | - (id)initWithCustomView:(UIView*)customView; 19 | 20 | @end 21 | 22 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKAnnotation.h: -------------------------------------------------------------------------------- 1 | // 2 | // BMKAnnotation.h 3 | // BMapKit 4 | // 5 | // Copyright 2011 Baidu Inc. All rights reserved. 6 | // 7 | 8 | #import 9 | #import 10 | #import 11 | 12 | /// 该类为标注点的protocol,提供了标注类的基本信息函数 13 | @protocol BMKAnnotation 14 | 15 | ///标注view中心坐标. 16 | @property (nonatomic, readonly) CLLocationCoordinate2D coordinate; 17 | 18 | @optional 19 | 20 | /** 21 | *获取annotation标题 22 | *@return 返回annotation的标题信息 23 | */ 24 | - (NSString *)title; 25 | 26 | /** 27 | *获取annotation副标题 28 | *@return 返回annotation的副标题信息 29 | */ 30 | - (NSString *)subtitle; 31 | 32 | /** 33 | *设置标注的坐标,在拖拽时会被调用. 34 | *@param newCoordinate 新的坐标值 35 | */ 36 | - (void)setCoordinate:(CLLocationCoordinate2D)newCoordinate; 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKAnnotationView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKAnnotationView.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | #import "BMKActionPaopaoView.h" 11 | 12 | #if __IPHONE_3_2 <= __IPHONE_OS_VERSION_MAX_ALLOWED 13 | 14 | enum { 15 | BMKAnnotationViewDragStateNone = 0, ///< 静止状态. 16 | BMKAnnotationViewDragStateStarting, ///< 开始拖动 17 | BMKAnnotationViewDragStateDragging, ///< 拖动中 18 | BMKAnnotationViewDragStateCanceling, ///< 取消拖动 19 | BMKAnnotationViewDragStateEnding ///< 拖动结束 20 | }; 21 | 22 | typedef NSUInteger BMKAnnotationViewDragState; 23 | 24 | #endif 25 | 26 | 27 | 28 | @class BMKAnnotationViewInternal; 29 | @protocol BMKAnnotation; 30 | @class BMKMapView; 31 | @class BMKMapViewInternal; 32 | ///标注view 33 | @interface BMKAnnotationView : UIView 34 | { 35 | @private 36 | BMKAnnotationViewInternal *_internal; 37 | BOOL _enabled3D; 38 | CGPoint _originPt; 39 | CGPoint startPoint; 40 | } 41 | 42 | /** 43 | *初始化并返回一个annotation view 44 | *@param annotation 关联的annotation对象 45 | *@param reuseIdentifier 如果要重用view,传入一个字符串,否则设为nil,建议重用view 46 | *@return 初始化成功则返回annotation view,否则返回nil 47 | */ 48 | - (id)initWithAnnotation:(id )annotation reuseIdentifier:(NSString *)reuseIdentifier; 49 | 50 | 51 | ///复用标志 52 | @property (nonatomic, readonly) NSString *reuseIdentifier; 53 | ///paopaoView 54 | @property (nonatomic, strong)BMKActionPaopaoView* paopaoView; 55 | 56 | /** 57 | *当view从reuse队列里取出时被调用 58 | *默认不做任何事 59 | */ 60 | - (void)prepareForReuse; 61 | 62 | ///关联的annotation 63 | @property (nonatomic, strong) id annotation; 64 | 65 | ///annotation view显示的图像 66 | @property (nonatomic, strong) UIImage *image; 67 | 68 | ///默认情况下, annotation view的中心位于annotation的坐标位置,可以设置centerOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是像素 69 | @property (nonatomic) CGPoint centerOffset; 70 | 71 | ///默认情况下, 弹出的气泡位于view正中上方,可以设置calloutOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是像素 72 | @property (nonatomic) CGPoint calloutOffset; 73 | 74 | ///默认情况下,标注没有3D效果,可以设置enabled3D改变使用3D效果,使得标注在地图旋转和俯视时跟随旋转、俯视 75 | @property (nonatomic) BOOL enabled3D; 76 | 77 | ///默认为YES,当为NO时view忽略触摸事件 78 | @property (nonatomic, getter=isEnabled) BOOL enabled; 79 | 80 | ///默认为NO,当view被点中时被设为YES,用户不要直接设置这个属性. 81 | @property (nonatomic, getter=isSelected) BOOL selected; 82 | 83 | /** 84 | *设定view的选中状态 85 | *该方法被BMKMapView调用 86 | *@param selected 如果view需要显示为选中状态,该值为YES 87 | *@param animated 如果需要动画效果,该值为YES,暂不支持 88 | */ 89 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated; 90 | 91 | ///当为YES时,view被选中时会弹出气泡,annotation必须实现了title这个方法 92 | @property (nonatomic) BOOL canShowCallout; 93 | 94 | ///显示在气泡左侧的view(使用默认气泡时,view的width最大值为32,height最大值为41,大于则使用最大值) 95 | @property (strong, nonatomic) UIView *leftCalloutAccessoryView; 96 | 97 | ///显示在气泡右侧的view(使用默认气泡时,view的width最大值为32,height最大值为41,大于则使用最大值) 98 | @property (strong, nonatomic) UIView *rightCalloutAccessoryView; 99 | 100 | ///当设为YES并实现了setCoordinate:方法时,支持将view在地图上拖动, ios 3.2以后支持 101 | @property (nonatomic, getter=isDraggable) BOOL draggable __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_2); 102 | 103 | ///当前view的拖动状态, ios 3.2以后支持 104 | @property (nonatomic) BMKAnnotationViewDragState dragState __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_2); 105 | 106 | 107 | @end 108 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKArcline.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKArcline.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import "BMKMultiPoint.h" 10 | #import "BMKOverlay.h" 11 | 12 | /// 此类用于定义一段圆弧 13 | @interface BMKArcline : BMKMultiPoint 14 | { 15 | BMKMapRect _boundingMapRect; 16 | bool isYouArc; 17 | } 18 | 19 | /** 20 | *根据指定坐标点生成一段圆弧 21 | *@param points 指定的直角坐标点数组 22 | *@return 新生成的圆弧对象 23 | */ 24 | + (BMKArcline *)arclineWithPoints:(BMKMapPoint *)points; 25 | 26 | /** 27 | *根据指定经纬度生成一段圆弧 28 | *@param coords 指定的经纬度坐标点数组 29 | *@return 新生成的圆弧对象 30 | */ 31 | + (BMKArcline *)arclineWithCoordinates:(CLLocationCoordinate2D *)coords; 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKArclineView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKArclineView.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | 11 | #import "BMKArcline.h" 12 | #import "BMKOverlayGLBasicView.h" 13 | 14 | /// 此类用于定义一个圆弧View 15 | @interface BMKArclineView : BMKOverlayGLBasicView 16 | 17 | /** 18 | *根据指定的弧线生成一个圆弧View 19 | *@param arcline 指定的弧线数据对象 20 | *@return 新生成的弧线View 21 | */ 22 | - (id)initWithArcline:(BMKArcline *)arcline; 23 | 24 | /// 该View对应的圆弧数据对象 25 | @property (nonatomic, readonly) BMKArcline *arcline; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKBaseComponent.h: -------------------------------------------------------------------------------- 1 | // 2 | // BaseComponent.h 3 | // BaseComponent 4 | // 5 | // Created by baidu on 14-3-17. 6 | // Copyright (c) 2014年 baidu. All rights reserved. 7 | // 8 | 9 | #import "BMKGeneralDelegate.h" 10 | #import "BMKMapManager.h" 11 | #import "BMKTypes.h" 12 | #import "BMKUserLocation.h" 13 | #import "BMKVersion.h" 14 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKBusLineSearch.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKBusLineSearch.h 3 | * BMapKit 4 | * 5 | * Copyright 2014 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | #import "BMKPoiSearchType.h" 11 | #import "BMKTypes.h" 12 | #import "BMKBusLineSearchOption.h" 13 | #import "BMKRouteSearchType.h" 14 | 15 | @protocol BMKBusLineSearchDelegate; 16 | ///busline搜索服务 17 | @interface BMKBusLineSearch : NSObject 18 | /// 检索模块的Delegate,此处记得不用的时候需要置nil,否则影响内存的释放 19 | @property (nonatomic, weak) id delegate; 20 | 21 | /** 22 | *公交详情检索 23 | *异步函数,返回结果在BMKBusLineSearchDelegate的onGetBusDetailResult通知 24 | *@param busLineSearchOption 公交线路检索信息类 25 | *@return 成功返回YES,否则返回NO 26 | */ 27 | - (BOOL)busLineSearch:(BMKBusLineSearchOption*)busLineSearchOption; 28 | 29 | 30 | @end 31 | 32 | ///搜索delegate,用于获取搜索结果 33 | @protocol BMKBusLineSearchDelegate 34 | @optional 35 | /** 36 | *返回busdetail搜索结果 37 | *@param searcher 搜索对象 38 | *@param busLineResult 搜索结果 39 | *@param error 错误号,@see BMKSearchErrorCode 40 | */ 41 | - (void)onGetBusDetailResult:(BMKBusLineSearch*)searcher result:(BMKBusLineResult*)busLineResult errorCode:(BMKSearchErrorCode)error; 42 | 43 | @end 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKBusLineSearchOption.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKBusLineSearchOption.h 3 | * BMapKit 4 | * 5 | * Copyright 2014 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | /// 公交线路检索信息类 11 | @interface BMKBusLineSearchOption : NSObject 12 | { 13 | NSString *_city; 14 | NSString *_busLineUid; 15 | } 16 | ///城市名 17 | @property (nonatomic, strong) NSString *city; 18 | ///公交线路的uid 19 | @property (nonatomic, strong) NSString *busLineUid; 20 | 21 | @end 22 | 23 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKCircle.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKCircle.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import "BMKShape.h" 10 | #import "BMKMultiPoint.h" 11 | #import "BMKOverlay.h" 12 | 13 | /// 该类用于定义一个圆 14 | @interface BMKCircle : BMKMultiPoint { 15 | @package 16 | BOOL _invalidate; 17 | CLLocationCoordinate2D _coordinate; 18 | CLLocationDistance _radius; 19 | BMKMapRect _boundingMapRect; 20 | } 21 | 22 | /** 23 | *根据中心点和半径生成圆 24 | *@param coord 中心点的经纬度坐标 25 | *@param radius 半径,单位:米 26 | *@return 新生成的圆 27 | */ 28 | + (BMKCircle *)circleWithCenterCoordinate:(CLLocationCoordinate2D)coord 29 | radius:(CLLocationDistance)radius; 30 | 31 | /** 32 | *根据指定的直角坐标矩形生成圆,半径由较长的那条边决定,radius = MAX(width, height)/2 33 | *@param mapRect 指定的直角坐标矩形 34 | *@return 新生成的圆 35 | */ 36 | + (BMKCircle *)circleWithMapRect:(BMKMapRect)mapRect; 37 | 38 | /// 中心点坐标 39 | @property (nonatomic, readonly) CLLocationCoordinate2D coordinate; 40 | 41 | /// 半径,单位:米 42 | @property (nonatomic, readonly) CLLocationDistance radius; 43 | 44 | /// 该圆的外接矩形 45 | @property (nonatomic, readonly) BMKMapRect boundingMapRect; 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKCircleView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKCircleView.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | 11 | #import "BMKCircle.h" 12 | #import "BMKOverlayGLBasicView.h" 13 | 14 | /// 该类用于定义圆对应的View 15 | @interface BMKCircleView : BMKOverlayGLBasicView 16 | 17 | /** 18 | *根据指定圆生成对应的View 19 | *@param circle 指定的圆 20 | *@return 生成的View 21 | */ 22 | - (id)initWithCircle:(BMKCircle *)circle; 23 | 24 | /// 该View对应的圆 25 | @property (nonatomic, readonly) BMKCircle *circle; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKCloudPOIList.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKCloudPOIList.h 3 | * BMapKit 4 | * 5 | * Copyright 2013 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | #import 9 | /// 云检索结果列表类 10 | @interface BMKCloudPOIList : NSObject { 11 | NSInteger _status; 12 | NSInteger _total; 13 | NSInteger _size; 14 | NSInteger _pageNum; 15 | NSArray *_POIs; 16 | 17 | } 18 | ///搜索状态 19 | @property (nonatomic, assign) NSInteger status; 20 | ///结果总数 21 | @property (nonatomic, assign) NSInteger total; 22 | ///当前页返回数量 23 | @property (nonatomic, assign) NSInteger size; 24 | ///页数 25 | @property (nonatomic, assign) NSInteger pageNum; 26 | ///POI结果列表 27 | @property (nonatomic, strong) NSArray *POIs; 28 | 29 | @end 30 | 31 | 32 | /// 云检索结果信息类 33 | @interface BMKCloudPOIInfo : NSObject { 34 | int _uid; 35 | int _geotableId; 36 | NSString *_title; 37 | NSString *_address; 38 | NSString *_province; 39 | NSString *_city; 40 | NSString *_district; 41 | float _latitude; 42 | float _longitude; 43 | NSString *_tags; 44 | float _distance; 45 | float _weight; 46 | NSMutableDictionary *_customDict; 47 | int _creattime; 48 | int _modifytime; 49 | int _type; 50 | 51 | 52 | } 53 | ///poi数据id 54 | @property (nonatomic, assign) int uid; 55 | ///所属table的id 56 | @property (nonatomic, assign) int geotableId; 57 | ///poi名称 58 | @property (nonatomic, strong) NSString *title; 59 | ///poi地址 60 | @property (nonatomic, strong) NSString *address; 61 | ///poi所属省 62 | @property (nonatomic, strong) NSString *province; 63 | ///poi所属城市 64 | @property (nonatomic, strong) NSString *city; 65 | ///poi所属区县 66 | @property (nonatomic, strong) NSString *district; 67 | ///poi所处位置的纬度 68 | @property (nonatomic, assign) float latitude; 69 | ///poi所处位置的经度 70 | @property (nonatomic, assign) float longitude; 71 | ///poi标签 72 | @property (nonatomic, strong) NSString *tags; 73 | ///poi距离 74 | @property (nonatomic, assign) float distance; 75 | ///权重 76 | @property (nonatomic, assign) float weight; 77 | ///自定义列 78 | @property (nonatomic, strong) NSMutableDictionary *customDict; 79 | ///创建时间 80 | @property (nonatomic, assign) int creattime; 81 | ///修改时间 82 | @property (nonatomic, assign) int modifytime; 83 | ///类型 84 | @property (nonatomic, assign) int type; 85 | 86 | @end 87 | 88 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKCloudSearch.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKCloudSearch.h 3 | * BMapKit 4 | * 5 | * Copyright 2013 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | #import "BMKCloudSearchInfo.h" 11 | #import "BMKCloudPOIList.h" 12 | 13 | @protocol BMKCloudSearchDelegate; 14 | /// 云检索类型 15 | enum BMKCloudSearchType 16 | { 17 | BMK_NONE_SEARCH = 0, 18 | BMK_CLOUD_LOCAL_SEARCH = 1,///<本地云检索 19 | BMK_CLOUD_NEARBY_SEARCH = 2,///<周边云检索 20 | BMK_CLOUD_BOUND_SEARCH = 3,///<区域云检索 21 | BMK_CLOUD_DETAIL_SEARCH = 4/// delegate; 28 | /** 29 | *本地云检索 30 | *异步函数,返回结果在BMKCloudSearchDelegate的onGetCloudPoiResult通知 31 | *@param searchInfo 搜索参数 32 | *@return 成功返回YES,否则返回NO 33 | */ 34 | - (BOOL)localSearchWithSearchInfo:(BMKCloudLocalSearchInfo *)searchInfo; 35 | /** 36 | *周边云检索 37 | *异步函数,返回结果在BMKCloudSearchDelegate的onGetCloudPoiResult通知 38 | *@param searchInfo 搜索参数 39 | *@return 成功返回YES,否则返回NO 40 | */ 41 | - (BOOL)nearbySearchWithSearchInfo:(BMKCloudNearbySearchInfo *)searchInfo; 42 | /** 43 | *矩形云检索 44 | *异步函数,返回结果在BMKCloudSearchDelegate的onGetCloudPoiResult通知 45 | *@param searchInfo 搜索参数 46 | *@return 成功返回YES,否则返回NO 47 | */ 48 | - (BOOL)boundSearchWithSearchInfo:(BMKCloudBoundSearchInfo *)searchInfo; 49 | 50 | /** 51 | *详情云检索 52 | *异步函数,返回结果在BMKCloudSearchDelegate的onGetCloudPoiDetailResult通知 53 | *@param searchInfo 搜索参数 54 | *@return 成功返回YES,否则返回NO 55 | */ 56 | - (BOOL)detailSearchWithSearchInfo:(BMKCloudDetailSearchInfo *)searchInfo; 57 | 58 | @end 59 | 60 | ///云检索delegate,用于获取云检索结果 61 | @protocol BMKCloudSearchDelegate 62 | @optional 63 | /** 64 | *返回云检索POI列表结果 65 | *@param poiResultList 云检索结果列表,成员类型为BMKCloudPOIList 66 | *@param type 返回结果类型: BMK_CLOUD_LOCAL_SEARCH,BMK_CLOUD_NEARBY_SEARCH,BMK_CLOUD_BOUND_SEARCH 67 | *@param error 错误号,@see BMKErrorCode 68 | */ 69 | - (void)onGetCloudPoiResult:(NSArray*)poiResultList searchType:(int)type errorCode:(int)error; 70 | 71 | /** 72 | *返回云检索POI详情 73 | *@param poiDetailResult 类型为BMKCloudPOIInfo 74 | *@param type 返回结果类型: BMK_CLOUD_DETAIL_SEARCH 75 | *@param error 错误号,@see BMKErrorCode 76 | */ 77 | - (void)onGetCloudPoiDetailResult:(BMKCloudPOIInfo*)poiDetailResult searchType:(int)type errorCode:(int)error; 78 | @end 79 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKCloudSearchComponent.h: -------------------------------------------------------------------------------- 1 | // 2 | // LBSSearchComponent.h 3 | // LBSSearchComponent 4 | // 5 | // Created by baidu on 14-3-10. 6 | // Copyright (c) 2014年 baidu. All rights reserved. 7 | // 8 | 9 | 10 | #import "BMKCloudPOIList.h" 11 | #import "BMKCloudSearch.h" 12 | #import "BMKCloudSearchInfo.h" 13 | 14 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKCloudSearchInfo.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKCloudSearchInfo.h 3 | * BMapKit 4 | * 5 | * Copyright 2013 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | #import 9 | /// 云检索基础信息类,所有类型云检索的基类 10 | @interface BMKBaseCloudSearchInfo : NSObject 11 | { 12 | NSString *_ak; 13 | NSString *_sn; 14 | int _geoTableId; 15 | } 16 | ///access_key(必须),最大长度50 17 | @property (nonatomic, strong) NSString *ak; 18 | ///用户的权限签名,(可选),最大长度50 19 | @property (nonatomic, strong) NSString *sn; 20 | ///geo table 表主键(必须) 21 | @property (nonatomic, assign) int geoTableId; 22 | 23 | @end 24 | 25 | /// 本地,周边,矩形云检索基础信息类 26 | @interface BMKCloudSearchInfo : BMKBaseCloudSearchInfo { 27 | NSString *_keyword; 28 | NSString *_tags; 29 | NSString *_sortby; 30 | NSString *_filter; 31 | NSInteger _pageIndex; 32 | NSInteger _pageSize; 33 | 34 | } 35 | ///检索关键字,必选。最长45个字符 36 | @property (nonatomic, strong) NSString *keyword; 37 | ///标签,可选,空格分隔的多字符串,最长45个字符,样例:美食 小吃 38 | @property (nonatomic, strong) NSString *tags; 39 | /** 40 | * 排序字段,可选: sortby={keyname}:1 升序;sortby={keyname}:-1 降序。 41 | * 以下keyname为系统预定义的: 42 | * 1.distance 距离排序 43 | * 2.weight 权重排序 44 | * 默认为按weight排序 45 | * 如果需要自定义排序则指定排序字段 46 | * 样例:按照价格由便宜到贵排序sortby=price:1 47 | */ 48 | ///排序字段,可选: sortby={keyname}:1 升序;sortby={keyname}:-1 降序 49 | @property (nonatomic, strong) NSString *sortby; 50 | /** 51 | * 过滤条件,可选 52 | * '|'竖线分隔的多个key-value对 53 | * key为筛选字段的名称(存储服务中定义) 54 | * value可以是整形或者浮点数的一个区间:格式为“small,big”逗号分隔的2个数字 55 | * 样例:筛选价格为9.99到19.99并且生产时间为2013年的项:price:9.99,19.99|time:2012,2012 56 | */ 57 | ///过滤条件,可选:'|'竖线分隔的多个key-value对,price:9.99,19.99|time:2012,2012 58 | @property (nonatomic, strong) NSString *filter; 59 | 60 | ///分页索引,可选,默认为0 61 | @property (nonatomic, assign) NSInteger pageIndex; 62 | ///分页数量,可选,默认为10,最多为50 63 | @property (nonatomic, assign) NSInteger pageSize; 64 | 65 | 66 | @end 67 | ///本地云检索参数信息类 68 | @interface BMKCloudLocalSearchInfo : BMKCloudSearchInfo { 69 | NSString *_region; 70 | } 71 | ///区域名称(市或区的名字,如北京市,海淀区),必选, 必须最长25个字符 72 | @property (nonatomic, strong) NSString *region; 73 | @end 74 | 75 | ///周边云检索参数信息类 76 | @interface BMKCloudNearbySearchInfo : BMKCloudSearchInfo { 77 | NSString *_location; 78 | int _radius; 79 | } 80 | ///检索的中心点,逗号分隔的经纬度(116.4321,38.76623),string(25) 81 | @property (nonatomic, strong) NSString *location; 82 | ///周边检索半径 83 | @property (nonatomic, assign) int radius; 84 | @end 85 | 86 | ///矩形云检索参数信息类 87 | @interface BMKCloudBoundSearchInfo : BMKCloudSearchInfo { 88 | NSString *_bounds; 89 | } 90 | ///矩形区域,左下角和右上角的经纬度坐标点。2个点用;号分隔(116.30,36.20;117.30,37.20),string(25) 91 | @property (nonatomic, strong) NSString *bounds; 92 | @end 93 | 94 | ///详情云检索参数信息类 95 | @interface BMKCloudDetailSearchInfo : BMKBaseCloudSearchInfo { 96 | NSString *_uid; 97 | } 98 | ///uid为poi点的id值 99 | @property (nonatomic, strong) NSString *uid; 100 | @end 101 | 102 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKGeneralDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BMKGeneralDelegate.h 3 | // BMapKit 4 | // 5 | // Copyright 2011 Baidu Inc. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | ///通知Delegate 11 | @protocol BMKGeneralDelegate 12 | @optional 13 | /** 14 | *返回网络错误 15 | *@param iError 错误号 16 | */ 17 | - (void)onGetNetworkState:(int)iError; 18 | 19 | /** 20 | *返回授权验证错误 21 | *@param iError 错误号 : 为0时验证通过,具体参加BMKPermissionCheckResultCode 22 | */ 23 | - (void)onGetPermissionState:(int)iError; 24 | @end 25 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKGeocodeSearch.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKGeocodeSearch.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import "BMKPoiSearchType.h" 10 | #import "BMKGeocodeSearchOption.h" 11 | #import "BMKGeocodeType.h" 12 | 13 | @protocol BMKGeoCodeSearchDelegate; 14 | ///geo搜索服务 15 | @interface BMKGeoCodeSearch : NSObject 16 | /// 检索模块的Delegate,此处记得不用的时候需要置nil,否则影响内存的释放 17 | @property (nonatomic, weak) id delegate; 18 | 19 | /** 20 | *根据地址名称获取地理信息 21 | *异步函数,返回结果在BMKGeoCodeSearchDelegate的onGetAddrResult通知 22 | *@param geoCodeOption geo检索信息类 23 | *@return 成功返回YES,否则返回NO 24 | */ 25 | - (BOOL)geoCode:(BMKGeoCodeSearchOption*)geoCodeOption; 26 | /** 27 | *根据地理坐标获取地址信息 28 | *异步函数,返回结果在BMKGeoCodeSearchDelegate的onGetAddrResult通知 29 | *@param reverseGeoCodeOption 反geo检索信息类 30 | *@return 成功返回YES,否则返回NO 31 | */ 32 | - (BOOL)reverseGeoCode:(BMKReverseGeoCodeOption*)reverseGeoCodeOption; 33 | 34 | 35 | @end 36 | 37 | ///搜索delegate,用于获取搜索结果 38 | @protocol BMKGeoCodeSearchDelegate 39 | @optional 40 | /** 41 | *返回地址信息搜索结果 42 | *@param searcher 搜索对象 43 | *@param result 搜索结BMKGeoCodeSearch果 44 | *@param error 错误号,@see BMKSearchErrorCode 45 | */ 46 | - (void)onGetGeoCodeResult:(BMKGeoCodeSearch *)searcher result:(BMKGeoCodeResult *)result errorCode:(BMKSearchErrorCode)error; 47 | 48 | /** 49 | *返回反地理编码搜索结果 50 | *@param searcher 搜索对象 51 | *@param result 搜索结果 52 | *@param error 错误号,@see BMKSearchErrorCode 53 | */ 54 | - (void)onGetReverseGeoCodeResult:(BMKGeoCodeSearch *)searcher result:(BMKReverseGeoCodeResult *)result errorCode:(BMKSearchErrorCode)error; 55 | 56 | @end 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKGeocodeSearchOption.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKGeoCodeSearchOption.h 3 | * BMapKit 4 | * 5 | * Copyright 2013 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import "BMKTypes.h" 10 | /// geo检索信息类 11 | @interface BMKGeoCodeSearchOption : NSObject 12 | { 13 | NSString *_address; 14 | NSString *_city; 15 | } 16 | ///地址 17 | @property (nonatomic, strong) NSString *address; 18 | ///城市名 19 | @property (nonatomic, strong) NSString *city; 20 | @end 21 | 22 | ///反geo检索信息类 23 | @interface BMKReverseGeoCodeOption : NSObject { 24 | CLLocationCoordinate2D _reverseGeoPoint; 25 | } 26 | ///经纬度 27 | @property (nonatomic, assign) CLLocationCoordinate2D reverseGeoPoint; 28 | @end 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKGeocodeType.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKGeocodeType.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | #import 11 | 12 | 13 | ///此类表示地址结果的层次化信息 14 | @interface BMKAddressComponent : NSObject 15 | { 16 | NSString* _streetNumber; 17 | NSString* _streetName; 18 | NSString* _district; 19 | NSString* _city; 20 | NSString* _province; 21 | } 22 | 23 | /// 街道号码 24 | @property (nonatomic, strong) NSString* streetNumber; 25 | /// 街道名称 26 | @property (nonatomic, strong) NSString* streetName; 27 | /// 区县名称 28 | @property (nonatomic, strong) NSString* district; 29 | /// 城市名称 30 | @property (nonatomic, strong) NSString* city; 31 | /// 省份名称 32 | @property (nonatomic, strong) NSString* province; 33 | 34 | @end 35 | 36 | 37 | 38 | ///反地址编码结果 39 | @interface BMKReverseGeoCodeResult : NSObject 40 | { 41 | BMKAddressComponent* _addressDetail; 42 | NSString* _address; 43 | CLLocationCoordinate2D _location; 44 | NSArray* _poiList; 45 | } 46 | ///层次化地址信息 47 | @property (nonatomic, strong) BMKAddressComponent* addressDetail; 48 | ///地址名称 49 | @property (nonatomic, strong) NSString* address; 50 | ///地址坐标 51 | @property (nonatomic) CLLocationCoordinate2D location; 52 | ///地址周边POI信息,成员类型为BMKPoiInfo 53 | @property (nonatomic, strong) NSArray* poiList; 54 | 55 | @end 56 | 57 | ///地址编码结果 58 | @interface BMKGeoCodeResult : NSObject 59 | { 60 | CLLocationCoordinate2D _location; 61 | NSString* _address; 62 | } 63 | ///地理编码位置 64 | @property (nonatomic) CLLocationCoordinate2D location; 65 | ///地理编码地址 66 | @property (nonatomic,strong) NSString* address; 67 | 68 | @end 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKGradient.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKGradient.h 3 | * BMapKit 4 | * 5 | * Copyright 2013 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | #import 9 | #import 10 | #import "BMKTypes.h" 11 | ///此类表示热力图渐变色 12 | @interface BMKGradient : NSObject{ 13 | 14 | } 15 | ///渐变色用到的所有颜色数组,数组成员类型为UIColor 16 | @property (nonatomic,strong) NSArray* mColors; 17 | ///每一个颜色的起始点数组,,数组成员类型为 [0,1]的double值, given as a percentage of the maximum intensity,个数和mColors的个数必须相同,数组内元素必须时递增的 18 | @property (nonatomic,strong) NSArray* mStartPoints; 19 | 20 | //渐变色的初始化方法,使用默认colorMapSize1000进行初始化 21 | - (id)initWithColors:(NSArray*)colors startPoints:(NSArray*)startPoints; 22 | @end 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKGroundOverlay.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKGroundOverlay.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | #import "BMKMultiPoint.h" 9 | #import "BMKOverlay.h" 10 | /// 该类用于定义一个图片图层 11 | @interface BMKGroundOverlay : BMKMultiPoint 12 | { 13 | @public 14 | float zoomLevel; 15 | CLLocationCoordinate2D _pt; 16 | BMKCoordinateBounds _bound; 17 | CGPoint _anchor; 18 | UIImage* _icon; 19 | int iconID; 20 | BOOL isCenterPt; 21 | int left; 22 | int bottom; 23 | int width; 24 | int height; 25 | } 26 | /// 两种绘制GroundOverlay的方式之一:绘制的位置地理坐标,与anchor配对使用 27 | @property (nonatomic,assign) CLLocationCoordinate2D pt; 28 | 29 | /// 用位置绘制时图片的锚点,图片左上角为(0.0f,0.0f),向右向下为正 30 | /// 使用groundOverlayWithPosition初始化时生效 31 | @property (nonatomic,assign) CGPoint anchor; 32 | 33 | /// 两种绘制GroundOverlay的方式之二:绘制的地理区域范围,图片在此区域内合理缩放 34 | @property (nonatomic,assign) BMKCoordinateBounds bound; 35 | 36 | /// 绘制图片 37 | @property(nonatomic, strong) UIImage *icon; 38 | 39 | ///图片纹理透明度,最终透明度 = 纹理透明度 * alpha,取值范围为[0.0f, 1.0f],默认为1.0f 40 | @property(nonatomic) GLfloat alpha; 41 | 42 | /** 43 | *根据指定经纬度坐标生成一个groundOverlay 44 | *@param position 指定的经纬度坐标 45 | *@param zoomLevel 不损失精度绘制原始图片的地图等级 46 | *@param anchor 绘制图片的锚点 47 | *@param icon 绘制使用的图片 48 | *@return 新生成的groundOverlay对象 49 | */ 50 | + (BMKGroundOverlay *)groundOverlayWithPosition:(CLLocationCoordinate2D)position 51 | zoomLevel:(CGFloat)zoomLevel 52 | anchor:(CGPoint)anchor 53 | icon:(UIImage*)icon; 54 | 55 | /** 56 | *根据指定区域生成一个groundOverlay 57 | *@param bounds 指定的经纬度区域 58 | *@param icon 绘制使用的图片 59 | *@return 新生成的groundOverlay对象 60 | */ 61 | + (BMKGroundOverlay *)groundOverlayWithBounds:(BMKCoordinateBounds)bounds 62 | icon:(UIImage*)icon; 63 | 64 | 65 | @end -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKGroundOverlayView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKGroundOverlayView.h 3 | * BMapKit 4 | * 5 | * Copyright 2013 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | 11 | #import "BMKGroundOverlay.h" 12 | #import "BMKOverlayPathView.h" 13 | 14 | /// 该类用于定义一个BMKGroundOverlayView 15 | @interface BMKGroundOverlayView : BMKOverlayView 16 | 17 | /** 18 | *根据指定的groundOverlay生成一个View 19 | *@param groundOverlay 指定的groundOverlay数据对象 20 | *@return 新生成的View 21 | */ 22 | - (id)initWithGroundOverlay:(BMKGroundOverlay *)groundOverlay; 23 | 24 | /// 该View对应的ground数据对象 25 | @property (nonatomic, readonly) BMKGroundOverlay *groundOverlay; 26 | 27 | @end 28 | 29 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKHeatMap.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKHeatMap.h 3 | * BMapKit 4 | * 5 | * Copyright 2013 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | #import 9 | #import 10 | #import "BMKTypes.h" 11 | #import "BMKGradient.h" 12 | ///热力图节点信息 13 | @interface BMKHeatMapNode : NSObject{ 14 | double _intensity; 15 | CLLocationCoordinate2D _pt; 16 | } 17 | 18 | ///点的强度权值 19 | @property (nonatomic) double intensity; 20 | ///点的位置坐标 21 | @property (nonatomic) CLLocationCoordinate2D pt; 22 | 23 | @end 24 | 25 | 26 | 27 | ///热力图的绘制数据和显示样式类 28 | @interface BMKHeatMap : NSObject 29 | { 30 | int _mRadius; //Heatmap point radius 31 | BMKGradient* _mGradient;//Gradient of the color map 32 | double _mOpacity;//Opacity of the overall heatmap overlay [0...1] 33 | NSMutableArray* _mData; 34 | 35 | } 36 | ///设置热力图点半径,默认为12ps 37 | @property (nonatomic, assign) int mRadius; 38 | ///设置热力图渐变,有默认值 DEFAULT_GRADIENT 39 | @property (nonatomic, strong) BMKGradient* mGradient; 40 | ///设置热力图层透明度,默认 0.6 41 | @property (nonatomic, assign) double mOpacity; 42 | ///用户传入的热力图数据,数组,成员类型为BMKHeatMapNode 43 | @property (nonatomic, strong) NSMutableArray* mData; 44 | 45 | @end 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKLocationComponent.h: -------------------------------------------------------------------------------- 1 | // 2 | // BMKLocationComponent.h 3 | // LocationComponent 4 | // 5 | // Created by Baidu on 3/31/14. 6 | // Copyright (c) 2014 baidu. All rights reserved. 7 | // 8 | 9 | #import"BMKLocationService.h" 10 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKLocationService.h: -------------------------------------------------------------------------------- 1 | // 2 | // BMKLocationService.h 3 | // LocationComponent 4 | // 5 | // Created by Baidu on 3/28/14. 6 | // Copyright (c) 2014 baidu. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "BMKUserLocation.h" 11 | @class CLLocation; 12 | /// 定位服务Delegate,调用startUserLocationService定位成功后,用此Delegate来获取定位数据 13 | @protocol BMKLocationServiceDelegate 14 | @optional 15 | /** 16 | *在将要启动定位时,会调用此函数 17 | */ 18 | - (void)willStartLocatingUser; 19 | 20 | /** 21 | *在停止定位后,会调用此函数 22 | */ 23 | - (void)didStopLocatingUser; 24 | 25 | /** 26 | *用户方向更新后,会调用此函数 27 | *@param userLocation 新的用户位置 28 | */ 29 | - (void)didUpdateUserHeading:(BMKUserLocation *)userLocation; 30 | 31 | /** 32 | *用户位置更新后,会调用此函数 33 | *@param userLocation 新的用户位置 34 | */ 35 | - (void)didUpdateBMKUserLocation:(BMKUserLocation *)userLocation; 36 | 37 | /** 38 | *定位失败后,会调用此函数 39 | *@param error 错误号 40 | */ 41 | - (void)didFailToLocateUserWithError:(NSError *)error; 42 | @end 43 | 44 | @interface BMKLocationService : NSObject 45 | 46 | /// 当前用户位置,返回坐标为百度坐标 47 | @property (nonatomic, readonly) BMKUserLocation *userLocation; 48 | 49 | /// 定位服务Delegate,调用startUserLocationService定位成功后,用此Delegate来获取定位数据 50 | @property (nonatomic, weak) id delegate; 51 | 52 | /* 53 | *在打开定位服务前设置 54 | *指定定位的最小更新距离(米),默认:kCLDistanceFilterNone 55 | */ 56 | + (void)setLocationDistanceFilter:(CLLocationDistance) distanceFilter; 57 | /* 58 | *获取当前 定位的最小更新距离(米) 59 | */ 60 | + (CLLocationDistance)getCurrentLocationDistanceFilter; 61 | /* 62 | *在打开定位服务前设置 63 | *设置定位精确度,默认:kCLLocationAccuracyBest 64 | */ 65 | + (void)setLocationDesiredAccuracy:(CLLocationAccuracy) desiredAccuracy; 66 | /* 67 | *获取当前 定位精确度 68 | */ 69 | + (CLLocationAccuracy)getCurrentLocationDesiredAccuracy; 70 | 71 | /** 72 | *打开定位服务 73 | *需要在info.plist文件中添加(以下二选一,两个都添加默认使用NSLocationWhenInUseUsageDescription): 74 | *NSLocationWhenInUseUsageDescription 允许在前台使用时获取GPS的描述 75 | *NSLocationAlwaysUsageDescription 允许永远可获取GPS的描述 76 | */ 77 | -(void)startUserLocationService; 78 | /** 79 | *关闭定位服务 80 | */ 81 | -(void)stopUserLocationService; 82 | 83 | @end 84 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKLocationViewDisplayParam.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKLocationViewDisplayParam.h 3 | * BMapKit 4 | * 5 | * Copyright 2013 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | #import 9 | #import 10 | 11 | 12 | ///此类表示定位图层自定义样式参数 13 | @interface BMKLocationViewDisplayParam : NSObject 14 | { 15 | float _locationViewOffsetX; // 定位图标偏移量(经度) 16 | float _locationViewOffsetY; // 定位图标偏移量(纬度) 17 | bool _isAccuracyCircleShow;// 精度圈是否显示 18 | bool _isRotateAngleValid; // 跟随态旋转角度是否生效 19 | NSString* _locationViewImgName;// 定位图标名称 20 | 21 | } 22 | ///定位图标偏移量X 23 | @property (nonatomic, assign) float locationViewOffsetX; 24 | ///定位图标偏移量Y 25 | @property (nonatomic, assign) float locationViewOffsetY; 26 | ///精度圈是否显示 27 | @property (nonatomic, assign) bool isAccuracyCircleShow; 28 | ///跟随态旋转角度是否生效 29 | @property (nonatomic, assign) bool isRotateAngleValid; 30 | ///定位图标 31 | @property (nonatomic, strong) NSString* locationViewImgName; 32 | 33 | @end 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKMapComponent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKMapComponent.h 3 | * BMKMapComponent 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import "BMKAnnotation.h" 10 | #import "BMKAnnotationView.h" 11 | 12 | #import "BMKMapView.h" 13 | #import "BMKOfflineMap.h" 14 | #import "BMKOfflineMapType.h" 15 | 16 | #import "BMKOverlay.h" 17 | #import "BMKShape.h" 18 | #import "BMKPointAnnotation.h" 19 | #import "BMKPinAnnotationView.h" 20 | #import "BMKMultiPoint.h" 21 | #import "BMKArcline.h" 22 | #import "BMKPolyline.h" 23 | #import "BMKPolygon.h" 24 | #import "BMKCircle.h" 25 | #import "BMKOverlayView.h" 26 | #import "BMKOverlayPathView.h" 27 | #import "BMKOverlayGLBasicView.h" 28 | #import "BMKPolygonView.h" 29 | #import "BMKPolylineView.h" 30 | #import "BMKCircleView.h" 31 | #import "BMKArclineView.h" 32 | #import "BMKGroundOverlay.h" 33 | #import "BMKGroundOverlayView.h" 34 | #import "BMKGradient.h" 35 | 36 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKMapManager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKMapManager.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import "BMKGeneralDelegate.h" 10 | #import 11 | 12 | enum EN_PERMISSION_STATUS 13 | { 14 | E_PERMISSION_OK = 0, // 授权验证通过 15 | E_PERMISSION_SERVER_ERROR = -200, //服务端数据错误,无法解析服务端返回数据 16 | E_PERMISSION_NETWORK_ERROR = -300, //无法建立与服务端的连接 17 | 18 | }; 19 | 20 | ///主引擎类 21 | @interface BMKMapManager : NSObject 22 | 23 | /** 24 | *启动引擎 25 | *@param key 申请的有效key 26 | *@param delegate 27 | */ 28 | -(BOOL)start:(NSString*)key generalDelegate:(id)delegate; 29 | 30 | /** 31 | *停止引擎 32 | */ 33 | -(BOOL)stop; 34 | 35 | @end 36 | 37 | 38 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKMapStatus.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKMapStatus.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | #import 11 | #import 12 | 13 | 14 | ///此类表示地图状态信息 15 | @interface BMKMapStatus : NSObject 16 | { 17 | float _fLevel; // 缩放比例,3-19级 18 | float _fRotation; // 旋转角度 19 | float _fOverlooking; // 俯视角度 20 | 21 | CGPoint _targetScreenPt;//屏幕坐标(中心点) 22 | CLLocationCoordinate2D _targetGeoPt;//地理坐标(中心点) 23 | } 24 | ///缩放级别:[3~19] 25 | @property (nonatomic, assign) float fLevel; 26 | ///旋转角度 27 | @property (nonatomic, assign) float fRotation; 28 | ///俯视角度:[-45~0] 29 | @property (nonatomic, assign) float fOverlooking; 30 | ///屏幕中心点坐标:在屏幕内,超过无效 31 | @property (nonatomic) CGPoint targetScreenPt; 32 | ///地理中心点坐标:经纬度 33 | @property (nonatomic) CLLocationCoordinate2D targetGeoPt; 34 | 35 | @end 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKMultiPoint.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKMultiPoint.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | #import "BMKShape.h" 11 | #import "BMKTypes.h" 12 | 13 | /// 该类定义多个点,是个由多个点组成的虚基类, 不能直接实例化对象, 要使用其子类BMKPolyline,BMKPolygon来实例化 14 | @interface BMKMultiPoint : BMKShape { 15 | @package 16 | BMKMapPoint *_points; 17 | NSUInteger _pointCount; 18 | 19 | BMKMapRect _boundingRect; 20 | } 21 | 22 | /// 坐标点数组 23 | @property (nonatomic, readonly) BMKMapPoint *points; 24 | 25 | /// 坐标点的个数 26 | @property (nonatomic, readonly) NSUInteger pointCount; 27 | 28 | /** 29 | *将内部的直角坐标数据转换为经纬度坐标点数据,并拷贝到指定的数组中 30 | *@param coords 经纬度坐标数组,转换后的坐标将存储到该数组中,该数组长度必须大于等于要拷贝的坐标点的个数(range.length) 31 | *@param range 指定要拷贝的数据段 32 | */ 33 | - (void)getCoordinates:(CLLocationCoordinate2D *)coords range:(NSRange)range; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKNavigation.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKNavigation.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | #import 9 | #import"BMKTypes.h" 10 | //定义调起导航的两种类型 11 | typedef enum 12 | { 13 | BMK_NAVI_TYPE_NATIVE = 0,//客户端导航 14 | BMK_NAVI_TYPE_WEB,//web导航 15 | } BMK_NAVI_TYPE; 16 | 17 | ///此类管理调起导航时传入的参数 18 | @interface BMKNaviPara : NSObject 19 | { 20 | BMKPlanNode* _startPoint; 21 | BMKPlanNode* _endPoint; 22 | BMK_NAVI_TYPE _naviType; 23 | NSString* _appScheme; 24 | NSString* _appName; 25 | } 26 | ///起点 27 | @property (nonatomic, strong) BMKPlanNode* startPoint; 28 | ///终点 29 | @property (nonatomic, strong) BMKPlanNode* endPoint; 30 | ///导航类型 31 | @property (nonatomic, assign) BMK_NAVI_TYPE naviType; 32 | ///应用返回scheme 33 | @property (nonatomic, strong) NSString* appScheme; 34 | ///应用名称 35 | @property (nonatomic, strong) NSString* appName; 36 | 37 | 38 | @end 39 | 40 | ///主引擎类 41 | @interface BMKNavigation : NSObject 42 | 43 | /** 44 | *启动导航 45 | *@param para 调起导航时传入得参数 46 | */ 47 | + (void)openBaiduMapNavigation:(BMKNaviPara*)para; 48 | 49 | 50 | @end 51 | 52 | 53 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKOfflineMap.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKOfflineMap.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | #import "BMKOfflineMapType.h" 11 | 12 | 13 | @protocol BMKOfflineMapDelegate; 14 | 15 | ///离线地图事件类型 16 | enum { 17 | TYPE_OFFLINE_UPDATE = 0, ///<下载或更新 18 | TYPE_OFFLINE_ZIPCNT = 1, ///<检测到的压缩包个数 19 | TYPE_OFFLINE_UNZIP = 2, ///<当前解压的离线包 20 | TYPE_OFFLINE_ERRZIP = 3, ///<错误的离线包 21 | TYPE_OFFLINE_NEWVER = 4, ///<有新版本 22 | TYPE_OFFLINE_UNZIPFINISH = 5, ///<扫描完毕 23 | TYPE_OFFLINE_ADD = 6 ///<新增离线包 24 | }; 25 | 26 | ///离线地图服务 27 | @interface BMKOfflineMap : NSObject 28 | 29 | @property (nonatomic, weak) id delegate; 30 | 31 | 32 | 33 | /** 34 | *扫描离线地图压缩包,异步函数 35 | *@return 成功返回YES,否则返回NO 36 | */ 37 | - (BOOL)scan:(BOOL)deleteFailed; 38 | 39 | /** 40 | *启动下载指定城市id的离线地图 41 | *@param cityID 指定的城市id 42 | *@return 成功返回YES,否则返回NO 43 | */ 44 | - (BOOL)start:(int)cityID; 45 | 46 | /** 47 | *启动更新指定城市id的离线地图 48 | *@param cityID 指定的城市id 49 | *@return 成功返回YES,否则返回NO 50 | */ 51 | - (BOOL)update:(int)cityID; 52 | 53 | /** 54 | *暂停下载指定城市id的离线地图 55 | *@param cityID 指定的城市id 56 | *@return 成功返回YES,否则返回NO 57 | */ 58 | - (BOOL)pause:(int)cityID; 59 | 60 | /** 61 | *删除下载指定城市id的离线地图 62 | *@param cityID 指定的城市id 63 | *@return 成功返回YES,否则返回NO 64 | */ 65 | - (BOOL)remove:(int)cityID; 66 | 67 | /** 68 | *返回热门城市列表 69 | *@return 热门城市列表,用户需要显示释放该数组,数组元素为BMKOLSearchRecord 70 | */ 71 | - (NSArray*)getHotCityList; 72 | 73 | /** 74 | *返回所有支持离线地图的城市列表 75 | *@return 支持离线地图的城市列表,用户需要显示释放该数组,数组元素为BMKOLSearchRecord 76 | */ 77 | - (NSArray*)getOfflineCityList; 78 | 79 | /** 80 | *根据城市名搜索该城市离线地图记录 81 | *@param cityName 城市名 82 | *@return 该城市离线地图记录,用户需要显示释放该数组,数组元素为BMKOLSearchRecord 83 | */ 84 | - (NSArray*)searchCity:(NSString*)cityName; 85 | 86 | /** 87 | *返回各城市离线地图更新信息 88 | *@return 各城市离线地图更新信息,用户需要显示释放该数组,数组元素为BMKOLUpdateElement 89 | */ 90 | - (NSArray*)getAllUpdateInfo; 91 | 92 | /** 93 | *返回指定城市id离线地图更新信息 94 | *@param cityID 指定的城市id 95 | *@return 指定城市id离线地图更新信息,用户需要显示释放该数据 96 | */ 97 | - (BMKOLUpdateElement*)getUpdateInfo:(int)cityID; 98 | 99 | @end 100 | 101 | 102 | ///离线地图delegate,用于获取通知 103 | @protocol BMKOfflineMapDelegate 104 | /** 105 | *返回通知结果 106 | *@param type 事件类型: TYPE_OFFLINE_UPDATE,TYPE_OFFLINE_ZIPCNT,TYPE_OFFLINE_UNZIP, TYPE_OFFLINE_ERRZIP, TYPE_VER_UPDATE, TYPE_OFFLINE_UNZIPFINISH, TYPE_OFFLINE_ADD 107 | *@param state 事件状态,当type为TYPE_OFFLINE_UPDATE时,表示正在下载或更新城市id为state的离线包,当type为TYPE_OFFLINE_ZIPCNT时,表示检测到state个离线压缩包,当type为TYPE_OFFLINE_ADD时,表示新安装的离线地图数目,当type为TYPE_OFFLINE_UNZIP时,表示正在解压第state个离线包,当type为TYPE_OFFLINE_ERRZIP时,表示有state个错误包,当type为TYPE_VER_UPDATE时,表示id为state的城市离线包有更新,当type为TYPE_OFFLINE_UNZIPFINISH时,表示扫瞄完成,成功导入state个离线包 108 | */ 109 | - (void)onGetOfflineMapState:(int)type withState:(int)state; 110 | 111 | @end 112 | 113 | 114 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKOfflineMapType.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKOffineMapType.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | #import 11 | 12 | ///离线地图搜索城市记录结构 13 | @interface BMKOLSearchRecord : NSObject 14 | { 15 | NSString* _cityName; 16 | int _size; 17 | int _cityID; 18 | int _cityType; 19 | NSArray* _childCities; 20 | } 21 | ///城市名称 22 | @property (nonatomic, strong) NSString* cityName; 23 | ///数据包总大小 24 | @property (nonatomic) int size; 25 | ///城市ID 26 | @property (nonatomic) int cityID; 27 | ///城市类型 0:全国;1:省份;2:城市;如果是省份,可以通过childCities得到子城市列表 28 | @property (nonatomic) int cityType; 29 | ///子城市列表 30 | @property (nonatomic, strong) NSArray* childCities; 31 | 32 | 33 | @end 34 | 35 | 36 | ///离线地图更新信息 37 | @interface BMKOLUpdateElement : NSObject 38 | { 39 | NSString* _cityName; 40 | int _cityID; 41 | int _size; 42 | int _serversize; 43 | BOOL _update; 44 | int _ratio; 45 | int _status; 46 | CLLocationCoordinate2D _pt; 47 | } 48 | ///城市名称 49 | @property (nonatomic, strong) NSString* cityName; 50 | ///城市ID 51 | @property (nonatomic) int cityID; 52 | ///已下载数据大小,单位:字节 53 | @property (nonatomic) int size; 54 | ///服务端数据大小,当update为YES时有效,单位:字节 55 | @property (nonatomic) int serversize; 56 | ///下载比率,100为下载完成 57 | @property (nonatomic) int ratio; 58 | ///下载状态, -1:未定义 1:正在下载 2:等待下载 3:已暂停 4:完成 5:校验失败 6:网络异常 7:读写异常 8:Wifi网络异常 9:未完成的离线包有更新包 10:已完成的离线包有更新包 11:没有完全下载完成的省份 12:该省份的所有城市都已经下载完成 13:该省份的部分城市需要更新 59 | @property (nonatomic) int status; 60 | ///更新状态 61 | @property (nonatomic) BOOL update; 62 | ///城市中心点 63 | @property (nonatomic) CLLocationCoordinate2D pt; 64 | 65 | @end 66 | 67 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKOverlay.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKOverlay.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import "BMKAnnotation.h" 10 | #import "BMKTypes.h" 11 | 12 | /// 该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类 13 | @protocol BMKOverlay 14 | @required 15 | 16 | /// 返回区域中心坐标. 17 | @property (nonatomic, readonly) CLLocationCoordinate2D coordinate; 18 | 19 | /// 返回区域外接矩形 20 | @property (nonatomic, readonly) BMKMapRect boundingMapRect; 21 | 22 | @optional 23 | /** 24 | *判断指定的矩形是否与本Overlay相交,用于更精确的控制overlay view的显示. 25 | *默认使用BMKMapRectIntersectsRect([overlay boundingRect], mapRect)代替. 26 | *@param mapRect 指定的BMKMapRect 27 | *@return 如果相交返回YES,否则返回NO 28 | */ 29 | - (BOOL)intersectsMapRect:(BMKMapRect)mapRect; 30 | 31 | @end 32 | 33 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKOverlayGLBasicView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKOverlayGLBasicView.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | #import "BMKOverlayView.h" 11 | 12 | /// 该类定义了一个用opengl绘制的OverlayView的基类,如果需要用gdi进行绘制请继承于BMKOverlayPathView类 13 | @interface BMKOverlayGLBasicView : BMKOverlayView { 14 | @package 15 | UIColor *_fillColor; 16 | UIColor *_strokeColor; 17 | CGFloat _lineWidth; 18 | CGPathRef _path; 19 | } 20 | 21 | /// 填充颜色 22 | @property (strong) UIColor *fillColor; 23 | /// 画笔颜色 24 | @property (strong) UIColor *strokeColor; 25 | /// 画笔宽度,默认为0 26 | @property CGFloat lineWidth; 27 | /// path对象 28 | @property CGPathRef path; 29 | /// 是否为虚线样式 30 | @property BOOL lineDash; 31 | 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKOverlayPathView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKOverlayPathView.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | #import "BMKOverlayView.h" 11 | 12 | /// 该类定义了一个基本的OverlayView,并且在BMapKit中预置了几个经常使用的OverlayView 13 | @interface BMKOverlayPathView : BMKOverlayView { 14 | @package 15 | UIColor *_fillColor; 16 | UIColor *_strokeColor; 17 | 18 | CGFloat _lineWidth; 19 | CGLineJoin _lineJoin; 20 | CGLineCap _lineCap; 21 | CGFloat _miterLimit; 22 | CGFloat _lineDashPhase; 23 | NSArray *_lineDashPattern; 24 | 25 | CGPathRef _path; 26 | } 27 | 28 | /// 填充颜色 29 | @property (strong) UIColor *fillColor; 30 | /// 画笔颜色 31 | @property (strong) UIColor *strokeColor; 32 | 33 | /// 画笔宽度,默认为0 34 | @property CGFloat lineWidth; 35 | /// LineJoin,默认为kCGLineJoinRound 36 | @property CGLineJoin lineJoin; 37 | /// LineCap,默认为kCGLineCapRound 38 | @property CGLineCap lineCap; 39 | /// miterLimit,在样式为kCGLineJoinMiter时有效,默认为10 40 | @property CGFloat miterLimit; 41 | /// lineDashPhase, 默认为0 42 | @property CGFloat lineDashPhase; 43 | /// lineDashPattern,一个NSNumbers的数组,默认为nil 44 | @property (copy) NSArray *lineDashPattern; 45 | 46 | /** 47 | *生成要绘制的path,子类需要重写此函数,并且对path属性赋值:self.path = newPath; 48 | */ 49 | - (void)createPath; 50 | /// path对象 51 | @property CGPathRef path; 52 | 53 | /** 54 | *刷新path,调用该函数将会使已经缓存的path失效,将会重新调用createPath来生成新的path对象 55 | */ 56 | - (void)invalidatePath; 57 | 58 | 59 | /** 60 | *应用画笔属性 61 | *@param context CGContext对象 62 | *@param zoomScale 当前的zoomScale 63 | */ 64 | - (void)applyStrokePropertiesToContext:(CGContextRef)context 65 | atZoomScale:(BMKZoomScale)zoomScale; 66 | 67 | /** 68 | *应用画刷属性 69 | *@param context CGContext对象 70 | *@param zoomScale 当前的zoomScale 71 | */ 72 | - (void)applyFillPropertiesToContext:(CGContextRef)context 73 | atZoomScale:(BMKZoomScale)zoomScale; 74 | /** 75 | *绘制path 76 | *@param path 要绘制的CGPath 77 | *@param context CGContext对象 78 | */ 79 | - (void)strokePath:(CGPathRef)path inContext:(CGContextRef)context; 80 | 81 | /** 82 | *填充path 83 | *@param path 要绘制的CGPath 84 | *@param context CGContext对象 85 | */ 86 | - (void)fillPath:(CGPathRef)path inContext:(CGContextRef)context; 87 | 88 | @end 89 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKOverlayView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKOverlayView.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | #import 9 | #import "BMKOverlay.h" 10 | 11 | /// 该类是地图覆盖物View的基类,提供绘制overlay的接口但本身并无实现,所有地图覆盖物View需要继承自此类 12 | @interface BMKOverlayView : UIView 13 | { 14 | @package 15 | 16 | 17 | id _overlay; 18 | BMKMapRect _boundingMapRect; 19 | CGAffineTransform _mapTransform; 20 | id _geometryDelegate; 21 | id _canDrawCache; 22 | BOOL keepScale; 23 | CFTimeInterval _lastTile; 24 | CFRunLoopTimerRef _scheduledScaleTimer; 25 | 26 | struct { 27 | unsigned int keepAlive:1; 28 | unsigned int levelCrossFade:1; 29 | unsigned int drawingDisabled:1; 30 | unsigned int usesTiledLayer:1; 31 | } _flags; 32 | //@private 33 | // int geometrylayerID; 34 | } 35 | /// 设置该overlay的GeometryDelegate 36 | - (void)setGeometryDelegate:(id)delegate; 37 | 38 | /** 39 | *初始化并返回一个overlay view 40 | *@param overlay 关联的overlay对象 41 | *@return 初始化成功则返回overlay view,否则返回nil 42 | */ 43 | - (id)initWithOverlay:(id )overlay; 44 | 45 | ///关联的overlay对象 46 | @property (nonatomic, readonly) id overlay; 47 | 48 | /** 49 | *将直角坐标转为overlay view坐标 50 | *@param mapPoint 直角坐标 51 | *@return 对应的view坐标 52 | */ 53 | - (CGPoint)pointForMapPoint:(BMKMapPoint)mapPoint; 54 | 55 | /** 56 | *将overlay view坐标转为直角坐标 57 | *@param point view坐标 58 | *@return 对应的直角坐标 59 | */ 60 | - (BMKMapPoint)mapPointForPoint:(CGPoint)point; 61 | 62 | /** 63 | *将二维地图投影矩形转为overlay view矩形 64 | *@param mapRect 二维地图投影矩形 65 | *@return 对应的view矩形 66 | */ 67 | - (CGRect)rectForMapRect:(BMKMapRect)mapRect; 68 | 69 | /** 70 | *将overlay view区域转为二维地图投影区域 71 | *@param rect 指定的view矩形 72 | *@return 对应的二维地图投影矩形 73 | */ 74 | - (BMKMapRect)mapRectForRect:(CGRect)rect; 75 | 76 | /** 77 | *判断ovlerlay view是否准备绘制内容 78 | *默认返回YES,如果用户设为NO,当需要绘制内容时要显示调用setNeedsDisplayInMapRect:zoomScale:方法 79 | *@param mapRect 需要更新的地图矩形区域 80 | *@param zoomScale 当前的缩放因子 81 | *@return 如果view准备好绘制内容,返回YES,否则返回NO 82 | */ 83 | - (BOOL)canDrawMapRect:(BMKMapRect)mapRect zoomScale:(BMKZoomScale)zoomScale; 84 | 85 | /** 86 | *绘制overlay view内容 87 | *该方法默认不做任何事,子类需要重载该方法来绘制view的内容 88 | *@param mapRect 需要更新的地图矩形区域 89 | *@param zoomScale 当前的缩放因子 90 | *@param context 使用的graphics context 91 | */ 92 | - (void)drawMapRect:(BMKMapRect)mapRect zoomScale:(BMKZoomScale)zoomScale inContext:(CGContextRef)context; 93 | 94 | /** 95 | *使view在给定矩形的区域无效,系统将重绘该区域 96 | *@param mapRect 需要更新的区域 97 | */ 98 | - (void)setNeedsDisplayInMapRect:(BMKMapRect)mapRect; 99 | 100 | /** 101 | *使用OpenGLES 绘制线 102 | @param points 直角坐标点 103 | @param pointCount 点个数 104 | @param strokeColor 线颜色 105 | @param lineWidth OpenGLES支持线宽尺寸 106 | @param looped 是否闭合, 如polyline会设置NO, polygon会设置YES. 107 | */ 108 | - (void)renderLinesWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount strokeColor:(UIColor *)strokeColor lineWidth:(CGFloat)lineWidth looped:(BOOL)looped; 109 | /** 110 | *使用OpenGLES 绘制线 111 | @param points 直角坐标点 112 | @param pointCount 点个数 113 | @param strokeColor 线颜色 114 | @param lineWidth OpenGLES支持线宽尺寸 115 | @param looped 是否闭合, 如polyline会设置NO, polygon会设置YES. 116 | @param lineDash 是否虚线样式 117 | */ 118 | - (void)renderLinesWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount strokeColor:(UIColor *)strokeColor lineWidth:(CGFloat)lineWidth looped:(BOOL)looped lineDash:(BOOL)lineDash; 119 | 120 | /** 121 | *使用OpenGLES 按指定纹理绘制线 122 | @param points 直角坐标点 123 | @param pointCount 点个数 124 | @param lineWidth OpenGLES支持线宽尺寸 125 | @param textureID 纹理ID,使用- (void)loadStrokeTextureImage:(UIImage *)textureImage;加载 126 | @param looped 是否闭合, 如polyline会设置NO, polygon会设置YES. 127 | */ 128 | - (void)renderTexturedLinesWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount lineWidth:(CGFloat)lineWidth textureID:(GLuint)textureID looped:(BOOL)looped; 129 | /** 130 | *使用OpenGLES 绘制区域 131 | @param points 直角坐标点 132 | @param pointCount 点个数 133 | @param fillColor 填充颜色 134 | @param usingTriangleFan YES对应GL_TRIANGLE_FAN, NO对应GL_TRIANGLES 135 | */ 136 | - (void)renderRegionWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount fillColor:(UIColor *)fillColor usingTriangleFan:(BOOL)usingTriangleFan; 137 | /** 138 | *使用OpenGLES 绘制区域(支持凹多边形) 139 | @param points 直角坐标点 140 | @param pointCount 点个数 141 | @param fillColor 填充颜色 142 | @param usingTriangleFan YES对应GL_TRIANGLE_FAN, NO对应GL_TRIANGLES 143 | */ 144 | - (void)renderATRegionWithPoint:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount fillColor:(UIColor *)fillColor usingTriangleFan:(BOOL)usingTriangleFan; 145 | 146 | /** 147 | *绘制函数(子类需要重载来实现) 148 | */ 149 | - (void)glRender; 150 | 151 | ///关联的纹理对象ID 152 | @property (nonatomic, readonly) GLuint strokeTextureID; 153 | 154 | /** 155 | *加载纹理图片 156 | @param textureImage 图片对象,opengl要求图片宽高必须是2的n次幂,如果图片对象为nil,则清空原有纹理 157 | @return openGL纹理ID, 若纹理加载失败返回0 158 | */ 159 | - (GLuint)loadStrokeTextureImage:(UIImage *)textureImage; 160 | 161 | @end 162 | 163 | 164 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKPinAnnotationView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKPinAnnotationView.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import "BMKAnnotationView.h" 10 | enum { 11 | BMKPinAnnotationColorRed = 0, 12 | BMKPinAnnotationColorGreen, 13 | BMKPinAnnotationColorPurple 14 | }; 15 | typedef NSUInteger BMKPinAnnotationColor; 16 | 17 | ///提供类似大头针效果的annotation view 18 | @interface BMKPinAnnotationView : BMKAnnotationView 19 | { 20 | @private 21 | BMKPinAnnotationColor _pinColor; 22 | BOOL _animatesDrop; 23 | } 24 | ///大头针的颜色,有BMKPinAnnotationColorRed, BMKPinAnnotationColorGreen, BMKPinAnnotationColorPurple三种 25 | @property (nonatomic) BMKPinAnnotationColor pinColor; 26 | ///动画效果 27 | @property (nonatomic) BOOL animatesDrop; 28 | 29 | 30 | @end 31 | 32 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKPoiSearch.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKPoiSearch.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | #import "BMKPoiSearchType.h" 11 | #import "BMKTypes.h" 12 | #import "BMKPoiSearchOption.h" 13 | 14 | @protocol BMKPoiSearchDelegate; 15 | ///搜索服务 16 | @interface BMKPoiSearch : NSObject 17 | /// 检索模块的Delegate,此处记得不用的时候需要置nil,否则影响内存的释放 18 | @property (nonatomic, weak) id delegate; 19 | 20 | 21 | /** 22 | *城市POI检索 23 | *异步函数,返回结果在BMKPoiSearchDelegate的onGetPoiResult通知 24 | *@param option 城市内搜索的搜索参数类(BMKCitySearchOption) 25 | *@return 成功返回YES,否则返回NO 26 | */ 27 | - (BOOL)poiSearchInCity:(BMKCitySearchOption*)option; 28 | 29 | /** 30 | *根据范围和检索词发起范围检索 31 | *异步函数,返回结果在BMKPoiSearchDelegate的onGetPoiResult通知 32 | *@param option 范围搜索的搜索参数类(BMKBoundSearchOption) 33 | *@return 成功返回YES,否则返回NO 34 | */ 35 | - (BOOL)poiSearchInbounds:(BMKBoundSearchOption*)option; 36 | /** 37 | *根据中心点、半径和检索词发起周边检索 38 | *异步函数,返回结果在BMKPoiSearchDelegate的onGetPoiResult通知 39 | *@param option 周边搜索的搜索参数类(BMKNearbySearchOption) 40 | *@param index 页码,如果是第一次发起搜索,填0,根据返回的结果可以去获取第n页的结果,页码从0开始 41 | *@return 成功返回YES,否则返回NO 42 | */ 43 | - (BOOL)poiSearchNearBy:(BMKNearbySearchOption*)option; 44 | /** 45 | *根据poi uid 发起poi详情检索 46 | *异步函数,返回结果在BMKPoiSearchDelegate的onGetPoiDetailResult通知 47 | *@param option poi详情检索参数类(BMKPoiDetailSearchOption) 48 | *@return 成功返回YES,否则返回NO 49 | */ 50 | - (BOOL)poiDetailSearch:(BMKPoiDetailSearchOption*)option; 51 | @end 52 | 53 | ///搜索delegate,用于获取搜索结果 54 | @protocol BMKPoiSearchDelegate 55 | @optional 56 | /** 57 | *返回POI搜索结果 58 | *@param searcher 搜索对象 59 | *@param poiResult 搜索结果列表 60 | *@param errorCode 错误号,@see BMKSearchErrorCode 61 | */ 62 | - (void)onGetPoiResult:(BMKPoiSearch*)searcher result:(BMKPoiResult*)poiResult errorCode:(BMKSearchErrorCode)errorCode; 63 | 64 | /** 65 | *返回POI详情搜索结果 66 | *@param searcher 搜索对象 67 | *@param poiDetailResult 详情搜索结果 68 | *@param errorCode 错误号,@see BMKSearchErrorCode 69 | */ 70 | - (void)onGetPoiDetailResult:(BMKPoiSearch*)searcher result:(BMKPoiDetailResult*)poiDetailResult errorCode:(BMKSearchErrorCode)errorCode; 71 | @end 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKPoiSearchOption.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKPoiSearchOption.h 3 | * BMapKit 4 | * 5 | * Copyright 2013 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | #import 9 | #import "BMKTypes.h" 10 | 11 | typedef enum{ 12 | BMK_POI_SORT_BY_COMPOSITE = 0,//综合排序 13 | BMK_POI_SORT_BY_DISTANCE,//距离由近到远排序 14 | }BMKPoiSortType; 15 | 16 | /// 检索基础信息类,所有类型Poi检索的基类 17 | @interface BMKBasePoiSearchOption : NSObject 18 | { 19 | NSString *_keyword; 20 | int _pageIndex; 21 | int _pageCapacity; 22 | } 23 | ///搜索关键字 24 | @property (nonatomic, strong) NSString *keyword; 25 | ///分页索引,可选,默认为0 26 | @property (nonatomic, assign) int pageIndex; 27 | ///分页数量,可选,默认为10,最多为50 28 | @property (nonatomic, assign) int pageCapacity; 29 | 30 | @end 31 | 32 | ///本地云检索参数信息类 33 | @interface BMKCitySearchOption : BMKBasePoiSearchOption { 34 | NSString *_city; 35 | } 36 | ///区域名称(市或区的名字,如北京市,海淀区),必选, 必须最长25个字符 37 | @property (nonatomic, strong) NSString *city; 38 | @end 39 | 40 | ///周边云检索参数信息类 41 | @interface BMKNearbySearchOption : BMKBasePoiSearchOption { 42 | CLLocationCoordinate2D _location; 43 | int _radius; 44 | } 45 | ///检索的中心点,经纬度 46 | @property (nonatomic, assign) CLLocationCoordinate2D location; 47 | ///周边检索半径 48 | @property (nonatomic, assign) int radius; 49 | //搜索结果排序规则,可选,默认BMK_POI_SORT_BY_COMPOSITE 50 | @property (nonatomic, assign) BMKPoiSortType sortType; 51 | 52 | @end 53 | 54 | ///矩形云检索参数信息类 55 | @interface BMKBoundSearchOption : BMKBasePoiSearchOption { 56 | CLLocationCoordinate2D _leftBottom; 57 | CLLocationCoordinate2D _rightTop; 58 | 59 | } 60 | ///矩形区域,左下角和右上角的经纬度坐标点。 61 | @property (nonatomic, assign) CLLocationCoordinate2D leftBottom; 62 | @property (nonatomic, assign) CLLocationCoordinate2D rightTop; 63 | @end 64 | 65 | ///poi详情检索信息类 66 | @interface BMKPoiDetailSearchOption : NSObject { 67 | NSString* _poiUid; 68 | } 69 | ///poi的uid,从poi检索返回的BMKPoiResult结构中获取 70 | @property (nonatomic, strong) NSString* poiUid; 71 | 72 | @end 73 | 74 | 75 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKPoiSearchType.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKPoiSearchType.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | #import 11 | enum { 12 | BMKInvalidCoordinate = -1, ///<无效坐标 13 | BMKCarTrafficFIRST = 60, ///<驾乘检索策略常量:躲避拥堵,若无实时路况,默认按照时间优先策略 14 | BMKCarTimeFirst = 0, ///<驾乘检索策略常量:时间优先 15 | BMKCarDisFirst, ///<驾乘检索策略常量:最短距离 16 | BMKCarFeeFirst, ///<驾乘检索策略常量:较少费用 17 | BMKBusTimeFirst, ///<公交检索策略常量:时间优先 18 | BMKBusTransferFirst, ///<公交检索策略常量:最少换乘 19 | BMKBusWalkFirst, ///<公交检索策略常量:最小步行距离 20 | BMKBusNoSubway, ///<公交检索策略常量:不含地铁 21 | BMKTypeCityList = 7, /// 11 | #import "BMKShape.h" 12 | #import 13 | 14 | ///表示一个点的annotation 15 | @interface BMKPointAnnotation : BMKShape { 16 | @package 17 | CLLocationCoordinate2D _coordinate; 18 | } 19 | ///该点的坐标 20 | @property (nonatomic, assign) CLLocationCoordinate2D coordinate; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKPolygon.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKPolygon.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | #import 9 | 10 | #import "BMKMultiPoint.h" 11 | #import "BMKOverlay.h" 12 | 13 | /// 此类用于定义一个多边形区域 14 | @interface BMKPolygon : BMKMultiPoint 15 | /** 16 | *根据多个点生成多边形 17 | *@param points 直角坐标点数组,这些点将被拷贝到生成的多边形对象中 18 | *@param count 点的个数 19 | *@return 新生成的多边形对象 20 | */ 21 | + (BMKPolygon *)polygonWithPoints:(BMKMapPoint *)points count:(NSUInteger)count; 22 | 23 | 24 | 25 | /** 26 | *根据多个点生成多边形 27 | *@param coords 经纬度坐标点数组,这些点将被拷贝到生成的多边形对象中 28 | *@param count 点的个数 29 | *@return 新生成的多边形对象 30 | */ 31 | + (BMKPolygon *)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count; 32 | 33 | 34 | 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKPolygonView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKPolygonView.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | 11 | #import "BMKPolygon.h" 12 | #import "BMKOverlayGLBasicView.h" 13 | 14 | /// 此类用于定义一个多边形View 15 | @interface BMKPolygonView : BMKOverlayGLBasicView 16 | 17 | /** 18 | *根据指定的多边形生成一个多边形View 19 | *@param polygon 指定的多边形数据对象 20 | *@return 新生成的多边形View 21 | */ 22 | - (id)initWithPolygon:(BMKPolygon *)polygon; 23 | 24 | /// 该View对应的多边形数据 25 | @property (nonatomic, readonly) BMKPolygon *polygon; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKPolyline.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKPolyline.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import "BMKMultiPoint.h" 10 | #import "BMKOverlay.h" 11 | 12 | /// 此类用于定义一段折线 13 | @interface BMKPolyline : BMKMultiPoint 14 | 15 | /** 16 | *根据指定坐标点生成一段折线 17 | *@param points 指定的直角坐标点数组 18 | *@param count 坐标点的个数 19 | *@return 新生成的折线对象 20 | */ 21 | + (BMKPolyline *)polylineWithPoints:(BMKMapPoint *)points count:(NSUInteger)count; 22 | 23 | /** 24 | *根据指定坐标点生成一段折线 25 | *@param coords 指定的经纬度坐标点数组 26 | *@param count 坐标点的个数 27 | *@return 新生成的折线对象 28 | */ 29 | + (BMKPolyline *)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKPolylineView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKPolylineView.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | 11 | #import "BMKPolyline.h" 12 | #import "BMKOverlayGLBasicView.h" 13 | 14 | /// 此类用于定义一个折线View 15 | @interface BMKPolylineView : BMKOverlayGLBasicView 16 | 17 | /** 18 | *根据指定的折线生成一个折线View 19 | *@param polyline 指定的折线数据对象 20 | *@return 新生成的折线View 21 | */ 22 | - (id)initWithPolyline:(BMKPolyline *)polyline; 23 | 24 | /// 该View对应的折线数据对象 25 | @property (nonatomic, readonly) BMKPolyline *polyline; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKRouteSearch.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKRouteSearch.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | #import "BMKRouteSearchOption.h" 9 | 10 | @protocol BMKRouteSearchDelegate; 11 | ///route搜索服务 12 | @interface BMKRouteSearch : NSObject 13 | /// 检索模块的Delegate,此处记得不用的时候需要置nil,否则影响内存的释放 14 | @property (nonatomic, weak) id delegate; 15 | 16 | /** 17 | *公交路线检索 18 | *异步函数,返回结果在BMKRouteSearchDelegate的onGetTransitRouteResult通知 19 | *@param transitRoutePlanOption 公交换乘信息类 20 | *@return 成功返回YES,否则返回NO 21 | */ 22 | - (BOOL)transitSearch:(BMKTransitRoutePlanOption*)transitRoutePlanOption; 23 | 24 | /** 25 | *驾乘路线检索 26 | *异步函数,返回结果在BMKRouteSearchDelegate的onGetDrivingRouteResult通知 27 | *@param drivingRoutePlanOption 驾车检索信息类 28 | *@return 成功返回YES,否则返回NO 29 | */ 30 | - (BOOL)drivingSearch:(BMKDrivingRoutePlanOption*)drivingRoutePlanOption; 31 | 32 | /** 33 | *步行路线检索 34 | *异步函数,返回结果在BMKRouteSearchDelegate的onGetWalkingRouteResult通知 35 | *@param walkingRoutePlanOption 步行检索信息类 36 | *@return 成功返回YES,否则返回NO 37 | */ 38 | - (BOOL)walkingSearch:(BMKWalkingRoutePlanOption*)walkingRoutePlanOption; 39 | 40 | 41 | @end 42 | 43 | ///路线搜索delegate,用于获取路线搜索结果 44 | @protocol BMKRouteSearchDelegate 45 | @optional 46 | /** 47 | *返回公交搜索结果 48 | *@param searcher 搜索对象 49 | *@param result 搜索结果,类型为BMKTransitRouteResult 50 | *@param error 错误号,@see BMKSearchErrorCode 51 | */ 52 | - (void)onGetTransitRouteResult:(BMKRouteSearch*)searcher result:(BMKTransitRouteResult*)result errorCode:(BMKSearchErrorCode)error; 53 | /** 54 | *返回驾乘搜索结果 55 | *@param searcher 搜索对象 56 | *@param result 搜索结果,类型为BMKDrivingRouteResult 57 | *@param error 错误号,@see BMKSearchErrorCode 58 | */ 59 | - (void)onGetDrivingRouteResult:(BMKRouteSearch*)searcher result:(BMKDrivingRouteResult*)result errorCode:(BMKSearchErrorCode)error; 60 | 61 | /** 62 | *返回步行搜索结果 63 | *@param searcher 搜索对象 64 | *@param result 搜索结果,类型为BMKWalkingRouteResult 65 | *@param error 错误号,@see BMKSearchErrorCode 66 | */ 67 | - (void)onGetWalkingRouteResult:(BMKRouteSearch*)searcher result:(BMKWalkingRouteResult*)result errorCode:(BMKSearchErrorCode)error; 68 | 69 | 70 | 71 | @end 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKRouteSearchOption.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKPoiSearchOption.h 3 | * BMapKit 4 | * 5 | * Copyright 2013 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import "BMKTypes.h" 10 | #import "BMKRouteSearchType.h" 11 | /// 路线查询基础信息类 12 | @interface BMKBaseRoutePlanOption : NSObject 13 | { 14 | BMKPlanNode *_from; 15 | BMKPlanNode *_to; 16 | } 17 | ///检索的起点,可通过关键字、坐标两种方式指定 18 | @property (nonatomic, strong) BMKPlanNode *from; 19 | ///检索的终点,可通过关键字、坐标两种方式指定 20 | @property (nonatomic, strong) BMKPlanNode *to; 21 | @end 22 | /// 步行查询基础信息类 23 | @interface BMKWalkingRoutePlanOption : BMKBaseRoutePlanOption 24 | { 25 | 26 | } 27 | @end 28 | /// 驾车查询基础信息类 29 | @interface BMKDrivingRoutePlanOption : BMKBaseRoutePlanOption 30 | { 31 | NSArray* _wayPointsArray; 32 | BMKDrivingPolicy _drivingPolicy; 33 | } 34 | @property (nonatomic, strong) NSArray *wayPointsArray; 35 | ///驾车检索策略,默认使用BMK_DRIVING_TIME_FIRST 36 | @property (nonatomic) BMKDrivingPolicy drivingPolicy; 37 | 38 | ///驾车检索获取路线每一个step的路况,默认使用BMK_DRIVING_REQUEST_TRAFFICE_TYPE_NONE 39 | @property (nonatomic) BMKDrivingRequestTrafficType drivingRequestTrafficType; 40 | 41 | 42 | @end 43 | /// 公交查询基础信息类 44 | @interface BMKTransitRoutePlanOption : BMKBaseRoutePlanOption 45 | { 46 | NSString* _city; 47 | BMKTransitPolicy _transitPolicy; 48 | } 49 | ///城市名,用于在哪个城市内进行检索 50 | @property (nonatomic, strong) NSString *city; 51 | ///公交检索策略,默认使用BMK_TRANSIT_TIME_FIRST 52 | @property (nonatomic) BMKTransitPolicy transitPolicy; 53 | 54 | @end 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKSearchComponent.h: -------------------------------------------------------------------------------- 1 | // 2 | // BMKSearchComponent.h 3 | // SearchComponent 4 | // 5 | // Created by baidu on 14-3-10. 6 | // Copyright (c) 2014年 baidu. All rights reserved. 7 | // 8 | 9 | #import "BMKPoiSearchType.h" 10 | #import "BMKGeocodeType.h" 11 | #import "BMKRouteSearchType.h" 12 | #import "BMKPoiSearchOption.h" 13 | #import "BMKPoiSearch.h" 14 | #import "BMKGeocodeSearch.h" 15 | #import "BMKGeocodeSearchOption.h" 16 | #import "BMKShareURLSearch.h" 17 | #import "BMKShareUrlSearchOption.h" 18 | #import "BMKSuggestionSearch.h" 19 | #import "BMKSuggestionSearchOption.h" 20 | #import "BMKBusLineSearch.h" 21 | #import "BMKBusLineSearchOption.h" 22 | #import "BMKRouteSearch.h" 23 | #import "BMKRouteSearchOption.h" -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKShape.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKShape.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | #import"BMKAnnotation.h" 11 | 12 | /// 该类为一个抽象类,定义了基于BMKAnnotation的BMKShape类的基本属性和行为,不能直接使用,必须子类化之后才能使用 13 | @interface BMKShape : NSObject { 14 | } 15 | 16 | /// 要显示的标题 17 | @property (copy) NSString *title; 18 | /// 要显示的副标题 19 | @property (copy) NSString *subtitle; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKShareURLSearch.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKShareUrlSearch.h 3 | * BMapKit 4 | * 5 | * Copyright 2014 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import "BMKShareUrlSearchOption.h" 10 | 11 | ///分享URL结果类 12 | @interface BMKShareURLResult :NSObject 13 | { 14 | NSString * _url; 15 | } 16 | ///返回结果url 17 | @property (nonatomic,strong) NSString* url; 18 | @end 19 | 20 | 21 | @protocol BMKShareURLSearchDelegate; 22 | ///短串搜索服务 23 | @interface BMKShareURLSearch : NSObject 24 | /// 检索模块的Delegate,此处记得不用的时候需要置nil,否则影响内存的释放 25 | @property (nonatomic, weak) id delegate; 26 | 27 | /** 28 | *获取poi详情短串分享url 29 | *异步函数,返回结果在BMKShareUrlSearchDelegate的onGetPoiDetailShareURLResult通知 30 | *@param poiDetailShareUrlSearchOption poi详情短串分享检索信息类 31 | *@return 成功返回YES,否则返回NO 32 | */ 33 | - (BOOL)requestPoiDetailShareURL:(BMKPoiDetailShareURLOption *) poiDetailShareUrlSearchOption; 34 | 35 | /** 36 | *获取反geo短串分享url 37 | *异步函数,返回结果在BMKShareUrlSearchDelegate的onGetLocationShareURLResult通知 38 | *@param reverseGeoShareUrlSearchOption 反geo短串分享检索信息类 39 | *@return 成功返回YES,否则返回NO 40 | */ 41 | - (BOOL)requestLocationShareURL:(BMKLocationShareURLOption *)reverseGeoShareUrlSearchOption; 42 | 43 | 44 | @end 45 | 46 | ///搜索delegate,用于获取搜索结果 47 | @protocol BMKShareURLSearchDelegate 48 | @optional 49 | /** 50 | *返回poi详情分享url 51 | *@param searcher 搜索对象 52 | *@param result 返回结果 53 | *@param error 错误号,@see BMKSearchErrorCode 54 | */ 55 | - (void)onGetPoiDetailShareURLResult:(BMKShareURLSearch *)searcher result:(BMKShareURLResult *)result errorCode:(BMKSearchErrorCode)error; 56 | 57 | /** 58 | *返回位置信息分享url 59 | *@param searcher 搜索对象 60 | *@param result 返回结果 61 | *@param error 错误号,@see BMKSearchErrorCode 62 | */ 63 | - (void)onGetLocationShareURLResult:(BMKShareURLSearch *)searcher result:(BMKShareURLResult *)result errorCode:(BMKSearchErrorCode)error; 64 | 65 | @end 66 | 67 | 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKShareUrlSearchOption.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKShareUrlSearchOption.h 3 | * BMapKit 4 | * 5 | * Copyright 2014 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import "BMKTypes.h" 10 | /// poi详情短串分享检索信息类 11 | @interface BMKPoiDetailShareURLOption : NSObject 12 | { 13 | NSString *_uid; 14 | } 15 | ///poi的uid 16 | @property (nonatomic, strong) NSString *uid; 17 | 18 | @end 19 | 20 | ///反geo短串分享检索信息类 21 | @interface BMKLocationShareURLOption : NSObject { 22 | NSString *_name; 23 | NSString *_snippet; 24 | CLLocationCoordinate2D _location; 25 | } 26 | ///名称 27 | @property (nonatomic, strong) NSString *name; 28 | ///通过短URL调起客户端时作为附加信息显示在名称下面 29 | @property (nonatomic, strong) NSString *snippet; 30 | ///经纬度 31 | @property (nonatomic, assign) CLLocationCoordinate2D location; 32 | @end 33 | 34 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKSuggestionSearch.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKSuggestionSearch.h 3 | * BMapKit 4 | * 5 | * Copyright 2014 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import "BMKSuggestionSearchOption.h" 10 | #import "BMKTypes.h" 11 | 12 | ///Suggestion结果类 13 | @interface BMKSuggestionResult : NSObject 14 | { 15 | NSArray* _keyList; 16 | NSArray* _cityList; 17 | NSArray* _districtList; 18 | } 19 | ///key列表,成员是NSString 20 | @property (nonatomic, strong) NSArray* keyList; 21 | ///city列表,成员是NSString 22 | @property (nonatomic, strong) NSArray* cityList; 23 | ///district列表,成员是NSString 24 | @property (nonatomic, strong) NSArray* districtList; 25 | @end 26 | 27 | @protocol BMKSuggestionSearchDelegate; 28 | ///sug搜索服务 29 | @interface BMKSuggestionSearch : NSObject 30 | /// 检索模块的Delegate,此处记得不用的时候需要置nil,否则影响内存的释放 31 | @property (nonatomic, weak) id delegate; 32 | 33 | /** 34 | *搜索建议检索 35 | *@param suggestionSearchOption sug检索信息类 36 | *异步函数,返回结果在BMKSuggestionSearchDelegate的onGetSuggestionResult通知 37 | *@return 成功返回YES,否则返回NO 38 | */ 39 | - (BOOL)suggestionSearch:(BMKSuggestionSearchOption*)suggestionSearchOption; 40 | 41 | @end 42 | 43 | ///搜索delegate,用于获取搜索结果 44 | @protocol BMKSuggestionSearchDelegate 45 | @optional 46 | /** 47 | *返回suggestion搜索结果 48 | *@param searcher 搜索对象 49 | *@param result 搜索结果 50 | *@param error 错误号,@see BMKSearchErrorCode 51 | */ 52 | - (void)onGetSuggestionResult:(BMKSuggestionSearch*)searcher result:(BMKSuggestionResult*)result errorCode:(BMKSearchErrorCode)error; 53 | 54 | 55 | @end 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKSuggestionSearchOption.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKSuggestionSearchOption.h 3 | * BMapKit 4 | * 5 | * Copyright 2014 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | /// sug检索信息类 11 | @interface BMKSuggestionSearchOption : NSObject 12 | { 13 | NSString *_keyword; 14 | NSString *_cityname; 15 | 16 | } 17 | ///搜索关键字 18 | @property (nonatomic, strong) NSString *keyword; 19 | ///城市名 20 | @property (nonatomic, strong) NSString *cityname; 21 | 22 | @end 23 | 24 | 25 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKTypes.h: -------------------------------------------------------------------------------- 1 | // 2 | // BMKType.h 3 | // MapPlatform 4 | // 5 | // Created by BaiduMapAPI on 13-3-26. 6 | // Copyright (c) 2013年 baidu. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | #import 13 | typedef enum 14 | { 15 | BMK_COORDTYPE_GPS = 0, ///GPS设备采集的原始GPS坐标 16 | BMK_COORDTYPE_COMMON, ///google地图、soso地图、aliyun地图、mapabc地图和amap地图所用坐标 17 | } BMK_COORD_TYPE; 18 | enum { 19 | BMKMapTypeStandard = 1, ///< 标准地图 20 | BMKMapTypeSatellite = 2, ///< 卫星地图 21 | }; 22 | typedef NSUInteger BMKMapType; 23 | 24 | typedef enum { 25 | BMKErrorOk = 0, ///< 正确,无错误 26 | BMKErrorConnect = 2, ///< 网络连接错误 27 | BMKErrorData = 3, ///< 数据错误 28 | BMKErrorRouteAddr = 4, ///<起点或终点选择(有歧义) 29 | BMKErrorResultNotFound = 100, ///< 搜索结果未找到 30 | BMKErrorLocationFailed = 200, ///< 定位失败 31 | BMKErrorPermissionCheckFailure = 300, ///< 百度地图API授权Key验证失败 32 | BMKErrorParse = 310 ///< 数据解析失败 33 | }BMKErrorCode; 34 | //鉴权结果状态码 35 | typedef enum { 36 | E_PERMISSIONCHECK_CONNECT_ERROR = -300,//链接服务器错误 37 | E_PERMISSIONCHECK_DATA_ERROR = -200,//服务返回数据异常 38 | E_PERMISSIONCHECK_OK = 0, // 授权验证通过 39 | E_PERMISSIONCHECK_KEY_ERROR = 101, //ak不存在 40 | E_PERMISSIONCHECK_MCODE_ERROR = 102, //mcode签名值不正确 41 | E_PERMISSIONCHECK_UID_KEY_ERROR = 200, // APP不存在,AK有误请检查再重试 42 | E_PERMISSIONCHECK_KEY_FORBIDEN= 201, // APP被用户自己禁用,请在控制台解禁 43 | /* 44 | *更多鉴权状态码请参考: 45 | *http://developer.baidu.com/map/index.php?title=lbscloud/api/appendix 46 | */ 47 | }BMKPermissionCheckResultCode; 48 | //检索结果状态码 49 | typedef enum{ 50 | BMK_SEARCH_NO_ERROR =0,///<检索结果正常返回 51 | BMK_SEARCH_AMBIGUOUS_KEYWORD,///<检索词有岐义 52 | BMK_SEARCH_AMBIGUOUS_ROURE_ADDR,///<检索地址有岐义 53 | BMK_SEARCH_NOT_SUPPORT_BUS,///<该城市不支持公交搜索 54 | BMK_SEARCH_NOT_SUPPORT_BUS_2CITY,///<不支持跨城市公交 55 | BMK_SEARCH_RESULT_NOT_FOUND,///<没有找到检索结果 56 | BMK_SEARCH_ST_EN_TOO_NEAR,///<起终点太近 57 | BMK_SEARCH_KEY_ERROR,/// 9 | #import 10 | #import "BMKBaseComponent.h" 11 | @class CLLocation; 12 | @class CLHeading; 13 | @interface BMKUserLocation : NSObject 14 | 15 | /// 位置更新状态,如果正在更新位置信息,则该值为YES 16 | @property (readonly, nonatomic, getter=isUpdating) BOOL updating; 17 | 18 | /// 位置信息,如果BMKMapView的showsUserLocation为NO,或者尚未定位成功,则该值为nil 19 | @property (readonly, nonatomic,strong) CLLocation *location; 20 | 21 | /// heading信息,如果BMKMapView的showsUserLocation为NO,或者尚未定位成功,则该值为nil 22 | @property (readonly, nonatomic, strong) CLHeading *heading; 23 | 24 | /// 定位标注点要显示的标题信息 25 | @property (strong, nonatomic) NSString *title; 26 | 27 | /// 定位标注点要显示的子标题信息. 28 | @property (strong, nonatomic) NSString *subtitle; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMKUtilsComponent.h: -------------------------------------------------------------------------------- 1 | // 2 | // BMKUtilsComponent.h 3 | // baiduMapSdk 4 | // 5 | // Created by baidu on 14-4-22. 6 | // Copyright (c) 2014年 baidu. All rights reserved. 7 | // 8 | 9 | 10 | #import "BMKGeometry.h" 11 | #import "BMKNavigation.h" 12 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Headers/BMapKit.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMapKit.h 3 | * opyright 2014 Baidu Inc. All rights reserved. 4 | */ 5 | 6 | #import "BMKBaseComponent.h" 7 | #import "BMKMapComponent.h" 8 | #import "BMKSearchComponent.h" 9 | #import "BMKCloudSearchComponent.h" 10 | #import "BMKLocationComponent.h" 11 | #import "BMKUtilsComponent.h" 12 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/files/Beijing, China.gpx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Beijing, China 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/files/DVDirectory.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/files/DVDirectory.cfg -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/files/DVDirectory_Retina.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/files/DVDirectory_Retina.cfg -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/files/DVHotcity.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/files/DVHotcity.cfg -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/files/DVHotcity_Retina.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/files/DVHotcity_Retina.cfg -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/files/DVVersion.cfg: -------------------------------------------------------------------------------- 1 | {"d":1107,"note":0,"maps":1064,"itss":1023,"doms":1056,"c":1127,"v_rsc":138,"h":1115} -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/files/DVVersion_Retina.cfg: -------------------------------------------------------------------------------- 1 | {"d":1113,"note":0,"maps":1067,"itss":1023,"doms":1059,"c":1133,"v_rsc":138,"h":1121} -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/files/ResPack.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/files/ResPack.rs -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/files/channel: -------------------------------------------------------------------------------- 1 | 1099a -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/files/mapstyle.sty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/files/mapstyle.sty -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/files/satellitestyle.sty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/files/satellitestyle.sty -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/files/trafficstyle.sty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/files/trafficstyle.sty -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/baidumap_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/baidumap_logo.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/baidumap_logo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/baidumap_logo@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/bnavi_icon_location_fixed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/bnavi_icon_location_fixed.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/bnavi_icon_location_fixed@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/bnavi_icon_location_fixed@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/direction_wheel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/direction_wheel.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/direction_wheel@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/direction_wheel@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_left.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_left@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_left@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_left_highlighted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_left_highlighted.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_left_highlighted@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_left_highlighted@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_right.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_right@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_right@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_right_highlighted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_right_highlighted.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_right_highlighted@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_right_highlighted@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_cellphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_cellphone.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_cellphone2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_cellphone2.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_cellphone2@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_cellphone2@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_cellphone@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_cellphone@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_center_point.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_center_point.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_center_point@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_center_point@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_compass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_compass.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_compass@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_compass@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_compass_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_compass_background.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_compass_background@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_compass_background@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_direction.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_direction.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_direction@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_direction@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_bus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_bus.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_bus@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_bus@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_end.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_end.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_end@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_end@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_rail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_rail.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_rail@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_rail@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_start.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_start@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_start@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_waypoint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_waypoint.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_waypoint@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_waypoint@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_left.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_left@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_left@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_left_highlighted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_left_highlighted.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_left_highlighted@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_left_highlighted@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_right.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_right@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_right@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_right_highlighted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_right_highlighted.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_right_highlighted@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_right_highlighted@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/lineDashTexture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/lineDashTexture.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_green.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_green@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_green@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_purple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_purple.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_purple@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_purple@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_red.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_red@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_red@2x.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoyangh/WeChat-Location/45654cd06033ed95ef453085de31253f1c10c074/WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/Resources/mapapi.bundle/images/test.png -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/Vendors/BaiduMapAPI.framework/readme.txt: -------------------------------------------------------------------------------- 1 | 基础地图:包括基本矢量地图、卫星图、实时路况图和各种地图覆盖物,此外还包括各种与地图相关的操作和事件监听; 2 | 检索功能:包括POI检索,公交信息查询,路线规划,地理编码/反地理编码,在线建议查询,短串分享等; 3 | LBS云检索:包括LBS云检索(周边、区域、城市内、详情); 4 | 定位功能:获取当前位置信息; 5 | 计算工具:包括测距(两点之间距离)、坐标转换、调起百度地图导航等功能; 6 | 百度地图iOS SDK自v2.3.0起,采用可定制的形式为您提供开发包,当前开发包包含如下功能: 7 | 8 | -------------------------------------------------------------------------------------- 9 | 10 | 基础地图:包括基本矢量地图、卫星图、实时路况图和各种地图覆盖物,此外还包括各种与地图相关的操作和事件监听; 11 | 检索功能:包括POI检索,Place详情检索,公交信息查询,路线规划,地理编码/反地理编码,在线建议查询,短串分享等; 12 | LBS云检索:包括LBS云检索(周边、区域、城市内、详情); 13 | 定位功能:获取当前位置信息; 14 | 计算工具:包括测距(两点之间距离)、坐标转换、调起百度地图导航等功能; 15 | 16 | 17 | -------------------------------------------------------------------------------------- 18 | 19 | 当前版本为v2.7.0,较上一个版本(v2.6.0)的更新内容如下: 20 | 21 | 22 | 自当前版本起,百度地图iOS SDK推出 .framework形式的开发包。此种类型的开发包配置简单、使用方便,欢迎开发者选用! 23 | 【 新 增 】 24 | 基础地图 25 | 1. 增加地图缩放等级到20级(10米); 26 | 2. 新增地理坐标与OpenGL坐标转换接口: 27 | BMKMapView新增接口: 28 | -(CGPoint)glPointForMapPoint:(BMKMapPoint)mapPoint;//将BMKMapPoint转换为OpenGL ES可以直接使用的坐标 29 | -(CGPoint *)glPointsForMapPoints:(BMKMapPoint *)mapPoints count:(NSUInteger)count;// 批量将BMKMapPoint转换为OpenGL ES可以直接使用的坐标 30 | 3. 开放区域截图能力: 31 | BMKMapView新增接口: 32 | -(UIImage*) takeSnapshot:(CGRect)rect;// 获得地图区域区域截图 33 | 检索功能 34 | 1. 开放驾车线路规划,返回多条线路的能力: 35 | BMKDrivingRouteResult中,routes数组有多条数据,支持检索结果为多条线路 36 | 2. 驾车线路规划结果中,新增路况信息字段: 37 | BMKDrivingRoutePlanOption新增属性: 38 | ///驾车检索获取路线每一个step的路况,默认使用BMK_DRIVING_REQUEST_TRAFFICE_TYPE_NONE 39 | @property (nonatomic) BMKDrivingRequestTrafficType drivingRequestTrafficType; 40 | BMKDrivingStep新增属性: 41 | ///路段是否有路况信息 42 | @property (nonatomic) BOOL hasTrafficsInfo; 43 | ///路段的路况信息,成员为NSNumber。0:无数据;1:畅通;2:缓慢;3:拥堵 44 | @property (nonatomic, strong) NSArray* traffics; 45 | 3.废弃接口: 46 | BMKDrivingRouteLine中,废弃属性:isSupportTraffic 47 | 计算工具 48 | 1. 新增点与圆、多边形位置关系判断方法: 49 | 工具类BMKGeometry.h中新增接口: 50 | //判断点是否在圆内 51 | UIKIT_EXTERN BOOL BMKCircleContainsPoint(BMKMapPoint point, BMKMapPoint center, double radius); 52 | UIKIT_EXTERN BOOL BMKCircleContainsCoordinate(CLLocationCoordinate2D point, CLLocationCoordinate2D center, double radius); 53 | //判断点是否在多边形内 54 | UIKIT_EXTERN BOOL BMKPolygonContainsPoint(BMKMapPoint point, BMKMapPoint *polygon, NSUInteger count); 55 | UIKIT_EXTERN BOOL BMKPolygonContainsCoordinate(CLLocationCoordinate2D point, CLLocationCoordinate2D *polygon, NSUInteger count); 56 | 2. 新增获取折线外某点到这线上距离最近的点: 57 | 工具类BMKGeometry.h中新增接口: 58 | UIKIT_EXTERN BMKMapPoint BMKGetNearestMapPointFromPolyline(BMKMapPoint point, BMKMapPoint* polyline, NSUInteger count); 59 | 3、新增计算地理矩形区域的面积 60 | 工具类BMKGeometry.h中新增接口: 61 | UIKIT_EXTERN double BMKAreaBetweenCoordinates(CLLocationCoordinate2D leftTop, CLLocationCoordinate2D rightBottom); 62 | 【 优 化 】 63 | 1. 减少首次启动SDK时的数据流量; 64 | 2. 检索协议优化升级; 65 | 3. 优化Annotation拖拽方法(长按后开始拖拽); 66 | 【 修 复 】 67 | 1. 修复在线地图和离线地图穿插使用时,地图内存不释放的bug; 68 | 2. 修复云检索过程中偶现崩溃的bug; 69 | 3. 修复地图在autolayout布局下无效的bug; 70 | 4. 修复BMKAnnotationView重叠的bug; 71 | 72 | 73 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // WeChatLocationDemo 4 | // 5 | // Created by HuiYang on 15/5/25. 6 | // Copyright (c) 2015年 Email:xiaoyangh@foxmail.com. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // WeChatLocationDemo 4 | // 5 | // Created by HuiYang on 15/5/25. 6 | // Copyright (c) 2015年 Email:xiaoyangh@foxmail.com. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemoTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.zzb.dev.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /WeChatLocationDemo/WeChatLocationDemoTests/WeChatLocationDemoTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // WeChatLocationDemoTests.m 3 | // WeChatLocationDemoTests 4 | // 5 | // Created by HuiYang on 15/5/25. 6 | // Copyright (c) 2015年 Email:xiaoyangh@foxmail.com. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface WeChatLocationDemoTests : XCTestCase 13 | 14 | @end 15 | 16 | @implementation WeChatLocationDemoTests 17 | 18 | - (void)setUp { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown { 24 | // Put teardown code here. This method is called after the invocation of each test method in the class. 25 | [super tearDown]; 26 | } 27 | 28 | - (void)testExample { 29 | // This is an example of a functional test case. 30 | XCTAssert(YES, @"Pass"); 31 | } 32 | 33 | - (void)testPerformanceExample { 34 | // This is an example of a performance test case. 35 | [self measureBlock:^{ 36 | // Put the code you want to measure the time of here. 37 | }]; 38 | } 39 | 40 | @end 41 | --------------------------------------------------------------------------------