├── .flowconfig ├── .gitignore ├── .npmignore ├── BaiduMap ├── BaiduMap.h ├── BaiduMap.m ├── BaiduMapManager.h └── BaiduMapManager.m ├── 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 │ ├── BMKFavPoiInfo.h │ ├── BMKFavPoiManager.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 │ ├── BMKOpenOption.h │ ├── BMKOpenPoi.h │ ├── BMKOpenPoiOption.h │ ├── BMKOpenRoute.h │ ├── BMKOpenRouteOption.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 │ ├── BMKRadarComponent.h │ ├── BMKRadarManager.h │ ├── BMKRadarOption.h │ ├── BMKRadarResult.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_line_nofocus.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 └── readme.txt ├── README.md ├── ReactNativeExampleBaiduMap.xcodeproj ├── project.pbxproj └── xcshareddata │ └── xcschemes │ └── ReactNativeExampleBaiduMap.xcscheme ├── index.ios.js └── package.json /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | 3 | # We fork some components by platform. 4 | .*/*.web.js 5 | .*/*.android.js 6 | 7 | # Some modules have their own node_modules with overlap 8 | .*/node_modules/node-haste/.* 9 | 10 | # Ignore react-tools where there are overlaps, but don't ignore anything that 11 | # react-native relies on 12 | .*/node_modules/react-tools/src/vendor/core/ExecutionEnvironment.js 13 | .*/node_modules/react-tools/src/browser/eventPlugins/ResponderEventPlugin.js 14 | .*/node_modules/react-tools/src/browser/ui/React.js 15 | .*/node_modules/react-tools/src/core/ReactInstanceHandles.js 16 | .*/node_modules/react-tools/src/event/EventPropagators.js 17 | 18 | # Ignore commoner tests 19 | .*/node_modules/commoner/test/.* 20 | 21 | # See https://github.com/facebook/flow/issues/442 22 | .*/react-tools/node_modules/commoner/lib/reader.js 23 | 24 | # Ignore jest 25 | .*/react-native/node_modules/jest-cli/.* 26 | 27 | [include] 28 | 29 | [libs] 30 | node_modules/react-native/Libraries/react-native/react-native-interface.js 31 | 32 | [options] 33 | module.system=haste 34 | 35 | [version] 36 | 0.12.0 37 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # node.js 26 | # 27 | node_modules/ 28 | npm-debug.log 29 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | 24 | # node.js 25 | # 26 | node_modules/ 27 | npm-debug.log 28 | -------------------------------------------------------------------------------- /BaiduMap/BaiduMap.h: -------------------------------------------------------------------------------- 1 | // 2 | // BaiduMap.h 3 | // ReactNativeExampleBaiduMap 4 | // 5 | // Created by Vanson on 19/7/15. 6 | // Copyright (c) 2015 Facebook. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | 13 | @class RCTEventDispatcher; 14 | 15 | @interface BaiduMap : BMKMapView 16 | { 17 | RCTEventDispatcher * eventDispatcher; 18 | } 19 | @property (nonatomic) BOOL isRed; 20 | 21 | -(int)addPointAnnotation:(CLLocationDegrees)latitude longitude:(CLLocationDegrees)longitude title:(NSString*)title; 22 | -(void)centerToCoor:(CLLocationDegrees)latitude longitude:(CLLocationDegrees)longitude; 23 | @end 24 | -------------------------------------------------------------------------------- /BaiduMap/BaiduMap.m: -------------------------------------------------------------------------------- 1 | // 2 | // BaiduMap.m 3 | // ReactNativeExampleBaiduMap 4 | // 5 | // Created by Vanson on 19/7/15. 6 | // Copyright (c) 2015 Facebook. All rights reserved. 7 | // 8 | 9 | #import "BaiduMap.h" 10 | #import 11 | 12 | @implementation BaiduMap 13 | 14 | -(int)addPointAnnotation:(CLLocationDegrees)latitude longitude:(CLLocationDegrees)longitude title:(NSString*)title 15 | { 16 | BMKPointAnnotation* annotation = [[BMKPointAnnotation alloc]init]; 17 | CLLocationCoordinate2D _coor = CLLocationCoordinate2DMake(latitude, longitude); 18 | annotation.coordinate = _coor; 19 | annotation.title = title; 20 | [self addAnnotation:annotation]; 21 | return 0; 22 | } 23 | 24 | -(void)centerToCoor:(CLLocationDegrees)latitude longitude:(CLLocationDegrees)longitude 25 | { 26 | CLLocationCoordinate2D _coor = CLLocationCoordinate2DMake(latitude, longitude); 27 | [self setCenterCoordinate: _coor]; 28 | } 29 | 30 | 31 | - (BMKAnnotationView *)mapView:(BMKMapView *)mapView viewForAnnotation:(id )annotation 32 | { 33 | if ([annotation isKindOfClass:[BMKPointAnnotation class]]) { 34 | BMKPinAnnotationView *newAnnotationView = [[BMKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"myAnnotation"]; 35 | newAnnotationView.pinColor = BMKPinAnnotationColorPurple; 36 | newAnnotationView.animatesDrop = YES;// 设置该标注点动画显示 37 | return newAnnotationView; 38 | } 39 | return nil; 40 | } 41 | @end 42 | -------------------------------------------------------------------------------- /BaiduMap/BaiduMapManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // BaiduMapManager.h 3 | // ReactNativeExampleBaiduMap 4 | // 5 | // Created by Vanson on 19/7/15. 6 | // Copyright (c) 2015 Facebook. All rights reserved. 7 | // 8 | 9 | #import "RCTViewManager.h" 10 | 11 | @interface BaiduMapManager : RCTViewManager 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /BaiduMap/BaiduMapManager.m: -------------------------------------------------------------------------------- 1 | // 2 | // BaiduMapManager.m 3 | // ReactNativeExampleBaiduMap 4 | // 5 | // Created by Vanson on 19/7/15. 6 | // Copyright (c) 2015 Facebook. All rights reserved. 7 | // 8 | 9 | #import "BaiduMapManager.h" 10 | #import "BaiduMap.h" 11 | 12 | #import "RCTBridge.h" 13 | #import "RCTSparseArray.h" 14 | #import "RCTUIManager.h" 15 | 16 | #import 17 | 18 | @implementation BaiduMapManager 19 | 20 | RCT_EXPORT_MODULE(); 21 | 22 | //RCT_EXPORT_VIEW_PROPERTY(isRed, BOOL) 23 | 24 | - (BaiduMap *)view 25 | { 26 | BaiduMap * map = [BaiduMap new]; 27 | return map; 28 | } 29 | 30 | RCT_EXPORT_METHOD(addPointAnnotation:(NSNumber *)reactTag latitude:(NSNumber*)latitude longitude:(NSNumber*)longitude title:(NSString*)title) 31 | { 32 | [self.bridge.uiManager addUIBlock:^(__unused RCTUIManager *uiManager, RCTSparseArray *viewRegistry) { 33 | BaiduMap *view = viewRegistry[reactTag]; 34 | if (![view isKindOfClass:[BaiduMap class]]) { 35 | RCTLogError(@"Invalid view returned from registry, expecting BaiduMap, got: %@", view); 36 | } 37 | 38 | [view addPointAnnotation:[latitude doubleValue] longitude:[longitude doubleValue] title:title]; 39 | }]; 40 | } 41 | 42 | RCT_EXPORT_METHOD(centerToCoor:(NSNumber *)reactTag latitude:(NSNumber*)latitude longitude:(NSNumber*)longitude) 43 | { 44 | [self.bridge.uiManager addUIBlock:^(__unused RCTUIManager *uiManager, RCTSparseArray *viewRegistry) { 45 | BaiduMap *view = viewRegistry[reactTag]; 46 | if (![view isKindOfClass:[BaiduMap class]]) { 47 | RCTLogError(@"Invalid view returned from registry, expecting BaiduMap, got: %@", view); 48 | } 49 | 50 | [view centerToCoor:[latitude doubleValue] longitude:[longitude doubleValue]]; 51 | }]; 52 | } 53 | 54 | 55 | RCT_CUSTOM_VIEW_PROPERTY(zoomEnabled, BOOL, BaiduMap) 56 | { 57 | if (json) { 58 | view.zoomEnabled = ([RCTConvert BOOL:json]); 59 | } else { 60 | view.zoomEnabled = defaultView.zoomEnabled; 61 | } 62 | } 63 | 64 | @end 65 | -------------------------------------------------------------------------------- /BaiduMapAPI.framework/BaiduMapAPI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/BaiduMapAPI -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 指定的直角坐标点数组(需传入3个点) 22 | *@return 新生成的圆弧对象 23 | */ 24 | + (BMKArcline *)arclineWithPoints:(BMKMapPoint *)points; 25 | 26 | /** 27 | *根据指定经纬度生成一段圆弧 28 | *@param coords 指定的经纬度坐标点数组(需传入3个点) 29 | *@return 新生成的圆弧对象 30 | */ 31 | + (BMKArcline *)arclineWithCoordinates:(CLLocationCoordinate2D *)coords; 32 | 33 | /** 34 | *重新设置圆弧坐标 35 | *@param points 指定的直角坐标点数组(需传入3个点) 36 | *@return 是否设置成功 37 | */ 38 | - (BOOL)setArclineWithPoints:(BMKMapPoint *)points; 39 | 40 | /** 41 | *重新设置圆弧坐标 42 | *@param coords 指定的经纬度坐标点数组(需传入3个点) 43 | *@param count 坐标点的个数 44 | *@return 是否设置成功 45 | */ 46 | - (BOOL)setArclineWithCoordinates:(CLLocationCoordinate2D *)coords; 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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, assign) CLLocationCoordinate2D coordinate; 40 | 41 | /// 半径,单位:米 42 | @property (nonatomic, assign) CLLocationDistance radius; 43 | 44 | /// 该圆的外接矩形 45 | @property (nonatomic, readonly) BMKMapRect boundingMapRect; 46 | 47 | /** 48 | *设置圆的中心点和半径 49 | *@param coord 中心点的经纬度坐标 50 | *@param radius 半径,单位:米 51 | *@return 是否设置成功 52 | */ 53 | - (BOOL)setCircleWithCenterCoordinate:(CLLocationCoordinate2D)coord radius:(CLLocationDistance)radius; 54 | /** 55 | *根据指定的直角坐标矩形设置圆,半径由较长的那条边决定,radius = MAX(width, height)/2 56 | *@param mapRect 指定的直角坐标矩形 57 | *@return 是否设置成功 58 | */ 59 | - (BOOL)setCircleWithMapRect:(BMKMapRect)mapRect; 60 | 61 | @end 62 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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; 40 | /** 41 | *本地云检索 42 | *异步函数,返回结果在BMKCloudSearchDelegate的onGetCloudPoiResult通知 43 | *@param searchInfo 搜索参数 44 | *@return 成功返回YES,否则返回NO 45 | */ 46 | - (BOOL)localSearchWithSearchInfo:(BMKCloudLocalSearchInfo *)searchInfo; 47 | /** 48 | *周边云检索 49 | *异步函数,返回结果在BMKCloudSearchDelegate的onGetCloudPoiResult通知 50 | *@param searchInfo 搜索参数 51 | *@return 成功返回YES,否则返回NO 52 | */ 53 | - (BOOL)nearbySearchWithSearchInfo:(BMKCloudNearbySearchInfo *)searchInfo; 54 | /** 55 | *矩形云检索 56 | *异步函数,返回结果在BMKCloudSearchDelegate的onGetCloudPoiResult通知 57 | *@param searchInfo 搜索参数 58 | *@return 成功返回YES,否则返回NO 59 | */ 60 | - (BOOL)boundSearchWithSearchInfo:(BMKCloudBoundSearchInfo *)searchInfo; 61 | 62 | /** 63 | *详情云检索 64 | *异步函数,返回结果在BMKCloudSearchDelegate的onGetCloudPoiDetailResult通知 65 | *@param searchInfo 搜索参数 66 | *@return 成功返回YES,否则返回NO 67 | */ 68 | - (BOOL)detailSearchWithSearchInfo:(BMKCloudDetailSearchInfo *)searchInfo; 69 | 70 | @end 71 | 72 | ///云检索delegate,用于获取云检索结果 73 | @protocol BMKCloudSearchDelegate 74 | @optional 75 | /** 76 | *返回云检索POI列表结果 77 | *@param poiResultList 云检索结果列表,成员类型为BMKCloudPOIList 78 | *@param type 返回结果类型: BMK_CLOUD_LOCAL_SEARCH,BMK_CLOUD_NEARBY_SEARCH,BMK_CLOUD_BOUND_SEARCH 79 | *@param error 错误号,@see BMKCloudErrorCode 80 | */ 81 | - (void)onGetCloudPoiResult:(NSArray*)poiResultList searchType:(int)type errorCode:(int)error; 82 | 83 | /** 84 | *返回云检索POI详情 85 | *@param poiDetailResult 类型为BMKCloudPOIInfo 86 | *@param type 返回结果类型: BMK_CLOUD_DETAIL_SEARCH 87 | *@param error 错误号,@see BMKCloudErrorCode 88 | */ 89 | - (void)onGetCloudPoiDetailResult:(BMKCloudPOIInfo*)poiDetailResult searchType:(int)type errorCode:(int)error; 90 | @end 91 | 92 | 93 | 94 | 95 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Headers/BMKFavPoiInfo.h: -------------------------------------------------------------------------------- 1 | // 2 | // BMKFavPoiInfo.h 3 | // UtilsComponent 4 | // 5 | // Created by wzy on 15/4/8. 6 | // Copyright (c) 2015年 baidu. All rights reserved. 7 | // 8 | 9 | #ifndef UtilsComponent_BMKFavPoiInfo_h 10 | #define UtilsComponent_BMKFavPoiInfo_h 11 | 12 | #import 13 | #import 14 | 15 | ///收藏点信息类 16 | @interface BMKFavPoiInfo : NSObject 17 | 18 | ///数据ID,自动生成 19 | @property (nonatomic, strong) NSString* favId; 20 | ///poi名称(添加或更新时,必须有) 21 | @property (nonatomic, strong) NSString* poiName; 22 | ///poi点Uid 23 | @property (nonatomic, strong) NSString* poiUid; 24 | ///poi坐标(添加或更新时,必须有) 25 | @property (nonatomic, assign) CLLocationCoordinate2D pt; 26 | ///poi地址 27 | @property (nonatomic, strong) NSString* address; 28 | ///城市名称 29 | @property (nonatomic, strong) NSString* cityName; 30 | ///添加或最后修改时间戳 31 | @property (nonatomic, assign) NSUInteger timeStamp; 32 | 33 | 34 | @end 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Headers/BMKFavPoiManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // BMKFavPoiManager.h 3 | // UtilsComponent 4 | // 5 | // Created by wzy on 15/4/9. 6 | // Copyright (c) 2015年 baidu. All rights reserved. 7 | // 8 | 9 | #ifndef UtilsComponent_BMKFavPoiManager_h 10 | #define UtilsComponent_BMKFavPoiManager_h 11 | 12 | #import "BMKFavPoiInfo.h" 13 | 14 | ///收藏点管理类 15 | @interface BMKFavPoiManager : NSObject 16 | 17 | /** 18 | * 添加一个poi点 19 | * @param favPoiInfo 点信息,in/out,输出包含favId和添加时间 20 | * @return -2:收藏夹已满,-1:名称为空,0:添加失败,1:添加成功 21 | */ 22 | - (NSInteger)addFavPoi:(BMKFavPoiInfo*) favPoiInfo; 23 | 24 | /** 25 | * 获取一个收藏点信息 26 | * @param favId 添加时返回的favId,也可通过getAllFavPois获取的信息中BMKFavPoiInfo的属性favId 27 | * @return 收藏点信息,没有返回nil 28 | */ 29 | - (BMKFavPoiInfo*)getFavPoi:(NSString*) favId; 30 | 31 | /** 32 | * 获取所有收藏点信息 33 | * @return 点信息数组 34 | */ 35 | - (NSArray*)getAllFavPois; 36 | 37 | /** 38 | * 更新一个收藏点 39 | * @param favId 添加时返回的favId,也可通过getAllFavPois获取的信息中BMKFavPoiInfo的属性favId 40 | * @param favPoiInfo 点信息,in/out,输出包含修改时间 41 | * @return 成功返回YES,失败返回NO 42 | */ 43 | - (BOOL)updateFavPoi:(NSString*) favId favPoiInfo:(BMKFavPoiInfo*) favPoiInfo; 44 | 45 | /** 46 | * 删除一个收藏点 47 | * @param favId 添加时返回的favId,也可通过getAllFavPois获取的信息中BMKFavPoiInfo的属性favId 48 | * @return 成功返回YES,失败返回NO 49 | */ 50 | - (BOOL)deleteFavPoi:(NSString*) favId; 51 | 52 | /** 53 | * 清空所有收藏点 54 | * @return 成功返回YES,失败返回NO 55 | */ 56 | - (BOOL)clearAllFavPois; 57 | 58 | @end 59 | 60 | #endif 61 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Headers/BMKGeometry.h: -------------------------------------------------------------------------------- 1 | /* BMKGeometry.h 2 | * BMapKit 3 | * 4 | * Copyright 2011 Baidu Inc. All rights reserved. 5 | * 6 | */ 7 | 8 | #import "BMKTypes.h" 9 | #import 10 | #import 11 | #import 12 | 13 | 14 | /** 15 | *构造BMKCoordinateSpan对象 16 | *@param latitudeDelta 纬度方向的变化量 17 | *@param longitudeDelta 经度方向的变化量 18 | *@return 根据指定参数生成的BMKCoordinateSpan对象 19 | */ 20 | UIKIT_STATIC_INLINE BMKCoordinateSpan BMKCoordinateSpanMake(CLLocationDegrees latitudeDelta, CLLocationDegrees longitudeDelta) 21 | { 22 | BMKCoordinateSpan span; 23 | span.latitudeDelta = latitudeDelta; 24 | span.longitudeDelta = longitudeDelta; 25 | return span; 26 | } 27 | 28 | /** 29 | *构造BMKCoordinateRegion对象 30 | *@param centerCoordinate 中心点经纬度坐标 31 | *@param span 经纬度的范围 32 | *@return 根据指定参数生成的BMKCoordinateRegion对象 33 | */ 34 | UIKIT_STATIC_INLINE BMKCoordinateRegion BMKCoordinateRegionMake(CLLocationCoordinate2D centerCoordinate, BMKCoordinateSpan span) 35 | { 36 | BMKCoordinateRegion region; 37 | region.center = centerCoordinate; 38 | region.span = span; 39 | return region; 40 | } 41 | 42 | /** 43 | *根据中心点和距离生成BMKCoordinateRegion 44 | *@param centerCoordinate 中心点坐标 45 | *@param latitudinalMeters 纬度方向的距离范围,单位:米 46 | *@param longitudinalMeters 经度方向的距离范围,单位:米 47 | *@return 根据中心点和距离生成BMKCoordinateRegion 48 | */ 49 | UIKIT_EXTERN BMKCoordinateRegion BMKCoordinateRegionMakeWithDistance(CLLocationCoordinate2D centerCoordinate, CLLocationDistance latitudinalMeters, CLLocationDistance longitudinalMeters); 50 | 51 | /** 52 | *将经纬度坐标转换为投影后的直角地理坐标 53 | *@param coordinate 待转换的经纬度坐标 54 | *@return 转换后的直角地理坐标 55 | */ 56 | UIKIT_EXTERN BMKMapPoint BMKMapPointForCoordinate(CLLocationCoordinate2D coordinate); 57 | 58 | /** 59 | *将投影后的直角地理坐标转换为经纬度坐标 60 | *@param mapPoint 投影后的直角地理坐标 61 | *@return 转换后的经纬度坐标 62 | */ 63 | UIKIT_EXTERN CLLocationCoordinate2D BMKCoordinateForMapPoint(BMKMapPoint mapPoint); 64 | 65 | /** 66 | *计算在指定纬度下一个BMKMapPoint单位对应的米数 67 | *@param latitude 指定的纬度 68 | *@return 在指定纬度下一个BMKMapPoint单位对应的米数 69 | */ 70 | UIKIT_EXTERN CLLocationDistance BMKMetersPerMapPointAtLatitude(CLLocationDegrees latitude); 71 | 72 | /** 73 | *计算在指定纬度下一米对应的MKMapPoint的单位数 74 | *@param latitude 指定的纬度 75 | *@return 在指定纬度下一米对应的MKMapPoint的单位数 76 | */ 77 | UIKIT_EXTERN double BMKMapPointsPerMeterAtLatitude(CLLocationDegrees latitude); 78 | 79 | /** 80 | *计算指定两点之间的距离 81 | *@param a 第一个坐标点 82 | *@param b 第二个坐标点 83 | *@return 两点之间的距离,单位:米 84 | */ 85 | UIKIT_EXTERN CLLocationDistance BMKMetersBetweenMapPoints(BMKMapPoint a, BMKMapPoint b); 86 | 87 | /** 88 | *构造BMKMapPoint对象 89 | *@param x 水平方向的坐标值 90 | *@param y 垂直方向的坐标值 91 | *@return 根据指定参数生成的BMKMapPoint对象 92 | */ 93 | UIKIT_STATIC_INLINE BMKMapPoint BMKMapPointMake(double x, double y) { 94 | return (BMKMapPoint){x, y}; 95 | } 96 | 97 | /** 98 | *构造BMKMapSize对象 99 | *@param width 宽度 100 | *@param height 高度 101 | *@return 根据指定参数生成的BMKMapSize对象 102 | */ 103 | UIKIT_STATIC_INLINE BMKMapSize BMKMapSizeMake(double width, double height) { 104 | return (BMKMapSize){width, height}; 105 | } 106 | 107 | /** 108 | *构造BMKMapRect对象 109 | *@param x 矩形左上顶点的x坐标值 110 | *@param y 矩形左上顶点的y坐标值 111 | *@param width 矩形宽度 112 | *@param height 矩形高度 113 | *@return 根据指定参数生成的BMKMapRect对象 114 | */ 115 | UIKIT_STATIC_INLINE BMKMapRect BMKMapRectMake(double x, double y, double width, double height) { 116 | return (BMKMapRect){ BMKMapPointMake(x, y), BMKMapSizeMake(width, height)}; 117 | } 118 | 119 | /** 120 | *获取指定矩形的x轴坐标最小值 121 | *@param rect 指定的矩形 122 | *@return x轴坐标最小值 123 | */ 124 | UIKIT_STATIC_INLINE double BMKMapRectGetMinX(BMKMapRect rect) { 125 | return rect.origin.x; 126 | } 127 | 128 | /** 129 | *获取指定矩形的y轴坐标最小值 130 | *@param rect 指定的矩形 131 | *@return y轴坐标最小值 132 | */ 133 | UIKIT_STATIC_INLINE double BMKMapRectGetMinY(BMKMapRect rect) { 134 | return rect.origin.y; 135 | } 136 | 137 | /** 138 | *获取指定矩形在x轴中点的坐标值 139 | *@param rect 指定的矩形 140 | *@return x轴中点的坐标值 141 | */ 142 | UIKIT_STATIC_INLINE double BMKMapRectGetMidX(BMKMapRect rect) { 143 | return rect.origin.x + rect.size.width / 2.0; 144 | } 145 | 146 | /** 147 | *获取指定矩形在y轴中点的坐标值 148 | *@param rect 指定的矩形 149 | *@return y轴中点的坐标值 150 | */ 151 | UIKIT_STATIC_INLINE double BMKMapRectGetMidY(BMKMapRect rect) { 152 | return rect.origin.y + rect.size.height / 2.0; 153 | } 154 | 155 | /** 156 | *获取指定矩形的x轴坐标最大值 157 | *@param rect 指定的矩形 158 | *@return x轴坐标最大值 159 | */ 160 | UIKIT_STATIC_INLINE double BMKMapRectGetMaxX(BMKMapRect rect) { 161 | return rect.origin.x + rect.size.width; 162 | } 163 | 164 | /** 165 | *获取指定矩形的y轴坐标最大值 166 | *@param rect 指定的矩形 167 | *@return y轴坐标最大值 168 | */ 169 | UIKIT_STATIC_INLINE double BMKMapRectGetMaxY(BMKMapRect rect) { 170 | return rect.origin.y + rect.size.height; 171 | } 172 | 173 | /** 174 | *获取指定矩形的宽度 175 | *@param rect 指定的矩形 176 | *@return 指定矩形的宽度 177 | */ 178 | UIKIT_STATIC_INLINE double BMKMapRectGetWidth(BMKMapRect rect) { 179 | return rect.size.width; 180 | } 181 | 182 | /** 183 | *获取指定矩形的高度 184 | *@param rect 指定的矩形 185 | *@return 指定矩形的高度 186 | */ 187 | UIKIT_STATIC_INLINE double BMKMapRectGetHeight(BMKMapRect rect) { 188 | return rect.size.height; 189 | } 190 | 191 | /** 192 | *判断两个点是否相等 193 | *@param point1 第一个点 194 | *@param point2 第二个点 195 | *@return 如果两点相等,返回YES,否则返回NO 196 | */ 197 | UIKIT_STATIC_INLINE BOOL BMKMapPointEqualToPoint(BMKMapPoint point1, BMKMapPoint point2) { 198 | return point1.x == point2.x && point1.y == point2.y; 199 | } 200 | 201 | /** 202 | *判断两个矩形范围是否相等 203 | *@param size1 范围1 204 | *@param size2 范围2 205 | *@return 如果相等,返回YES,否则返回NO 206 | */ 207 | UIKIT_STATIC_INLINE BOOL BMKMapSizeEqualToSize(BMKMapSize size1, BMKMapSize size2) { 208 | return size1.width == size2.width && size1.height == size2.height; 209 | } 210 | 211 | /** 212 | *判断两个矩形是否相等 213 | *@param rect1 矩形1 214 | *@param rect2 矩形2 215 | *@return 如果相等,返回YES,否则返回NO 216 | */ 217 | UIKIT_STATIC_INLINE BOOL BMKMapRectEqualToRect(BMKMapRect rect1, BMKMapRect rect2) { 218 | return 219 | BMKMapPointEqualToPoint(rect1.origin, rect2.origin) && 220 | BMKMapSizeEqualToSize(rect1.size, rect2.size); 221 | } 222 | 223 | /** 224 | *判断指定矩形是否为NULL 225 | *@param rect 指定矩形 226 | *@return 如果矩形为NULL,返回YES,否则返回NO 227 | */ 228 | UIKIT_STATIC_INLINE BOOL BMKMapRectIsNull(BMKMapRect rect) { 229 | return isinf(rect.origin.x) || isinf(rect.origin.y); 230 | } 231 | 232 | /** 233 | *判断一个矩形是否为空矩形 234 | *@param rect 指定矩形 235 | *@return 如果矩形为空矩形,返回YES,否则返回NO 236 | */ 237 | UIKIT_STATIC_INLINE BOOL BMKMapRectIsEmpty(BMKMapRect rect) { 238 | return BMKMapRectIsNull(rect) || (rect.size.width == 0.0 && rect.size.height == 0.0); 239 | } 240 | 241 | /** 242 | *将BMKMapPoint格式化为字符串 243 | *@param point 指定的标点 244 | *@return 返回转换后的字符串 245 | */ 246 | UIKIT_STATIC_INLINE NSString *BMKStringFromMapPoint(BMKMapPoint point) { 247 | return [NSString stringWithFormat:@"{%.1f, %.1f}", point.x, point.y]; 248 | } 249 | 250 | /** 251 | *将BMKMapSize格式化为字符串 252 | *@param size 指定的size 253 | *@return 返回转换后的字符串 254 | */ 255 | UIKIT_STATIC_INLINE NSString *BMKStringFromMapSize(BMKMapSize size) { 256 | return [NSString stringWithFormat:@"{%.1f, %.1f}", size.width, size.height]; 257 | } 258 | 259 | /** 260 | *将BMKMapRect格式化为字符串 261 | *@param rect 指定的rect 262 | *@return 返回转换后的字符串 263 | */ 264 | UIKIT_STATIC_INLINE NSString *BMKStringFromMapRect(BMKMapRect rect) { 265 | return [NSString stringWithFormat:@"{%@, %@}", BMKStringFromMapPoint(rect.origin), BMKStringFromMapSize(rect.size)]; 266 | } 267 | 268 | /** 269 | *计算两个矩形的并集 270 | *@param rect1 矩形1 271 | *@param rect2 矩形2 272 | *@return 两个矩形的并集 273 | */ 274 | UIKIT_EXTERN BMKMapRect BMKMapRectUnion(BMKMapRect rect1, BMKMapRect rect2); 275 | 276 | /** 277 | *计算两个矩形的交集 278 | *@param rect1 矩形1 279 | *@param rect2 矩形2 280 | *@return 两个矩形的交集 281 | */ 282 | UIKIT_EXTERN BMKMapRect BMKMapRectIntersection(BMKMapRect rect1, BMKMapRect rect2); 283 | 284 | /** 285 | *将矩形向内缩小dx,dy大小 286 | *@param rect 指定的矩形 287 | *@param dx x轴的变化量 288 | *@param dy y轴的变化量 289 | *@return 调整后的矩形 290 | */ 291 | UIKIT_EXTERN BMKMapRect BMKMapRectInset(BMKMapRect rect, double dx, double dy); 292 | 293 | /** 294 | *将矩形原点偏移指定大小 295 | *@param rect 指定的矩形 296 | *@param dx x轴的偏移量 297 | *@param dy y轴的偏移量 298 | *@return 调整后的矩形 299 | */ 300 | UIKIT_EXTERN BMKMapRect BMKMapRectOffset(BMKMapRect rect, double dx, double dy); 301 | 302 | /** 303 | *矩形分割,将一个矩形分割为两个矩形 304 | *@param rect 待分割的矩形 305 | *@param slice 指针,用来保存分割后被移除的矩形 306 | *@param remainder 指针,用来保存分割后剩下的矩形 307 | *@param amount 指定分割的大小,如果设置为负数,则将自动调整为0 308 | *@param edge 用来指定要从那条边开始分割 309 | */ 310 | UIKIT_EXTERN void BMKMapRectDivide(BMKMapRect rect, BMKMapRect *slice, BMKMapRect *remainder, double amount, CGRectEdge edge); 311 | 312 | /** 313 | *判断指定点是否在某矩形内 314 | *@param rect 指定的矩形 315 | *@param point 指定的点 316 | *@return 如果包含,返回YES,否则,返回NO 317 | */ 318 | UIKIT_EXTERN BOOL BMKMapRectContainsPoint(BMKMapRect rect, BMKMapPoint point); 319 | 320 | /** 321 | *判断矩形rect1是否包含矩形rect2 322 | *@param rect1 矩形1 323 | *@param rect2 矩形2 324 | *@return 如果包含,返回YES,否则,返回NO 325 | */ 326 | UIKIT_EXTERN BOOL BMKMapRectContainsRect(BMKMapRect rect1, BMKMapRect rect2); 327 | 328 | /** 329 | *判断两矩形是否相交 330 | *@param rect1 矩形1 331 | *@param rect2 矩形2 332 | *@return 如果相交,返回YES,否则,返回NO 333 | */ 334 | UIKIT_EXTERN BOOL BMKMapRectIntersectsRect(BMKMapRect rect1, BMKMapRect rect2); 335 | 336 | /** 337 | *将投影后的直角坐标矩形转换为泳经纬度表示的范围 338 | *@param rect 待转换的直角坐标矩形 339 | *@return 转换后的经纬度范围 340 | */ 341 | UIKIT_EXTERN BMKCoordinateRegion BMKCoordinateRegionForMapRect(BMKMapRect rect); 342 | 343 | /** 344 | *判断指定的直角坐标矩形是否跨越了180度经线 345 | *@param rect 待判断的矩形 346 | *@return 如果跨越,返回YES,否则返回NO 347 | */ 348 | UIKIT_EXTERN BOOL BMKMapRectSpans180thMeridian(BMKMapRect rect); 349 | 350 | /** 351 | *对于跨越了180经线的矩形,本函数将世界之外的部分进行分割,并将分割下来的矩形转换到地球对面,例如将-185度经线对应的区域转换到5度经线对应的区域,并将转换后的矩形返回 352 | *@param rect 待处理的矩形 353 | *@return 返回转换后的矩形 354 | */ 355 | UIKIT_EXTERN BMKMapRect BMKMapRectRemainder(BMKMapRect rect); 356 | 357 | /** 358 | *判断点是否在圆内 359 | *@param point 待判断的平面坐标点 360 | *@param center 目标圆形的中心点平面坐标 361 | *@param radius 目标圆形的半径,单位m 362 | *@return 如果在内,返回YES,否则返回NO 363 | */ 364 | UIKIT_EXTERN BOOL BMKCircleContainsPoint(BMKMapPoint point, BMKMapPoint center, double radius); 365 | 366 | /** 367 | *判断点是否在圆内 368 | *@param point 待判断的经纬度坐标点 369 | *@param center 目标圆形的中心点经纬度坐标 370 | *@param radius 目标圆形的半径,单位m 371 | *@return 如果在内,返回YES,否则返回NO 372 | */ 373 | UIKIT_EXTERN BOOL BMKCircleContainsCoordinate(CLLocationCoordinate2D point, CLLocationCoordinate2D center, double radius); 374 | /** 375 | *判断点是否在多边形内 376 | *@param point 待判断的平面坐标点 377 | *@param polygon 目标多边形的顶点数组 378 | *@param count 目标多边形顶点数组元素个数 379 | *@return 如果在内,返回YES,否则返回NO 380 | */ 381 | UIKIT_EXTERN BOOL BMKPolygonContainsPoint(BMKMapPoint point, BMKMapPoint *polygon, NSUInteger count); 382 | 383 | /** 384 | *判断点是否在多边形内 385 | *@param point 待判断的经纬度点 386 | *@param polygon 目标多边形的顶点数组 387 | *@param count 目标多边形顶点数组元素个数 388 | *@return 如果在内,返回YES,否则返回NO 389 | */ 390 | UIKIT_EXTERN BOOL BMKPolygonContainsCoordinate(CLLocationCoordinate2D point, CLLocationCoordinate2D *polygon, NSUInteger count); 391 | 392 | /** 393 | *获取折线外某点到这线上距离最近的点 394 | *@param point 待判断的经纬度点 395 | *@param polyline 目标折线的顶点数组 396 | *@param count 目标折线顶点数组元素个数 397 | *@return 返回折线上的点(距离point最近) 398 | */ 399 | UIKIT_EXTERN BMKMapPoint BMKGetNearestMapPointFromPolyline(BMKMapPoint point, BMKMapPoint* polyline, NSUInteger count); 400 | 401 | /** 402 | *计算地理矩形区域的面积 403 | *@param leftTop 左上角经纬度坐标点 404 | *@param rightBottom 右下角经纬度坐标点 405 | *@return 返回区域面积,单位:平方米 406 | */ 407 | UIKIT_EXTERN double BMKAreaBetweenCoordinates(CLLocationCoordinate2D leftTop, CLLocationCoordinate2D rightBottom); 408 | 409 | /** 410 | *坐标转换函数,从原始GPS坐标,mapbar坐标,google坐标,51地图坐标,mapabc坐标转换为百度坐标(51地图坐标需要显出10000) 411 | *@param coordinate 待转换的坐标 412 | *@param type 待转换的坐标系类型,GPS为原始GPS坐标,COMMON为google坐标,51地图坐标,mapabc坐标 413 | *@return 返回的NSDictionry中包含“x”,“y”字段,各自对应经过base64加密之后的x,y坐标 414 | */ 415 | UIKIT_EXTERN NSDictionary* BMKConvertBaiduCoorFrom(CLLocationCoordinate2D coordinate,BMK_COORD_TYPE type); 416 | /** 417 | *base64加密后的坐标字典解密函数 418 | *@param dictionary 带解密的NSDictionry,该NSDictionry中应包含“x”,“y”字段,各自对应经过base64加密之后的x,y坐标 419 | *@return 解密之后的坐标 420 | */ 421 | UIKIT_EXTERN CLLocationCoordinate2D BMKCoorDictionaryDecode(NSDictionary* dictionary); 422 | 423 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -(int)getTotalSendFlaxLength; 34 | 35 | /** 36 | *获取所有在线服务消耗的接收流量,单位:字节 37 | */ 38 | -(int)getTotalRecvFlaxLength; 39 | 40 | /** 41 | *停止引擎 42 | */ 43 | -(BOOL)stop; 44 | 45 | 46 | 47 | @end 48 | 49 | 50 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Headers/BMKMapView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKMapView.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | #import "BMKBaseComponent.h" 9 | #import "BMKTypes.h" 10 | #import "BMKAnnotation.h" 11 | #import "BMKAnnotationView.h" 12 | #import "BMKOverlayView.h" 13 | #import "UIKit/UIKit.h" 14 | #import "BMKMapStatus.h" 15 | #import "BMKLocationViewDisplayParam.h" 16 | #import "BMKHeatMap.h" 17 | 18 | @protocol BMKMapViewDelegate; 19 | 20 | ///点击地图标注返回数据结构 21 | @interface BMKMapPoi : NSObject 22 | ///点标注的名称 23 | @property (nonatomic,strong) NSString* text; 24 | ///点标注的经纬度坐标 25 | @property (nonatomic,assign) CLLocationCoordinate2D pt; 26 | @end 27 | 28 | typedef enum { 29 | BMKUserTrackingModeNone = 0, /// 普通定位模式 30 | BMKUserTrackingModeFollow, /// 定位跟随模式 31 | BMKUserTrackingModeFollowWithHeading, /// 定位罗盘模式 32 | } BMKUserTrackingMode; 33 | 34 | ///地图View类,使用此View可以显示地图窗口,并且对地图进行相关的操作 35 | @interface BMKMapView : UIView 36 | 37 | /// 地图View的Delegate,此处记得不用的时候需要置nil,否则影响内存的释放 38 | @property (nonatomic, weak) id delegate; 39 | 40 | /// 当前地图类型,可设定为标准地图、卫星地图 41 | @property (nonatomic) BMKMapType mapType; 42 | 43 | /// 当前地图的经纬度范围,设定的该范围可能会被调整为适合地图窗口显示的范围 44 | @property (nonatomic) BMKCoordinateRegion region; 45 | 46 | /// 指南针的位置,设定坐标以BMKMapView左上角为原点,向右向下增长 47 | @property (nonatomic) CGPoint compassPosition; 48 | 49 | /// 当前地图的中心点,改变该值时,地图的比例尺级别不会发生变化 50 | @property (nonatomic) CLLocationCoordinate2D centerCoordinate; 51 | 52 | /// 地图比例尺级别,在手机上当前可使用的级别为3-19级 53 | @property (nonatomic) float zoomLevel; 54 | /// 地图的自定义最小比例尺级别 55 | @property (nonatomic) float minZoomLevel; 56 | /// 地图的自定义最大比例尺级别 57 | @property (nonatomic) float maxZoomLevel; 58 | 59 | /// 地图旋转角度,在手机上当前可使用的范围为-180~180度 60 | @property (nonatomic) int rotation; 61 | 62 | /// 地图俯视角度,在手机上当前可使用的范围为-45~0度 63 | @property (nonatomic) int overlooking; 64 | ///设定地图是否现实3D楼块效果 65 | @property(nonatomic, getter=isBuildingsEnabled) BOOL buildingsEnabled; 66 | ///设定地图是否打开路况图层 67 | @property(nonatomic, getter=isTrafficEnabled) BOOL trafficEnabled; 68 | ///设定地图是否打开百度城市热力图图层(百度自有数据),注:地图层级大于11时,可显示热力图 69 | @property(nonatomic, getter=isBaiduHeatMapEnabled) BOOL baiduHeatMapEnabled; 70 | 71 | ///设定地图View能否支持用户多点缩放(双指) 72 | @property(nonatomic, getter=isZoomEnabled) BOOL zoomEnabled; 73 | ///设定地图View能否支持用户缩放(双击或双指单击) 74 | @property(nonatomic, getter=isZoomEnabledWithTap) BOOL zoomEnabledWithTap; 75 | ///设定地图View能否支持用户移动地图 76 | @property(nonatomic, getter=isScrollEnabled) BOOL scrollEnabled; 77 | ///设定地图View能否支持俯仰角 78 | @property(nonatomic, getter=isOverlookEnabled) BOOL overlookEnabled; 79 | ///设定地图View能否支持旋转 80 | @property(nonatomic, getter=isRotateEnabled) BOOL rotateEnabled; 81 | 82 | /// 设定是否显式比例尺 83 | @property (nonatomic) BOOL showMapScaleBar; 84 | 85 | /// 比例尺的位置,设定坐标以BMKMapView左上角为原点,向右向下增长 86 | @property (nonatomic) CGPoint mapScaleBarPosition; 87 | 88 | ///当前地图范围,采用直角坐标系表示,向右向下增长 89 | @property (nonatomic) BMKMapRect visibleMapRect; 90 | 91 | ///设定地图View能否支持以手势中心点为轴进行旋转和缩放 92 | @property(nonatomic, getter=isChangeWithTouchPointCenterEnabled) BOOL ChangeWithTouchPointCenterEnabled; 93 | /** 94 | *当应用即将后台时调用,停止一切调用opengl相关的操作。 95 | */ 96 | +(void)willBackGround; 97 | /** 98 | *当应用恢复前台状态时调用。 99 | */ 100 | +(void)didForeGround; 101 | /** 102 | *当mapview即将被显式的时候调用,恢复之前存储的mapview状态。 103 | */ 104 | -(void)viewWillAppear; 105 | 106 | /** 107 | *当mapview即将被隐藏的时候调用,存储当前mapview的状态。 108 | */ 109 | -(void)viewWillDisappear; 110 | 111 | /** 112 | *强制刷新mapview 113 | */ 114 | - (void)mapForceRefresh; 115 | 116 | /** 117 | *放大一级比例尺 118 | *@return 是否成功 119 | */ 120 | - (BOOL)zoomIn; 121 | 122 | /** 123 | *缩小一级比例尺 124 | *@return 是否成功 125 | */ 126 | - (BOOL)zoomOut; 127 | 128 | /** 129 | *根据当前地图View的窗口大小调整传入的region,返回适合当前地图窗口显示的region,调整过程会保证中心点不改变 130 | *@param region 待调整的经纬度范围 131 | *@return 调整后适合当前地图窗口显示的经纬度范围 132 | */ 133 | - (BMKCoordinateRegion)regionThatFits:(BMKCoordinateRegion)region; 134 | 135 | /** 136 | *设定当前地图的显示范围 137 | *@param region 要设定的地图范围,用经纬度的方式表示 138 | *@param animated 是否采用动画效果 139 | */ 140 | - (void)setRegion:(BMKCoordinateRegion)region animated:(BOOL)animated; 141 | 142 | /** 143 | *设定地图中心点坐标 144 | *@param coordinate 要设定的地图中心点坐标,用经纬度表示 145 | *@param animated 是否采用动画效果 146 | */ 147 | - (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated; 148 | 149 | /** 150 | *获得地图当前可视区域截图 151 | *@return 返回view范围内的截取的UIImage 152 | */ 153 | -(UIImage*) takeSnapshot; 154 | 155 | /** 156 | *获得地图区域区域截图 157 | *@return 返回指定区域的截取的UIImage 158 | */ 159 | -(UIImage*) takeSnapshot:(CGRect)rect; 160 | 161 | /** 162 | *设定当前地图的显示范围,采用直角坐标系表示 163 | *@param mapRect 要设定的地图范围,用直角坐标系表示 164 | *@param animate 是否采用动画效果 165 | */ 166 | - (void)setVisibleMapRect:(BMKMapRect)mapRect animated:(BOOL)animate; 167 | 168 | /** 169 | *根据当前地图View的窗口大小调整传入的mapRect,返回适合当前地图窗口显示的mapRect,调整过程会保证中心点不改变 170 | *@param mapRect 待调整的地理范围,采用直角坐标系表示 171 | *@return 调整后适合当前地图窗口显示的地理范围,采用直角坐标系 172 | */ 173 | - (BMKMapRect)mapRectThatFits:(BMKMapRect)mapRect; 174 | 175 | /** 176 | *设定地图的显示范围,并使mapRect四周保留insets指定的边界区域 177 | *@param mapRect 要设定的地图范围,用直角坐标系表示 178 | *@param insets 指定的四周边界大小 179 | *@param animate 是否采用动画效果 180 | */ 181 | - (void)setVisibleMapRect:(BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animate; 182 | 183 | /** 184 | *根据当前地图View的窗口大小调整传入的mapRect,返回适合当前地图窗口显示的mapRect,并且在该mapRect四周保留insets指定的边界区域 185 | *@param mapRect 待调整的地理范围,采用直角坐标系表示 186 | ×@param insets mapRect四周要预留的边界大小 187 | *@return 调整后适合当前地图窗口显示的地理范围,采用直角坐标系 188 | */ 189 | - (BMKMapRect)mapRectThatFits:(BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets; 190 | 191 | /** 192 | *将经纬度坐标转换为View坐标 193 | *@param coordinate 待转换的经纬度坐标 194 | *@param view 指定相对的View 195 | *@return 转换后的View坐标 196 | */ 197 | - (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view; 198 | 199 | /** 200 | *将View坐标转换成经纬度坐标 201 | *@param point 待转换的View坐标 202 | *@param view point坐标所在的view 203 | *@return 转换后的经纬度坐标 204 | */ 205 | - (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view; 206 | 207 | /** 208 | *将经纬度矩形区域转换为View矩形区域 209 | *@param region 待转换的经纬度矩形 210 | *@param view 指定相对的View 211 | *@return 转换后的View矩形区域 212 | */ 213 | - (CGRect)convertRegion:(BMKCoordinateRegion)region toRectToView:(UIView *)view; 214 | 215 | /** 216 | *将View矩形区域转换成经纬度矩形区域 217 | *@param rect 待转换的View矩形区域 218 | *@param view rect坐标所在的view 219 | *@return 转换后的经纬度矩形区域 220 | */ 221 | - (BMKCoordinateRegion)convertRect:(CGRect)rect toRegionFromView:(UIView *)view; 222 | 223 | /** 224 | *将直角地理坐标矩形区域转换为View矩形区域 225 | *@param mapRect 待转换的直角地理坐标矩形 226 | *@param view 指定相对的View 227 | *@return 转换后的View矩形区域 228 | */ 229 | - (CGRect)convertMapRect:(BMKMapRect)mapRect toRectToView:(UIView *)view; 230 | 231 | /** 232 | *将View矩形区域转换成直角地理坐标矩形区域 233 | *@param rect 待转换的View矩形区域 234 | *@param view rect坐标所在的view 235 | *@return 转换后的直角地理坐标矩形区域 236 | */ 237 | - (BMKMapRect)convertRect:(CGRect)rect toMapRectFromView:(UIView *)view; 238 | 239 | /** 240 | *将BMKMapPoint转换为opengles可以直接使用的坐标 241 | @param mapPoint BMKMapPoint坐标 242 | @return opengles 直接支持的坐标 243 | */ 244 | - (CGPoint)glPointForMapPoint:(BMKMapPoint)mapPoint; 245 | 246 | /** 247 | *批量将BMKMapPoint转换为opengles可以直接使用的坐标 248 | @param mapPoints BMKMapPoint坐标数据指针 249 | @param count 个数,count不能大于数组长度 250 | @return opengles 直接支持的坐标数据指针(需要调用者手动释放) 251 | */ 252 | - (CGPoint *)glPointsForMapPoints:(BMKMapPoint *)mapPoints count:(NSUInteger)count; 253 | 254 | /** 255 | * 设置地图中心点在地图中的屏幕坐标位置 256 | * @param ptInScreen 要设定的地图中心点位置,为屏幕坐标,设置的中心点不能超过屏幕范围,否则无效 257 | */ 258 | - (void)setMapCenterToScreenPt:(CGPoint)ptInScreen; 259 | 260 | /** 261 | * 获取地图状态 262 | *@return 返回地图状态信息 263 | */ 264 | - (BMKMapStatus*)getMapStatus; 265 | 266 | /** 267 | * 设置地图状态 268 | * @param [in] mapStatus 地图状态信息 269 | */ 270 | - (void)setMapStatus:(BMKMapStatus*)mapStatus; 271 | 272 | /** 273 | * 设置地图状态 274 | * @param [in] mapStatus 地图状态信息 275 | * @param [in] bAnimation 是否需要动画效果,true:需要做动画 276 | */ 277 | - (void)setMapStatus:(BMKMapStatus*)mapStatus withAnimation:(BOOL)bAnimation; 278 | 279 | /** 280 | * 设置地图状态 281 | * @param [in] mapStatus 地图状态信息 282 | * @param [in] bAnimation 是否需要动画效果,true:需要做动画 283 | * @param [in] ulDuration 指定动画时间,单位:ms 284 | */ 285 | - (void)setMapStatus:(BMKMapStatus*)mapStatus withAnimation:(BOOL)bAnimation withAnimationTime:(int)ulDuration; 286 | 287 | /** 288 | * 判断当前图区是否支持百度热力图(百度自有数据) 289 | * @return 支持返回YES,否则返回NO 290 | */ 291 | - (BOOL)isSurpportBaiduHeatMap; 292 | 293 | @end 294 | 295 | @interface BMKMapView (LocationViewAPI) 296 | 297 | /// 设定是否显示定位图层 298 | @property (nonatomic) BOOL showsUserLocation; 299 | 300 | /// 设定定位模式,取值为:BMKUserTrackingMode 301 | @property (nonatomic) BMKUserTrackingMode userTrackingMode; 302 | 303 | /// 返回定位坐标点是否在当前地图可视区域内 304 | @property (nonatomic, readonly, getter=isUserLocationVisible) BOOL userLocationVisible; 305 | 306 | /** 307 | *动态定制我的位置样式 308 | * @param [in] locationViewDisplayParam 样式参数 309 | */ 310 | - (void)updateLocationViewWithParam:(BMKLocationViewDisplayParam*)locationViewDisplayParam; 311 | 312 | /** 313 | *动态更新我的位置数据 314 | * @param [in] userLocation 定位数据 315 | */ 316 | -(void)updateLocationData:(BMKUserLocation*)userLocation; 317 | @end 318 | 319 | @interface BMKMapView (AnnotationAPI) 320 | 321 | /// 当前地图View的已经添加的标注数组 322 | @property (nonatomic, readonly) NSArray *annotations; 323 | 324 | //设定是否总让选中的annotaion置于最前面 325 | @property (nonatomic, assign) BOOL isSelectedAnnotationViewFront; 326 | 327 | /** 328 | *向地图窗口添加标注,需要实现BMKMapViewDelegate的-mapView:viewForAnnotation:函数来生成标注对应的View 329 | *@param annotation 要添加的标注 330 | */ 331 | - (void)addAnnotation:(id )annotation; 332 | 333 | /** 334 | *向地图窗口添加一组标注,需要实现BMKMapViewDelegate的-mapView:viewForAnnotation:函数来生成标注对应的View 335 | *@param annotations 要添加的标注数组 336 | */ 337 | - (void)addAnnotations:(NSArray *)annotations; 338 | 339 | /** 340 | *移除标注 341 | *@param annotation 要移除的标注 342 | */ 343 | - (void)removeAnnotation:(id )annotation; 344 | 345 | /** 346 | *移除一组标注 347 | *@param annotation 要移除的标注数组 348 | */ 349 | - (void)removeAnnotations:(NSArray *)annotations; 350 | 351 | /** 352 | *查找指定标注对应的View,如果该标注尚未显示,返回nil 353 | *@param annotation 指定的标注 354 | *@return 指定标注对应的View 355 | */ 356 | - (BMKAnnotationView *)viewForAnnotation:(id )annotation; 357 | 358 | /** 359 | *根据指定标识查找一个可被复用的标注View,一般在delegate中使用,用此函数来代替新申请一个View 360 | *@param identifier 指定标识 361 | *@return 返回可被复用的标注View 362 | */ 363 | - (BMKAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier; 364 | 365 | /** 366 | *选中指定的标注,本版暂不支持animate效果 367 | *@param annotation 指定的标注 368 | *@param animated 本版暂不支持 369 | */ 370 | - (void)selectAnnotation:(id )annotation animated:(BOOL)animated; 371 | 372 | /** 373 | *取消指定的标注的选中状态,本版暂不支持animate效果 374 | *@param annotation 指定的标注 375 | *@param animated 本版暂不支持 376 | */ 377 | - (void)deselectAnnotation:(id )annotation animated:(BOOL)animated; 378 | 379 | /** 380 | *设置地图使显示区域显示所有annotations 381 | *@param annotation 指定的标注 382 | *@param animated 是否启动动画 383 | */ 384 | - (void)showAnnotations:(NSArray *)annotations animated:(BOOL)animated; 385 | 386 | @end 387 | ///地图View类(和Overlay操作相关的接口) 388 | @interface BMKMapView (OverlaysAPI) 389 | 390 | /** 391 | *向地图窗口添加Overlay,需要实现BMKMapViewDelegate的-mapView:viewForOverlay:函数来生成标注对应的View 392 | *@param overlay 要添加的overlay 393 | */ 394 | - (void)addOverlay:(id )overlay; 395 | 396 | /** 397 | *向地图窗口添加一组Overlay,需要实现BMKMapViewDelegate的-mapView:viewForOverlay:函数来生成标注对应的View 398 | *@param overlays 要添加的overlay数组 399 | */ 400 | - (void)addOverlays:(NSArray *)overlays; 401 | 402 | /** 403 | *移除Overlay 404 | *@param overlay 要移除的overlay 405 | */ 406 | - (void)removeOverlay:(id )overlay; 407 | 408 | /** 409 | *移除一组Overlay 410 | *@param overlays 要移除的overlay数组 411 | */ 412 | - (void)removeOverlays:(NSArray *)overlays; 413 | 414 | /** 415 | *在指定的索引处添加一个Overlay 416 | *@param overlay 要添加的overlay 417 | *@param index 指定的索引 418 | */ 419 | - (void)insertOverlay:(id )overlay atIndex:(NSUInteger)index; 420 | 421 | /** 422 | *在交换指定索引处的Overlay 423 | *@param index1 索引1 424 | *@param index2 索引2 425 | */ 426 | - (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2; 427 | 428 | /** 429 | *在指定的Overlay之上插入一个overlay 430 | *@param overlay 带添加的Overlay 431 | *@param sibling 用于指定相对位置的Overlay 432 | */ 433 | - (void)insertOverlay:(id )overlay aboveOverlay:(id )sibling; 434 | 435 | /** 436 | *在指定的Overlay之下插入一个overlay 437 | *@param overlay 带添加的Overlay 438 | *@param sibling 用于指定相对位置的Overlay 439 | */ 440 | - (void)insertOverlay:(id )overlay belowOverlay:(id )sibling; 441 | 442 | /// 当前mapView中已经添加的Overlay数组 443 | @property (nonatomic, readonly) NSArray *overlays; 444 | 445 | /** 446 | *查找指定overlay对应的View,如果该View尚未创建,返回nil 447 | *@param overlay 指定的overlay 448 | *@return 指定overlay对应的View 449 | */ 450 | - (BMKOverlayView *)viewForOverlay:(id )overlay; 451 | 452 | @end 453 | @interface BMKMapView (HeatMapAPI) 454 | 455 | /** 456 | *添加热力图 457 | * @param [BMKHeatMap*] heatMap 热力图绘制和显示数据 458 | */ 459 | - (void)addHeatMap:(BMKHeatMap*)heatMap; 460 | 461 | /** 462 | *移除热力图 463 | */ 464 | - (void)removeHeatMap; 465 | 466 | @end 467 | 468 | /// MapView的Delegate,mapView通过此类来通知用户对应的事件 469 | @protocol BMKMapViewDelegate 470 | @optional 471 | 472 | /** 473 | *地图初始化完毕时会调用此接口 474 | *@param mapview 地图View 475 | */ 476 | - (void)mapViewDidFinishLoading:(BMKMapView *)mapView; 477 | 478 | /** 479 | *地图渲染每一帧画面过程中,以及每次需要重绘地图时(例如添加覆盖物)都会调用此接口 480 | *@param mapview 地图View 481 | *@param status 此时地图的状态 482 | */ 483 | - (void)mapView:(BMKMapView *)mapView onDrawMapFrame:(BMKMapStatus*)status; 484 | 485 | /** 486 | *地图区域即将改变时会调用此接口 487 | *@param mapview 地图View 488 | *@param animated 是否动画 489 | */ 490 | - (void)mapView:(BMKMapView *)mapView regionWillChangeAnimated:(BOOL)animated; 491 | 492 | /** 493 | *地图区域改变完成后会调用此接口 494 | *@param mapview 地图View 495 | *@param animated 是否动画 496 | */ 497 | - (void)mapView:(BMKMapView *)mapView regionDidChangeAnimated:(BOOL)animated; 498 | 499 | /** 500 | *根据anntation生成对应的View 501 | *@param mapView 地图View 502 | *@param annotation 指定的标注 503 | *@return 生成的标注View 504 | */ 505 | - (BMKAnnotationView *)mapView:(BMKMapView *)mapView viewForAnnotation:(id )annotation; 506 | 507 | /** 508 | *当mapView新添加annotation views时,调用此接口 509 | *@param mapView 地图View 510 | *@param views 新添加的annotation views 511 | */ 512 | - (void)mapView:(BMKMapView *)mapView didAddAnnotationViews:(NSArray *)views; 513 | 514 | /** 515 | *当选中一个annotation views时,调用此接口 516 | *@param mapView 地图View 517 | *@param views 选中的annotation views 518 | */ 519 | - (void)mapView:(BMKMapView *)mapView didSelectAnnotationView:(BMKAnnotationView *)view; 520 | 521 | /** 522 | *当取消选中一个annotation views时,调用此接口 523 | *@param mapView 地图View 524 | *@param views 取消选中的annotation views 525 | */ 526 | - (void)mapView:(BMKMapView *)mapView didDeselectAnnotationView:(BMKAnnotationView *)view; 527 | 528 | /** 529 | *拖动annotation view时,若view的状态发生变化,会调用此函数。ios3.2以后支持 530 | *@param mapView 地图View 531 | *@param view annotation view 532 | *@param newState 新状态 533 | *@param oldState 旧状态 534 | */ 535 | - (void)mapView:(BMKMapView *)mapView annotationView:(BMKAnnotationView *)view didChangeDragState:(BMKAnnotationViewDragState)newState 536 | fromOldState:(BMKAnnotationViewDragState)oldState; 537 | 538 | /** 539 | *当点击annotation view弹出的泡泡时,调用此接口 540 | *@param mapView 地图View 541 | *@param view 泡泡所属的annotation view 542 | */ 543 | - (void)mapView:(BMKMapView *)mapView annotationViewForBubble:(BMKAnnotationView *)view; 544 | 545 | /** 546 | *根据overlay生成对应的View 547 | *@param mapView 地图View 548 | *@param overlay 指定的overlay 549 | *@return 生成的覆盖物View 550 | */ 551 | - (BMKOverlayView *)mapView:(BMKMapView *)mapView viewForOverlay:(id )overlay; 552 | 553 | /** 554 | *当mapView新添加overlay views时,调用此接口 555 | *@param mapView 地图View 556 | *@param overlayViews 新添加的overlay views 557 | */ 558 | - (void)mapView:(BMKMapView *)mapView didAddOverlayViews:(NSArray *)overlayViews; 559 | 560 | /** 561 | *点中覆盖物后会回调此接口,目前只支持点中BMKPolylineView时回调 562 | *@param mapview 地图View 563 | *@param overlayView 覆盖物view信息 564 | */ 565 | - (void)mapView:(BMKMapView *)mapView onClickedBMKOverlayView:(BMKOverlayView *)overlayView; 566 | 567 | /** 568 | *点中底图标注后会回调此接口 569 | *@param mapview 地图View 570 | *@param mapPoi 标注点信息 571 | */ 572 | - (void)mapView:(BMKMapView *)mapView onClickedMapPoi:(BMKMapPoi*)mapPoi; 573 | 574 | /** 575 | *点中底图空白处会回调此接口 576 | *@param mapview 地图View 577 | *@param coordinate 空白处坐标点的经纬度 578 | */ 579 | - (void)mapView:(BMKMapView *)mapView onClickedMapBlank:(CLLocationCoordinate2D)coordinate; 580 | 581 | /** 582 | *双击地图时会回调此接口 583 | *@param mapview 地图View 584 | *@param coordinate 返回双击处坐标点的经纬度 585 | */ 586 | - (void)mapview:(BMKMapView *)mapView onDoubleClick:(CLLocationCoordinate2D)coordinate; 587 | 588 | /** 589 | *长按地图时会回调此接口 590 | *@param mapview 地图View 591 | *@param coordinate 返回长按事件坐标点的经纬度 592 | */ 593 | - (void)mapview:(BMKMapView *)mapView onLongClick:(CLLocationCoordinate2D)coordinate; 594 | 595 | /** 596 | *地图状态改变完成后会调用此接口 597 | *@param mapview 地图View 598 | */ 599 | - (void)mapStatusDidChanged:(BMKMapView *)mapView; 600 | 601 | @end -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | //注:自2.8.0开始废弃,只支持调起客户端导航,在调起客户端导航时,才会调起web导航 12 | typedef enum 13 | { 14 | BMK_NAVI_TYPE_NATIVE = 0,//客户端导航 15 | BMK_NAVI_TYPE_WEB,//web导航 16 | } BMK_NAVI_TYPE; 17 | 18 | ///此类管理调起导航时传入的参数 19 | @interface BMKNaviPara : NSObject 20 | { 21 | BMKPlanNode* _startPoint; 22 | BMKPlanNode* _endPoint; 23 | BMK_NAVI_TYPE _naviType; 24 | NSString* _appScheme; 25 | NSString* _appName; 26 | } 27 | ///起点 28 | @property (nonatomic, strong) BMKPlanNode* startPoint; 29 | ///终点 30 | @property (nonatomic, strong) BMKPlanNode* endPoint; 31 | ///导航类型 注:自2.8.0开始废弃,只支持调起客户端导航,在调起客户端导航时,才会调起web导航 32 | @property (nonatomic, assign) BMK_NAVI_TYPE naviType; 33 | ///应用返回scheme 34 | @property (nonatomic, strong) NSString* appScheme; 35 | ///应用名称 36 | @property (nonatomic, strong) NSString* appName; 37 | ///调起百度地图客户端失败后,是否支持调起web地图,默认:YES 38 | @property (nonatomic, assign) BOOL isSupportWeb; 39 | 40 | @end 41 | 42 | ///主引擎类 43 | @interface BMKNavigation : NSObject 44 | 45 | /** 46 | *启动导航 47 | *@param para 调起导航时传入得参数 48 | */ 49 | + (BMKOpenErrorCode)openBaiduMapNavigation:(BMKNaviPara*)para; 50 | 51 | 52 | @end 53 | 54 | 55 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Headers/BMKOpenOption.h: -------------------------------------------------------------------------------- 1 | // 2 | // BMKOpenOption.h 3 | // UtilsComponent 4 | // 5 | // Created by wzy on 15/3/26. 6 | // Copyright (c) 2015年 baidu. All rights reserved. 7 | // 8 | 9 | #ifndef UtilsComponent_BMKOpenOption_h 10 | #define UtilsComponent_BMKOpenOption_h 11 | 12 | ///调起百度地图参数基类 13 | @interface BMKOpenOption : NSObject 14 | 15 | ///应用返回scheme,用于调起后返回,没有不能返回 16 | @property (nonatomic, strong) NSString* appScheme; 17 | ///调起百度地图客户端失败后,是否支持调起web地图,默认:YES 18 | @property (nonatomic, assign) BOOL isSupportWeb; 19 | 20 | @end 21 | 22 | #endif 23 | 24 | -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Headers/BMKOpenPoi.h: -------------------------------------------------------------------------------- 1 | // 2 | // BMKOpenPoi.h 3 | // UtilsComponent 4 | // 5 | // Created by wzy on 15/3/26. 6 | // Copyright (c) 2015年 baidu. All rights reserved. 7 | // 8 | 9 | #ifndef UtilsComponent_BMKOpenPoi_h 10 | #define UtilsComponent_BMKOpenPoi_h 11 | 12 | #import "BMKOpenPoiOption.h" 13 | #import "BMKTypes.h" 14 | 15 | ///调起百度地图 -- poi 16 | ///注:从iphone百度地图 8.2.0版本开始支持 17 | @interface BMKOpenPoi : NSObject 18 | 19 | /** 20 | * 调起百度地图poi详情页面 21 | * 注:从iphone百度地图 8.2.0版本开始支持 22 | *@param option poi详情参数类(BMKOpenPoiDetailOption) 23 | *@return 调起结果 24 | */ 25 | + (BMKOpenErrorCode)openBaiduMapPoiDetailPage:(BMKOpenPoiDetailOption *) option; 26 | 27 | /** 28 | * 调起百度地图poi周边检索页面 29 | * 注:从iphone百度地图 8.2.0版本开始支持 30 | *@param option poi周边参数类(BMKOpenPoiNearbyOption) 31 | *@return 调起结果 32 | */ 33 | + (BMKOpenErrorCode)openBaiduMapPoiNearbySearch:(BMKOpenPoiNearbyOption *) option; 34 | 35 | @end 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Headers/BMKOpenPoiOption.h: -------------------------------------------------------------------------------- 1 | // 2 | // BMKOpenPoiOption.h 3 | // UtilsComponent 4 | // 5 | // Created by wzy on 15/3/26. 6 | // Copyright (c) 2015年 baidu. All rights reserved. 7 | // 8 | 9 | #ifndef UtilsComponent_BMKOpenPoiOption_h 10 | #define UtilsComponent_BMKOpenPoiOption_h 11 | 12 | #import 13 | #import 14 | #import "BMKOpenOption.h" 15 | 16 | ///调起百度地图: poi详情参数类 17 | @interface BMKOpenPoiDetailOption : BMKOpenOption 18 | 19 | ///poi的uid 20 | @property (nonatomic, strong) NSString* poiUid; 21 | 22 | @end 23 | 24 | 25 | ///调起百度地图: poi周边参数类 26 | @interface BMKOpenPoiNearbyOption : BMKOpenOption 27 | 28 | ///中心点(经纬度) 29 | @property (nonatomic, assign) CLLocationCoordinate2D location; 30 | ///半径 31 | @property (nonatomic, assign) NSUInteger radius; 32 | ///关键词 33 | @property (nonatomic, strong) NSString* keyword; 34 | 35 | @end 36 | 37 | 38 | #endif 39 | 40 | -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Headers/BMKOpenRoute.h: -------------------------------------------------------------------------------- 1 | // 2 | // BMKOpenRoute.h 3 | // UtilsComponent 4 | // 5 | // Created by wzy on 15/3/26. 6 | // Copyright (c) 2015年 baidu. All rights reserved. 7 | // 8 | 9 | #ifndef UtilsComponent_BMKOpenRoute_h 10 | #define UtilsComponent_BMKOpenRoute_h 11 | #import "BMKOpenRouteOption.h" 12 | #import "BMKTypes.h" 13 | 14 | ///调起百度地图 -- 路线 15 | ///注:从iphone百度地图 8.2.0版本开始支持 16 | @interface BMKOpenRoute : NSObject 17 | 18 | /** 19 | * 调起百度地图步行路线页面 20 | * 注:从iphone百度地图 8.2.0版本开始支持 21 | *@param option 步行路线参数类(BMKOpenWalkingRouteOption) 22 | *@return 调起结果 23 | */ 24 | + (BMKOpenErrorCode)openBaiduMapWalkingRoute:(BMKOpenWalkingRouteOption *) option; 25 | 26 | /** 27 | * 调起百度地图公交路线页面 28 | * 注:从iphone百度地图 8.2.0版本开始支持 29 | *@param option 公交路线参数类(BMKOpenTransitRouteOption) 30 | *@return 调起结果 31 | */ 32 | + (BMKOpenErrorCode)openBaiduMapTransitRoute:(BMKOpenTransitRouteOption *) option; 33 | 34 | /** 35 | * 调起百度地图驾车路线检索页面 36 | * 注:从iphone百度地图 8.2.0版本开始支持 37 | *@param option 驾车路线参数类(BMKOpenDrivingRouteOption) 38 | *@return 调起结果 39 | */ 40 | + (BMKOpenErrorCode)openBaiduMapDrivingRoute:(BMKOpenDrivingRouteOption *) option; 41 | 42 | @end 43 | 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Headers/BMKOpenRouteOption.h: -------------------------------------------------------------------------------- 1 | // 2 | // BMKOpenRouteOption.h 3 | // UtilsComponent 4 | // 5 | // Created by wzy on 15/3/26. 6 | // Copyright (c) 2015年 baidu. All rights reserved. 7 | // 8 | 9 | #ifndef UtilsComponent_BMKOpenRouteOption_h 10 | #define UtilsComponent_BMKOpenRouteOption_h 11 | 12 | #import 13 | #import "BMKOpenOption.h" 14 | #import "BMKTypes.h" 15 | 16 | typedef enum 17 | { 18 | BMK_OPEN_TRANSIT_RECOMMAND = 3, //推荐 19 | BMK_OPEN_TRANSIT_TRANSFER_FIRST, //少换乘 20 | BMK_OPEN_TRANSIT_WALK_FIRST, //少步行 21 | BMK_OPEN_TRANSIT_NO_SUBWAY, //不坐地铁 22 | BMK_OPEN_TRANSIT_TIME_FIRST, //时间短 23 | }BMKOpenTransitPolicy; 24 | 25 | ///此类管理调起百度地图路线时传入的参数 26 | @interface BMKOpenRouteOption : BMKOpenOption 27 | 28 | ///起点 29 | @property (nonatomic, strong) BMKPlanNode *startPoint; 30 | ///终点 31 | @property (nonatomic, strong) BMKPlanNode *endPoint; 32 | 33 | @end 34 | 35 | ///此类管理调起百度地图步行路线时传入的参数 36 | @interface BMKOpenWalkingRouteOption : BMKOpenRouteOption 37 | 38 | @end 39 | 40 | ///此类管理调起百度地图驾车路线时传入的参数 41 | @interface BMKOpenDrivingRouteOption : BMKOpenRouteOption 42 | 43 | @end 44 | 45 | ///此类管理调起百度地图公共交通路线时传入的参数 46 | @interface BMKOpenTransitRouteOption : BMKOpenRouteOption 47 | 48 | //策略,默认:BMK_OPEN_TRANSIT_RECOMMAND(异常值,强制使用BMK_OPEN_TRANSIT_RECOMMAND) 49 | @property (nonatomic, assign) BMKOpenTransitPolicy openTransitPolicy; 50 | 51 | @end 52 | 53 | 54 | #endif 55 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | 15 | } 16 | 17 | /// 填充颜色 18 | @property (strong, nonatomic) UIColor *fillColor; 19 | /// 画笔颜色 20 | @property (strong, nonatomic) UIColor *strokeColor; 21 | /// 画笔宽度,默认为0 22 | @property (nonatomic) CGFloat lineWidth; 23 | /// path对象 24 | @property CGPathRef path; 25 | /// 是否为虚线样式 26 | @property (nonatomic) BOOL lineDash; 27 | 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | /** 131 | *使用OpenGLES 分段纹理绘制线 132 | @param partPt 分段直角坐标点 133 | @param lineWidth OpenGLES支持线宽尺寸 134 | @param textureIndexs 分段纹理索引,使用- (void)loadStrokeTextureImage:(UIImage *)textureImage;加载 135 | @param isFoucs 是否使用分段纹理绘制 136 | */ 137 | -(void)renderTexturedLinesWithPartPoints:(NSArray*)partPt lineWidth:(CGFloat)lineWidth textureIndexs:(NSArray*)textureIndexs isFocus:(BOOL) isFoucs; 138 | 139 | /** 140 | *使用OpenGLES 绘制区域 141 | @param points 直角坐标点 142 | @param pointCount 点个数 143 | @param fillColor 填充颜色 144 | @param usingTriangleFan YES对应GL_TRIANGLE_FAN, NO对应GL_TRIANGLES 145 | */ 146 | - (void)renderRegionWithPoints:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount fillColor:(UIColor *)fillColor usingTriangleFan:(BOOL)usingTriangleFan; 147 | /** 148 | *使用OpenGLES 绘制区域(支持凹多边形) 149 | @param points 直角坐标点 150 | @param pointCount 点个数 151 | @param fillColor 填充颜色 152 | @param usingTriangleFan YES对应GL_TRIANGLE_FAN, NO对应GL_TRIANGLES 153 | */ 154 | - (void)renderATRegionWithPoint:(BMKMapPoint *)points pointCount:(NSUInteger)pointCount fillColor:(UIColor *)fillColor usingTriangleFan:(BOOL)usingTriangleFan; 155 | 156 | /** 157 | *绘制函数(子类需要重载来实现) 158 | */ 159 | - (void)glRender; 160 | 161 | ///关联的纹理对象ID 162 | @property (nonatomic, readonly) GLuint strokeTextureID; 163 | 164 | /** 165 | *加载纹理图片 166 | @param textureImage 图片对象,opengl要求图片宽高必须是2的n次幂,如果图片对象为nil,则清空原有纹理 167 | @return openGL纹理ID, 若纹理加载失败返回0 168 | */ 169 | - (GLuint)loadStrokeTextureImage:(UIImage *)textureImage; 170 | 171 | /** 172 | *加载分段纹理绘制 所需的纹理图片 173 | @param textureImages 必须UIImage数组,opengl要求图片宽高必须是2的n次幂,否则,返回NO,无法分段纹理绘制 174 | @return 是否成功 175 | */ 176 | - (BOOL)loadStrokeTextureImages:(NSArray *)textureImages; 177 | 178 | @end 179 | 180 | 181 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | *@param coords 经纬度坐标点数组,这些点将被拷贝到生成的多边形对象中 26 | *@param count 点的个数 27 | *@return 新生成的多边形对象 28 | */ 29 | + (BMKPolygon *)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count; 30 | 31 | /** 32 | *重新设置多边形顶点 33 | *@param points 指定的直角坐标点数组 34 | *@param count 坐标点的个数 35 | *@return 是否设置成功 36 | */ 37 | - (BOOL)setPolygonWithPoints:(BMKMapPoint *)points count:(NSInteger) count; 38 | 39 | /** 40 | *重新设置多边形顶点 41 | *@param coords 指定的经纬度坐标点数组 42 | *@param count 坐标点的个数 43 | *@return 是否设置成功 44 | */ 45 | - (BOOL)setPolygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSInteger) count; 46 | 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | /** 32 | *重新设置折线坐标点 33 | *@param points 指定的直角坐标点数组 34 | *@param count 坐标点的个数 35 | *@return 是否设置成功 36 | */ 37 | - (BOOL)setPolylineWithPoints:(BMKMapPoint *)points count:(NSInteger) count; 38 | 39 | /** 40 | *重新设置折线坐标点 41 | *@param coords 指定的经纬度坐标点数组 42 | *@param count 坐标点的个数 43 | *@return 是否设置成功 44 | */ 45 | - (BOOL)setPolylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSInteger) count; 46 | 47 | 48 | #pragma mark - 以下方法和属性只适用于分段纹理绘制 49 | 50 | ///纹理索引数组 51 | @property (nonatomic, strong) NSArray *textureIndex; 52 | 53 | /** 54 | *分段纹理绘制,根据指定坐标点生成一段折线 55 | * 56 | *其对应的BMKPolylineView,必须使用 - (BOOL)loadStrokeTextureImages:(NSArray *)textureImages; 加载纹理图片;否则使用默认的灰色纹理绘制 57 | * 58 | *@param points 指定的直角坐标点数组 59 | *@param count 坐标点的个数 60 | *@param textureIndex 纹理索引数组,成员为NSNumber,且为非负数,负数按0处理 61 | *@return 新生成的折线对象 62 | */ 63 | + (BMKPolyline *)polylineWithPoints:(BMKMapPoint *)points count:(NSUInteger)count textureIndex:(NSArray*) textureIndex; 64 | 65 | /** 66 | *根据指定坐标点生成一段折线 67 | * 68 | *其对应的BMKPolylineView,必须使用 - (BOOL)loadStrokeTextureImages:(NSArray *)textureImages; 加载纹理图片;否则使用默认的灰色纹理绘制 69 | * 70 | *@param coords 指定的经纬度坐标点数组 71 | *@param count 坐标点的个数 72 | *@param textureIndex 纹理索引数组,成员为NSNumber,且为非负数,负数按0处理 73 | *@return 新生成的折线对象 74 | */ 75 | + (BMKPolyline *)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count textureIndex:(NSArray*) textureIndex; 76 | 77 | /** 78 | *重新设置折线坐标点 和 纹理索引 79 | *@param points 指定的直角坐标点数组 80 | *@param count 坐标点的个数 81 | *@param textureIndex 纹理索引数组,成员为NSNumber,且为非负数,负数按0处理 82 | *@return 是否设置成功 83 | */ 84 | - (BOOL)setPolylineWithPoints:(BMKMapPoint *)points count:(NSInteger) count textureIndex:(NSArray*) textureIndex; 85 | 86 | /** 87 | *重新设置折线坐标点 88 | *@param coords 指定的经纬度坐标点数组 89 | *@param count 坐标点的个数 90 | *@param textureIndex 纹理索引数组,成员为NSNumber,且为非负数,负数按0处理 91 | *@return 是否设置成功 92 | */ 93 | - (BOOL)setPolylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSInteger) count textureIndex:(NSArray*) textureIndex; 94 | 95 | @end 96 | -------------------------------------------------------------------------------- /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 | 28 | #pragma mark - 以下方法和属性只适用于分段纹理绘制 29 | 30 | /// 是否分段纹理绘制(突出显示),默认YES,YES:使用分段纹理绘制 NO:使用默认的灰色纹理绘制 31 | @property (nonatomic, assign) BOOL isFocus; 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Headers/BMKRadarComponent.h: -------------------------------------------------------------------------------- 1 | // 2 | // BMKRadarComponent.h 3 | // RadarComponent 4 | // 5 | // Created by wzy on 15/4/21. 6 | // Copyright (c) 2015年 baidu. All rights reserved. 7 | // 8 | 9 | #ifndef RadarComponent_BMKRadarComponent_h 10 | #define RadarComponent_BMKRadarComponent_h 11 | 12 | #import "BMKRadarManager.h" 13 | #import "BMKRadarOption.h" 14 | #import "BMKRadarResult.h" 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Headers/BMKRadarManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // BMKRadarManager.h 3 | // RadarComponent 4 | // 5 | // Created by wzy on 15/4/22. 6 | // Copyright (c) 2015年 baidu. All rights reserved. 7 | // 8 | 9 | #ifndef RadarComponent_BMKRadarManager_h 10 | #define RadarComponent_BMKRadarManager_h 11 | 12 | #import "BMKRadarOption.h" 13 | #import "BMKRadarResult.h" 14 | 15 | ///雷达delegate 16 | @protocol BMKRadarManagerDelegate 17 | 18 | @optional 19 | /* 20 | *开启自动上传,需实现该回调 21 | */ 22 | - (BMKRadarUploadInfo*)getRadarAutoUploadInfo; 23 | 24 | /** 25 | *返回雷达 上传结果 26 | *@param error 错误号,@see BMKRadarErrorCode 27 | */ 28 | - (void)onGetRadarUploadResult:(BMKRadarErrorCode) error; 29 | 30 | /** 31 | *返回雷达 清除我的信息结果 32 | *@param error 错误号,@see BMKRadarErrorCode 33 | */ 34 | - (void)onGetRadarClearMyInfoResult:(BMKRadarErrorCode) error; 35 | 36 | /** 37 | *返回雷达 查询周边的用户信息结果 38 | *@param result 结果,类型为@see BMKRadarNearbyResult 39 | *@param error 错误号,@see BMKRadarErrorCode 40 | */ 41 | - (void)onGetRadarNearbySearchResult:(BMKRadarNearbyResult*) result error:(BMKRadarErrorCode) error; 42 | 43 | @end 44 | 45 | 46 | ///周边雷达管理类 47 | @interface BMKRadarManager : NSObject 48 | 49 | /// 上传时用,上传前需设置,不设置自动生成userId;切换用户时,需手动清除原先用户的位置信息 50 | @property (nonatomic, strong) NSString* userId; 51 | 52 | /** 53 | *获取周边雷达实例,使用引用计数管理该实例内存 54 | */ 55 | + (BMKRadarManager*)getRadarManagerInstance; 56 | /** 57 | *release周边雷达实例,使用引用计数管理该实例内存 58 | */ 59 | + (void)releaseRadarManagerInstance; 60 | 61 | /** 62 | *添加周边雷达delegate,用于结果回调 63 | *不需要时,需要使用removeRadarManagerDelegate:移除,否则影响内存释放 64 | *@param delegate, 添加的id对象 65 | */ 66 | - (void)addRadarManagerDelegate:(id) delegate; 67 | 68 | /** 69 | *移除周边雷达delegate,取消结果回调 70 | *@param delegate, 需要移除的id对象 71 | */ 72 | - (void)removeRadarManagerDelegate:(id) delegate; 73 | 74 | /** 75 | *启动自动上传用户位置信息 76 | *必须实现回调方法@see getRadarAutoUploadInfo,获取@see BMKRadarUploadInfo 77 | *@param interval 时间间隔,不小于5s(小于强制设为5s) 78 | */ 79 | - (void)startAutoUpload:(NSTimeInterval) interval; 80 | 81 | /** 82 | *停止自动上传用户位置信息 83 | */ 84 | - (void)stopAutoUpload; 85 | 86 | /** 87 | *单次上传用户位置信息 88 | *上传时间间隔不小于5s,否则return NO 89 | *返回结果回调:@see onGetRadarUploadResult: 90 | *@param info 位置信息 91 | */ 92 | - (BOOL)uploadInfoRequest:(BMKRadarUploadInfo*) info; 93 | 94 | /** 95 | *清除我的位置信息 96 | *返回结果回调:@see onGetRadarClearMyInfoResult: 97 | */ 98 | - (BOOL)clearMyInfoRequest; 99 | 100 | /** 101 | *查询周边的用户信息 102 | *返回结果回调:@see onGetRadarNearbySearchResult:error: 103 | *@param option 查询参数: 类型为@see BMKRadarNearbySearchOption 104 | */ 105 | - (BOOL)getRadarNearbySearchRequest:(BMKRadarNearbySearchOption*) option; 106 | 107 | 108 | @end 109 | 110 | 111 | #endif 112 | -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Headers/BMKRadarOption.h: -------------------------------------------------------------------------------- 1 | // 2 | // BMKRadarOption.h 3 | // RadarComponent 4 | // 5 | // Created by wzy on 15/4/22. 6 | // Copyright (c) 2015年 baidu. All rights reserved. 7 | // 8 | 9 | #ifndef RadarComponent_BMKRadarOption_h 10 | #define RadarComponent_BMKRadarOption_h 11 | 12 | #import 13 | 14 | ///用户信息类 15 | @interface BMKRadarUploadInfo : NSObject 16 | 17 | ///地址坐标,百度经纬度坐标 (必须) 18 | @property (nonatomic, assign) CLLocationCoordinate2D pt; 19 | 20 | ///扩展信息,和该用户相关的信息(可选) 21 | @property (nonatomic, strong) NSString* extInfo; 22 | 23 | @end 24 | 25 | typedef enum{ 26 | BMK_RADAR_SORT_TYPE_DISTANCE_FROM_NEAR_TO_FAR = 0,//距离由近及远排序 27 | BMK_RADAR_SORT_TYPE_DISTANCE_FROM_FAR_TO_NEAR,//距离由远及近排序 28 | BMK_RADAR_SORT_TYPE_TIME_FROM_PAST_TO_RECENT,//时间由过去到现在排序 29 | BMK_RADAR_SORT_TYPE_TIME_FROM_RECENT_TO_PAST,//时间由现在到过去排序 30 | }BMKRadarSortType; 31 | 32 | ///时间区间 33 | @interface BMKDateRange : NSObject 34 | 35 | ///起始时间 36 | @property (nonatomic, strong) NSDate* startDate; 37 | ///终止时间 38 | @property (nonatomic, strong) NSDate* endDate; 39 | 40 | @end 41 | 42 | ///查询周边的用户信息参数类 43 | @interface BMKRadarNearbySearchOption : NSObject 44 | 45 | ///地址坐标,百度经纬度坐标 (不设置,默认使用最后一次上传的坐标) 46 | @property (nonatomic, assign) CLLocationCoordinate2D centerPt; 47 | ///检索半径,单位米,默认1000 48 | @property (nonatomic, assign) NSUInteger radius; 49 | ///分页索引,可选,默认为0 50 | @property (nonatomic, assign) NSInteger pageIndex; 51 | ///页容量,可选,默认为50 52 | @property (nonatomic, assign) NSInteger pageCapacity; 53 | ///排序类型:默认按距离由近及远排序,BMK_RADAR_SORT_TYPE_DISTANCE_FROM_NEAR_TO_FAR 54 | @property (nonatomic, assign) BMKRadarSortType sortType; 55 | ///时间区间,可选,获取该时间区间内的用户信息 56 | @property (nonatomic, strong) BMKDateRange* dateRange; 57 | 58 | 59 | @end 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Headers/BMKRadarResult.h: -------------------------------------------------------------------------------- 1 | // 2 | // BMKRadarResult.h 3 | // RadarComponent 4 | // 5 | // Created by wzy on 15/4/22. 6 | // Copyright (c) 2015年 baidu. All rights reserved. 7 | // 8 | 9 | #ifndef RadarComponent_BMKRadarResult_h 10 | #define RadarComponent_BMKRadarResult_h 11 | 12 | #import "BMKRadarOption.h" 13 | 14 | ///雷达结果码 15 | typedef enum { 16 | BMK_RADAR_NO_ERROR = 0,///<成功 17 | BMK_RADAR_NO_RESULT,///<无结果 18 | BMK_RADAR_AK_NOT_BIND,/// 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Headers/BMKRouteSearchType.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMKRouteSearchType.h 3 | * BMapKit 4 | * 5 | * Copyright 2011 Baidu Inc. All rights reserved. 6 | * 7 | */ 8 | 9 | #import 10 | #import 11 | #import "BMKPoiSearchType.h" 12 | #import "BMKTypes.h" 13 | ///路段类型枚举 14 | typedef enum 15 | { 16 | BMK_BUSLINE = 0,///公交 17 | BMK_SUBWAY = 1,///地铁 18 | BMK_WAKLING = 2,///步行 19 | }BMKTransitStepType; 20 | 21 | typedef enum 22 | { 23 | BMK_TRANSIT_TIME_FIRST = 3, //较快捷(公交) 24 | BMK_TRANSIT_TRANSFER_FIRST = 4, //少换乘(公交) 25 | BMK_TRANSIT_WALK_FIRST = 5, //少步行(公交) 26 | BMK_TRANSIT_NO_SUBWAY = 6, //不坐地铁 27 | }BMKTransitPolicy; 28 | 29 | typedef enum 30 | { 31 | BMK_DRIVING_BLK_FIRST = -1, //躲避拥堵(自驾) 32 | BMK_DRIVING_TIME_FIRST = 0, //最短时间(自驾) 33 | BMK_DRIVING_DIS_FIRST = 1, //最短路程(自驾) 34 | BMK_DRIVING_FEE_FIRST, //少走高速(自驾) 35 | 36 | }BMKDrivingPolicy; 37 | 38 | typedef enum 39 | { 40 | BMK_DRIVING_REQUEST_TRAFFICE_TYPE_NONE = 0, //不带路况 41 | BMK_DRIVING_REQUEST_TRAFFICE_TYPE_PATH_AND_TRAFFICE = 1, //道路和路况 42 | }BMKDrivingRequestTrafficType; 43 | 44 | ///打车信息类 45 | @interface BMKTaxiInfo : NSObject{ 46 | NSString* _desc; 47 | int _distance; 48 | int _duration; 49 | float _perKMPrice; 50 | int _totalPrice; 51 | } 52 | ///路线打车描述信息 53 | @property (nonatomic, strong) NSString* desc; 54 | ///总路程,单位: 米 55 | @property (nonatomic) int distance; 56 | ///总耗时,单位: 秒 57 | @property (nonatomic) int duration; 58 | ///每千米单价,单位 元 59 | @property (nonatomic) float perKMPrice; 60 | ///总价 , 单位: 元 61 | @property (nonatomic) int totalPrice; 62 | 63 | @end 64 | 65 | ///路线换乘方案里的交通工具信息类 66 | @interface BMKVehicleInfo : NSObject{ 67 | NSString* _uid; 68 | NSString* _title; 69 | int _passStationNum; 70 | int _totalPrice; 71 | int _zonePrice; 72 | } 73 | ///该交通路线的标识 74 | @property (nonatomic, strong) NSString* uid; 75 | ///该交通路线的名称 76 | @property (nonatomic, strong) NSString* title; 77 | ///该交通路线的所乘站数 78 | @property (nonatomic) int passStationNum; 79 | ///该交通路线的全程价格 80 | @property (nonatomic) int totalPrice; 81 | ///该交通路线的所乘区间的区间价格 82 | @property (nonatomic) int zonePrice; 83 | @end 84 | 85 | ///此类代表一个时间段,每个属性都是一个时间段。 86 | @interface BMKTime : NSObject{ 87 | int _dates; 88 | int _hours; 89 | int _minutes; 90 | int _seconds; 91 | 92 | } 93 | 94 | ///时间段,单位(天) 95 | @property (nonatomic) int dates; 96 | ///时间段,单位(小时) 97 | @property (nonatomic) int hours; 98 | ///时间段,单位(分) 99 | @property (nonatomic) int minutes; 100 | ///时间段,单位(秒) 101 | @property (nonatomic) int seconds; 102 | @end 103 | 104 | ///此类表示路线中的一节点,节点包括:路线起终点,公交站点等 105 | @interface BMKRouteNode : NSObject{ 106 | NSString* _uid; 107 | NSString* _title; 108 | CLLocationCoordinate2D _location; 109 | } 110 | ///该节点uid 111 | @property (nonatomic, strong) NSString* uid; 112 | ///该节点的名称 113 | @property (nonatomic, strong) NSString* title; 114 | ///该节点的坐标 115 | @property (nonatomic) CLLocationCoordinate2D location; 116 | @end 117 | ///此类表示公交站点信息 118 | @interface BMKBusStation : BMKRouteNode 119 | @end 120 | 121 | 122 | ///此类表示路线中的一个路段(基类) 123 | @interface BMKRouteStep : NSObject{ 124 | int _distance; 125 | int _duration; 126 | BMKMapPoint* _points; 127 | int _pointsCount; 128 | } 129 | ///路段长度 单位: 米 130 | @property (nonatomic) int distance; 131 | ///路段耗时 单位: 秒 132 | @property (nonatomic) int duration; 133 | ///路段所经过的地理坐标集合 134 | @property (nonatomic) BMKMapPoint* points; 135 | ///路段所经过的地理坐标集合内点的个数 136 | @property (nonatomic) int pointsCount; 137 | 138 | @end 139 | ///此类表示公交线路中的一个路段 140 | @interface BMKBusStep : BMKRouteStep 141 | @end 142 | ///此类表示公交换乘路线中的一个路段 143 | @interface BMKTransitStep : BMKRouteStep{ 144 | BMKRouteNode* _entrace; 145 | BMKRouteNode* _exit; 146 | NSString* _instruction; 147 | BMKTransitStepType _stepType; 148 | BMKVehicleInfo* _vehicleInfo; 149 | } 150 | ///路段入口信息 151 | @property (nonatomic, strong) BMKRouteNode* entrace; 152 | ///路段出口信息 153 | @property (nonatomic, strong) BMKRouteNode* exit; 154 | ///路段换乘说明 155 | @property (nonatomic, strong) NSString* instruction; 156 | ///路段类型 157 | @property (nonatomic) BMKTransitStepType stepType; 158 | ///当路段为公交路段或地铁路段时,可以获取交通工具信息 159 | @property (nonatomic, strong) BMKVehicleInfo* vehicleInfo; 160 | @end 161 | ///此类表示驾车路线中的一个路段 162 | @interface BMKDrivingStep : BMKRouteStep{ 163 | int _direction; 164 | BMKRouteNode* _entrace; 165 | NSString* _entraceInstruction; 166 | BMKRouteNode* _exit; 167 | NSString* _exitInstruction; 168 | NSString* _instruction; 169 | int _numTurns; 170 | } 171 | ///该路段起点方向值 172 | @property (nonatomic) int direction; 173 | ///路段入口信息 174 | @property (nonatomic, strong) BMKRouteNode* entrace; 175 | ///路段入口的指示信息 176 | @property (nonatomic, strong) NSString* entraceInstruction; 177 | ///路段出口信息 178 | @property (nonatomic, strong) BMKRouteNode* exit; 179 | ///路段出口指示信息 180 | @property (nonatomic, strong) NSString* exitInstruction; 181 | ///路段总体指示信息 182 | @property (nonatomic, strong) NSString* instruction; 183 | ///路段需要转弯数 184 | @property (nonatomic) int numTurns; 185 | ///路段是否有路况信息 186 | @property (nonatomic) BOOL hasTrafficsInfo; 187 | ///路段的路况信息,成员为NSNumber。0:无数据;1:畅通;2:缓慢;3:拥堵 188 | @property (nonatomic, strong) NSArray* traffics; 189 | 190 | @end 191 | ///此类表示步行路线中的一个路段 192 | @interface BMKWalkingStep : BMKRouteStep{ 193 | int _direction; 194 | BMKRouteNode* _entrace; 195 | NSString* _entraceInstruction; 196 | BMKRouteNode* _exit; 197 | NSString* _exitInstruction; 198 | NSString* _instruction; 199 | } 200 | ///该路段起点方向值 201 | @property (nonatomic) int direction; 202 | ///路段入口信息 203 | @property (nonatomic, strong) BMKRouteNode* entrace; 204 | ///获取该路段换乘说明 205 | @property (nonatomic, strong) NSString* entraceInstruction; 206 | ///路段出口信息 207 | @property (nonatomic, strong) BMKRouteNode* exit; 208 | ///获取该路段换乘说明 209 | @property (nonatomic, strong) NSString* exitInstruction; 210 | ///获取该路段换乘说明 211 | @property (nonatomic, strong) NSString* instruction; 212 | @end 213 | 214 | 215 | ///此类表示路线数据结构的基类,表示一条路线,路线可能包括:路线规划中的换乘/驾车/步行路线 216 | ///此类为路线数据结构的基类,一般关注其子类对象即可,无需直接生成该类对象 217 | @interface BMKRouteLine : NSObject{ 218 | int _distance; 219 | BMKTime* _duration; 220 | BMKRouteNode* _starting; 221 | BMKRouteNode* _terminal; 222 | NSString* _title; 223 | NSArray* _steps; 224 | } 225 | ///路线长度 单位: 米 226 | @property (nonatomic) int distance; 227 | ///路线耗时 单位: 秒 228 | @property (nonatomic, strong) BMKTime* duration; 229 | ///路线起点信息 230 | @property (nonatomic, strong) BMKRouteNode* starting; 231 | ///路线终点信息 232 | @property (nonatomic, strong) BMKRouteNode* terminal; 233 | ///路线名称(预留字段,现为空) 234 | @property (nonatomic, strong) NSString* title; 235 | ///路线中的所有路段,成员类型为BMKWalkingStep,BMKDrivingStep,BMKTransitStep 236 | @property (nonatomic, strong) NSArray* steps; 237 | @end 238 | ///此类表示一个换乘路线,换乘路线将根据既定策略调配多种交通工具 239 | @interface BMKTransitRouteLine : BMKRouteLine 240 | @end 241 | ///此类表示一条驾车路线 242 | @interface BMKDrivingRouteLine : BMKRouteLine{ 243 | bool _isSupportTraffic;//从2.7.0开始,废弃 244 | NSArray* _wayPoints; 245 | } 246 | ///该路线所在区域是否含有交通流量信息,从2.7.0开始,废弃 247 | @property (nonatomic) bool isSupportTraffic; 248 | ///路线途经点列表,成员类型为BMKPlanNode 249 | @property (nonatomic, strong) NSArray* wayPoints; 250 | @end 251 | ///此类表示一条步行路线 252 | @interface BMKWalkingRouteLine : BMKRouteLine 253 | @end 254 | 255 | ///路线搜索地址结果类.当输入的起点或终点有多个地点选择时,或者选定的城市没有此地点,但其它城市有(驾乘或步行),返回该类的实例 256 | @interface BMKSuggestAddrInfo : NSObject 257 | { 258 | NSArray* _startPoiList; 259 | NSArray* _endPoiList; 260 | NSArray* _startCityList; 261 | NSArray* _endCityList; 262 | NSArray* _wayPointsPoiList; 263 | NSArray* _wayPointsCityList; 264 | } 265 | ///起点POI列表,成员类型为BMKPoiInfo 266 | @property (nonatomic, strong) NSArray* startPoiList; 267 | ///起点城市列表,成员类型为BMKCityListInfo,如果输入的地点在本城市没有而在其它城市有,则返回其它城市的信息 268 | @property (nonatomic, strong) NSArray* startCityList; 269 | ///终点POI列表,成员类型为BMKPoiInfo 270 | @property (nonatomic, strong) NSArray* endPoiList; 271 | ///终点城市列表,成员类型为BMKCityListInfo,如果输入的地点在本城市没有而在其它城市有,则返回其它城市的信息 272 | @property (nonatomic, strong) NSArray* endCityList; 273 | ///途经点POI列表,成员类型为NSArray 274 | @property (nonatomic, strong) NSArray* wayPointPoiList; 275 | ///途经点城市列表,成员类型为NSArray,如果输入的地点在本城市没有而在其它城市有,则返回其它城市的信息 276 | @property (nonatomic, strong) NSArray* wayPointCityList; 277 | @end 278 | 279 | ///此类表示公共交通信息查询结果 280 | @interface BMKBusLineResult : NSObject{ 281 | NSString* _busCompany; 282 | NSString* _busLineName; 283 | NSString* _uid; 284 | NSString* _startTime; 285 | NSString* _endTime; 286 | int _isMonTicket; 287 | NSArray* _busStations; 288 | NSArray* _busSteps; 289 | } 290 | ///公交公司名称 291 | @property (nonatomic, strong) NSString* busCompany; 292 | ///公交线路名称 293 | @property (nonatomic, strong) NSString* busLineName; 294 | ///公交线路uid 295 | @property (nonatomic, strong) NSString* uid; 296 | ///公交路线首班车时间 297 | @property (nonatomic, strong) NSString* startTime; 298 | ///公交路线末班车时间 299 | @property (nonatomic, strong) NSString* endTime; 300 | ///公交是线是否有月票 301 | @property (nonatomic) int isMonTicket; 302 | ///所有公交站点信息,成员类型为BMKBusStation 303 | @property (nonatomic, strong) NSArray* busStations; 304 | ///公交路线分段信息,成员类型为BMKBusStep 305 | @property (nonatomic, strong) NSArray* busSteps; 306 | @end 307 | 308 | ///此类表示步行路线结果 309 | @interface BMKWalkingRouteResult : NSObject{ 310 | BMKTaxiInfo* _taxiInfo; 311 | BMKSuggestAddrInfo* _suggestAddrResult; 312 | NSArray* _routes; 313 | } 314 | ///该路线打车信息 315 | @property (nonatomic, strong) BMKTaxiInfo* taxiInfo; 316 | ///返回起点或终点的地址信息结果 317 | @property (nonatomic, strong) BMKSuggestAddrInfo* suggestAddrResult; 318 | ///步行结果,现在只返回一条。成员类型为BMKWalkingRouteLine 319 | @property (nonatomic, strong) NSArray* routes; 320 | @end 321 | ///此类表示驾车路线结果 322 | @interface BMKDrivingRouteResult : NSObject{ 323 | BMKTaxiInfo* _taxiInfo; 324 | BMKSuggestAddrInfo* _suggestAddrResult; 325 | NSArray* _routes; 326 | } 327 | ///该路线打车信息 328 | @property (nonatomic, strong) BMKTaxiInfo* taxiInfo; 329 | ///返回起点或终点的地址信息结果 330 | @property (nonatomic, strong) BMKSuggestAddrInfo* suggestAddrResult; 331 | ///驾车结果,支持多路线。成员类型为BMKDrivingRouteLine 332 | @property (nonatomic, strong) NSArray* routes; 333 | @end 334 | 335 | @interface BMKTransitRouteResult : NSObject{ 336 | BMKTaxiInfo* _taxiInfo; 337 | BMKSuggestAddrInfo* _suggestAddrResult; 338 | NSArray* _routes; 339 | } 340 | ///该路线打车信息 341 | @property (nonatomic, strong) BMKTaxiInfo* taxiInfo; 342 | ///返回起点或终点的地址信息结果 343 | @property (nonatomic, strong) BMKSuggestAddrInfo* suggestAddrResult; 344 | ///方案数组,成员类型为BMKTransitRouteLine 345 | @property (nonatomic, strong) NSArray* routes; 346 | 347 | @end 348 | 349 | 350 | 351 | -------------------------------------------------------------------------------- /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" -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | ///poiId列表,成员是NSString 26 | @property (nonatomic, strong) NSArray* poiIdList; 27 | ///pt列表,成员是:封装成NSValue的CLLocationCoordinate2D 28 | @property (nonatomic, strong) NSArray* ptList; 29 | 30 | @end 31 | 32 | @protocol BMKSuggestionSearchDelegate; 33 | ///sug搜索服务 34 | @interface BMKSuggestionSearch : NSObject 35 | /// 检索模块的Delegate,此处记得不用的时候需要置nil,否则影响内存的释放 36 | @property (nonatomic, weak) id delegate; 37 | 38 | /** 39 | *搜索建议检索 40 | *@param suggestionSearchOption sug检索信息类 41 | *异步函数,返回结果在BMKSuggestionSearchDelegate的onGetSuggestionResult通知 42 | *@return 成功返回YES,否则返回NO 43 | */ 44 | - (BOOL)suggestionSearch:(BMKSuggestionSearchOption*)suggestionSearchOption; 45 | 46 | @end 47 | 48 | ///搜索delegate,用于获取搜索结果 49 | @protocol BMKSuggestionSearchDelegate 50 | @optional 51 | /** 52 | *返回suggestion搜索结果 53 | *@param searcher 搜索对象 54 | *@param result 搜索结果 55 | *@param error 错误号,@see BMKSearchErrorCode 56 | */ 57 | - (void)onGetSuggestionResult:(BMKSuggestionSearch*)searcher result:(BMKSuggestionResult*)result errorCode:(BMKSearchErrorCode)error; 58 | 59 | 60 | @end 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | #import "BMKOpenPoi.h" 13 | #import "BMKOpenRoute.h" 14 | #import "BMKOpenPoiOption.h" 15 | #import "BMKOpenRouteOption.h" 16 | #import "BMKFavPoiManager.h" 17 | -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Headers/BMapKit.h: -------------------------------------------------------------------------------- 1 | /* 2 | * BMapKit.h 3 | * copyright 2015 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 | #import "BMKRadarComponent.h" 13 | -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/files/Beijing, China.gpx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Beijing, China 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/files/DVDirectory.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/files/DVDirectory.cfg -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/files/DVDirectory_Retina.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/files/DVDirectory_Retina.cfg -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/files/DVHotMap.cfg: -------------------------------------------------------------------------------- 1 | { 2 | "ver":3, 3 | "cities": 4 | [ 5 | {"i":131,"n":"北京市","bl": 12893020.92, "bb": 4781550.32, "br": 13022044.92, "bt": 4899310.32}, 6 | {"i":289,"n":"上海市","bl": 13478516.92, "bb": 3608446.32, "br": 13566964.92, "bt": 3672830.32}, 7 | {"i":257,"n":"广州市","bl": 12574260.92, "bb": 2604350.32, "br": 12640436.92, "bt": 2668222.32}, 8 | {"i":340,"n":"深圳市","bl": 12662868.92, "bb": 2556766.32, "br": 12730708.92, "bt": 2599518.32}, 9 | {"i":179,"n":"杭州市","bl": 13351892.92, "bb": 3502942.32, "br": 13423700.92, "bt": 3547614.32}, 10 | {"i":176,"n":"太原市","bl": 12487124.92, "bb": 4508254.32, "br": 12543796.92, "bt": 4560446.32}, 11 | {"i":332,"n":"天津市","bl": 13012180.92, "bb": 4689758.32, "br": 13110484.92, "bt": 4745822.32}, 12 | {"i":288,"n":"济南市","bl": 12993108.92, "bb": 4340606.32, "br": 13087956.92, "bt": 4397694.32}, 13 | {"i":224,"n":"苏州市","bl": 13377780.92, "bb": 3618878.32, "br": 13451572.92, "bt": 3705534.32}, 14 | {"i":194,"n":"厦门市","bl": 13107028.92, "bb": 2778878.32, "br": 13188308.92, "bt": 2834942.32}, 15 | {"i":236,"n":"青岛市","bl": 13366836.92, "bb": 4261630.32, "br": 13419476.92, "bt": 4333950.32}, 16 | {"i":268,"n":"郑州市","bl": 12628724.92, "bb": 4088862.32, "br": 12685300.92, "bt": 4123422.32}, 17 | {"i":75,"n":"成都市","bl": 11550516.92, "bb": 3543262.32, "br": 11622324.92, "bt": 3597790.32}, 18 | {"i":218,"n":"武汉市","bl": 12695220.92, "bb": 3523934.32, "br": 12756148.92, "bt": 3578590.32}, 19 | {"i":315,"n":"南京市","bl": 13197364.92, "bb": 3725150.32, "br": 13256884.92, "bt": 3782494.32}, 20 | {"i":233,"n":"西安市","bl": 12106228.92, "bb": 4019550.32, "br": 12158836.92, "bt": 4062046.32}, 21 | {"i":127,"n":"合肥市","bl": 13033076.92, "bb": 3697886.32, "br": 13082996.92, "bt": 3744606.32}, 22 | {"i":300,"n":"福州市","bl": 13258484.92, "bb": 2964830.32, "br": 13312756.92, "bt": 3016030.32}, 23 | {"i":158,"n":"长沙市","bl": 12562932.92, "bb": 3239966.32, "br": 12607860.92, "bt": 3265502.32}, 24 | {"i":150,"n":"石家庄市","bl": 12724788.92, "bb": 4541342.32, "br": 12774580.92, "bt": 4578718.32}, 25 | {"i":132,"n":"重庆市","bl": 11840820.92, "bb": 3400990.32, "br": 11881012.92, "bt": 3445534.32}, 26 | {"i":104,"n":"昆明市","bl": 11420468.92, "bb": 2843294.32, "br": 11464500.92, "bt": 2877726.32}, 27 | {"i":261,"n":"南宁市","bl":12036148.92,"bb":2564894.32,"br":12082612.92,"bt":2609310.32}, 28 | {"i":163,"n":"南昌市","bl": 12877940.92, "bb": 3291614.32, "br": 12923508.92, "bt": 3328734.32}, 29 | {"i":53,"n":"长春市","bl": 13926516.92, "bb": 5396574.32, "br": 13983348.92, "bt": 5446494.32}, 30 | {"i":146,"n":"贵阳市","bl": 11854964.92, "bb": 3024990.32, "br": 11901300.92, "bt": 3072606.32}, 31 | {"i":180,"n":"宁波市","bl": 13508084.92, "bb": 3449630.32, "br": 13576052.92, "bt": 3491102.32}, 32 | {"i":48,"n":"哈尔滨市","bl": 14051444.92, "bb": 5685534.32, "br": 14123764.92, "bt": 5737886.32}, 33 | {"i":92,"n":"乌鲁木齐市","bl": 9718644.92, "bb": 5391262.32, "br": 9779444.92, "bt": 5444894.32}, 34 | {"i":317,"n":"无锡市","bl": 13362487.810000, "bb": 3664426.860000, "br": 13422487.810000, "bt": 3704426.860000}, 35 | {"i":321,"n":"呼和浩特市","bl": 12400108.610000, "bb": 4938853.060000, "br": 12460108.610000, "bt": 4978853.060000}, 36 | {"i":178,"n":"温州市","bl": 13405366.190000, "bb": 3209086.950000, "br": 13465366.190000, "bt": 3249086.950000}, 37 | {"i":125,"n":"海口市","bl": 12252102.320000, "bb": 2240885.320000, "br": 12312102.320000, "bt": 2280885.320000}, 38 | {"i":316,"n":"徐州市","bl": 13015462.300000, "bb": 4021039.600000, "br": 13075462.300000, "bt": 4061039.600000}, 39 | {"i":119,"n":"东莞市","bl": 12634225.340000, "bb": 2600346.880000, "br": 12694225.340000, "bt": 2640346.880000}, 40 | {"i":347,"n":"连云港市","bl": 13236519.120000, "bb": 4065375.220000, "br": 13296519.120000, "bt": 4105375.220000}, 41 | {"i":138,"n":"佛山市","bl": 12564159.160000, "bb": 2599393.220000, "br": 12624159.160000, "bt": 2639393.220000}, 42 | {"i":307,"n":"保定市","bl": 12826963.350000, "bb": 4658360.500000, "br": 12886963.350000, "bt": 4698360.500000}, 43 | {"i":36,"n":"兰州市","bl": 11527683.250000, "bb": 4264074.360000, "br": 11587683.250000, "bt": 4304074.360000}, 44 | {"i":58,"n":"沈阳市","bl": 13710624.940000, "bb": 5083604.930000, "br": 13770624.940000, "bt": 5123604.930000}, 45 | {"i":134,"n":"泉州市","bl": 13172675.600000, "bb": 2825515.500000, "br": 13232675.600000, "bt": 2865515.500000}, 46 | {"i":167,"n":"大连市","bl": 13505871.310000, "bb": 4667215.520000, "br": 13565871.310000, "bt": 4707215.520000}, 47 | {"i":153,"n":"洛阳市","bl": 12487737.400000, "bb": 4072892.140000, "br": 12547737.400000, "bt": 4112892.140000}, 48 | {"i":160,"n":"镇江市","bl": 13267907.460000, "bb": 3747190.940000, "br": 13327907.460000, "bt": 3787190.940000}, 49 | {"i":162,"n":"淮安市","bl": 13220523.910000, "bb": 3932219.560000, "br": 13280523.910000, "bt": 3972219.560000}, 50 | {"i":349,"n":"九江市","bl": 12883184.520000, "bb": 3426185.890000, "br": 12943184.520000, "bt": 3466185.890000}, 51 | {"i":161,"n":"南通市","bl": 13425756.380000, "bb": 3722375.180000, "br": 13485756.380000, "bt": 3762375.180000}, 52 | {"i":360,"n":"银川市","bl": 11792979.760000, "bb": 4603825.040000, "br": 11852979.760000, "bt": 4643825.040000}, 53 | {"i":142,"n":"桂林市","bl": 12244323.040000, "bb": 2869670.320000, "br": 12304323.040000, "bt": 2909670.320000}, 54 | {"i":149,"n":"沧州市","bl": 12979360.980000, "bb": 4574826.050000, "br": 13039360.980000, "bt": 4614826.050000}, 55 | {"i":191,"n":"廊坊市","bl": 12961526.930000, "bb": 4748788.230000, "br": 13021526.930000, "bt": 4788788.230000}, 56 | {"i":348,"n":"常州市","bl": 13326465.000000, "bb": 3690635.190000, "br": 13386465.000000, "bt": 3730635.190000}, 57 | {"i":187,"n":"中山市","bl": 12596223.350000, "bb": 2540577.370000, "br": 12656223.350000, "bt": 2580577.370000}, 58 | {"i":287,"n":"潍坊市","bl": 13233041.640000, "bb": 4353827.070000, "br": 13293041.640000, "bt": 4393827.070000}, 59 | {"i":305,"n":"柳州市","bl": 12150978.590000, "bb": 2755794.040000, "br": 12210978.590000, "bt": 2795794.040000}, 60 | {"i":308,"n":"周口市","bl": 12733375.120000, "bb": 3934511.680000, "br": 12793375.120000, "bt": 3974511.680000}, 61 | {"i":333,"n":"金华市","bl": 13289808.730000, "bb": 3347777.040000, "br": 13349808.730000, "bt": 3387777.040000}, 62 | {"i":234,"n":"临沂市","bl": 13143777.400000, "bb": 4128945.460000, "br": 13203777.400000, "bt": 4168945.460000}, 63 | {"i":55,"n":"吉林市","bl": 14059253.890000, "bb": 5395759.910000, "br": 14119253.890000, "bt": 5435759.910000}, 64 | {"i":334,"n":"嘉兴市","bl": 13413135.590000, "bb": 3561369.510000, "br": 13473135.590000, "bt": 3601369.510000}, 65 | {"i":301,"n":"惠州市","bl": 12706274.780000, "bb": 2608830.720000, "br": 12766274.780000, "bt": 2648830.720000}, 66 | {"i":66,"n":"西宁市","bl": 11298876.410000, "bb": 4343410.220000, "br": 11358876.410000, "bt": 4383410.220000}, 67 | {"i":326,"n":"烟台市","bl": 13474264.830000, "bb": 4467886.610000, "br": 13534264.830000, "bt": 4507886.610000}, 68 | {"i":265,"n":"唐山市","bl": 13126264.690000, "bb": 4767766.500000, "br": 13186264.690000, "bt": 4807766.500000}, 69 | {"i":244,"n":"台州市","bl": 13488854.290000, "bb": 3292807.610000, "br": 13548854.290000, "bt": 3332807.610000}, 70 | {"i":151,"n":"邯郸市","bl": 12714293.860000, "bb": 4339069.600000, "br": 12774293.860000, "bt": 4379069.600000}, 71 | {"i":293,"n":"绍兴市","bl": 13394438.130000, "bb": 3462292.230000, "br": 13454438.130000, "bt": 3502292.230000}, 72 | {"i":157,"n":"荆州市","bl": 12464843.300000, "bb": 3504596.710000, "br": 12524843.300000, "bt": 3544596.710000}, 73 | {"i":140,"n":"珠海市","bl": 12611851.330000, "bb": 2506069.550000, "br": 12671851.330000, "bt": 2546069.550000}, 74 | {"i":152,"n":"新乡市","bl": 12650840.640000, "bb": 4160790.270000, "br": 12710840.640000, "bt": 4200790.270000}, 75 | {"i":223,"n":"盐城市","bl": 13345056.760000, "bb": 3902107.560000, "br": 13405056.760000, "bt": 3942107.560000}, 76 | {"i":220,"n":"岳阳市","bl": 12565513.920000, "bb": 3382693.340000, "br": 12625513.920000, "bt": 3422693.340000}, 77 | {"i":303,"n":"汕头市","bl": 12964315.300000, "bb": 2641400.920000, "br": 13024315.300000, "bt": 2681400.920000}, 78 | {"i":309,"n":"南阳市","bl": 12498348.170000, "bb": 3853326.130000, "br": 12558348.170000, "bt": 3893326.130000}, 79 | {"i":286,"n":"济宁市","bl": 12950082.650000, "bb": 4173680.010000, "br": 13010082.650000, "bt": 4213680.010000}, 80 | {"i":277,"n":"宿迁市","bl": 13138893.220000, "bb": 3978280.610000, "br": 13198893.220000, "bt": 4018280.610000}, 81 | {"i":346,"n":"扬州市","bl": 13264784.040000, "bb": 3773942.000000, "br": 13324784.040000, "bt": 3813942.000000}, 82 | {"i":302,"n":"江门市","bl": 12557936.300000, "bb": 2544165.550000, "br": 12617936.300000, "bt": 2584165.550000}, 83 | {"i":199,"n":"阳江市","bl": 12435359.340000, "bb": 2460045.770000, "br": 12495359.340000, "bt": 2500045.770000}, 84 | {"i":354,"n":"淄博市","bl": 13112425.710000, "bb": 4366080.450000, "br": 13172425.710000, "bt": 4406080.450000}, 85 | {"i":338,"n":"肇庆市","bl": 12491313.980000, "bb": 2604634.130000, "br": 12551313.980000, "bt": 2644634.130000}, 86 | {"i":365,"n":"赣州市","bl": 12764746.090000, "bb": 2941136.590000, "br": 12824746.090000, "bt": 2981136.590000}, 87 | {"i":266,"n":"邢台市","bl": 12718500.990000, "bb": 4402806.700000, "br": 12778500.990000, "bt": 4442806.700000}, 88 | {"i":159,"n":"衡阳市","bl": 12502909.750000, "bb": 3071248.080000, "br": 12562909.750000, "bt": 3111248.080000}, 89 | {"i":238,"n":"晋中市","bl": 12520130.570000, "bb": 4489828.420000, "br": 12580130.570000, "bt": 4529828.420000}, 90 | {"i":267,"n":"安阳市","bl": 12699723.380000, "bb": 4270388.550000, "br": 12759723.380000, "bt": 4310388.550000}, 91 | {"i":240,"n":"绵阳市","bl": 11625891.880000, "bb": 3655935.190000, "br": 11685891.880000, "bt": 3695935.190000}, 92 | {"i":325,"n":"泰安市","bl": 13004475.870000, "bb": 4281068.220000, "br": 13064475.870000, "bt": 4321068.220000}, 93 | {"i":276,"n":"泰州市","bl": 13319534.730000, "bb": 3782809.030000, "br": 13379534.730000, "bt": 3822809.030000}, 94 | {"i":155,"n":"许昌市","bl": 12642226.900000, "bb": 3988261.730000, "br": 12702226.900000, "bt": 4028261.730000}, 95 | {"i":328,"n":"运城市","bl": 12327360.880000, "bb": 4124403.790000, "br": 12387360.880000, "bt": 4164403.790000}, 96 | {"i":264,"n":"张家口市","bl": 12760056.420000, "bb": 4936342.980000, "br": 12820056.420000, "bt": 4976342.980000}, 97 | {"i":353,"n":"菏泽市","bl": 12823462.270000, "bb": 4154706.020000, "br": 12883462.270000, "bt": 4194706.020000}, 98 | {"i":237,"n":"朔州市","bl": 12491344.520000, "bb": 4722817.090000, "br": 12551344.520000, "bt": 4762817.090000}, 99 | {"i":211,"n":"焦作市","bl": 12572821.050000, "bb": 4150929.200000, "br": 12632821.050000, "bt": 4190929.200000}, 100 | {"i":366,"n":"聊城市","bl": 12881739.700000, "bb": 4317899.460000, "br": 12941739.700000, "bt": 4357899.460000}, 101 | {"i":337,"n":"铜陵市","bl": 13085741.520000, "bb": 3582909.300000, "br": 13145741.520000, "bt": 3622909.300000}, 102 | {"i":368,"n":"临汾市","bl": 12386576.140000, "bb": 4268945.310000, "br": 12446576.140000, "bt": 4308945.310000}, 103 | {"i":198,"n":"湛江市","bl": 12255916.770000, "bb": 2386974.260000, "br": 12315916.770000, "bt": 2426974.260000}, 104 | {"i":213,"n":"平顶山市","bl": 12582730.050000, "bb": 3950697.960000, "br": 12642730.050000, "bt": 3990697.960000} 105 | ] 106 | } 107 | -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/files/DVHotMap_Retina.cfg: -------------------------------------------------------------------------------- 1 | { 2 | "ver":3, 3 | "cities": 4 | [ 5 | {"i":131,"n":"北京市","bl": 12893020.92, "bb": 4781550.32, "br": 13022044.92, "bt": 4899310.32}, 6 | {"i":289,"n":"上海市","bl": 13478516.92, "bb": 3608446.32, "br": 13566964.92, "bt": 3672830.32}, 7 | {"i":257,"n":"广州市","bl": 12574260.92, "bb": 2604350.32, "br": 12640436.92, "bt": 2668222.32}, 8 | {"i":340,"n":"深圳市","bl": 12662868.92, "bb": 2556766.32, "br": 12730708.92, "bt": 2599518.32}, 9 | {"i":179,"n":"杭州市","bl": 13351892.92, "bb": 3502942.32, "br": 13423700.92, "bt": 3547614.32}, 10 | {"i":176,"n":"太原市","bl": 12487124.92, "bb": 4508254.32, "br": 12543796.92, "bt": 4560446.32}, 11 | {"i":332,"n":"天津市","bl": 13012180.92, "bb": 4689758.32, "br": 13110484.92, "bt": 4745822.32}, 12 | {"i":288,"n":"济南市","bl": 12993108.92, "bb": 4340606.32, "br": 13087956.92, "bt": 4397694.32}, 13 | {"i":224,"n":"苏州市","bl": 13377780.92, "bb": 3618878.32, "br": 13451572.92, "bt": 3705534.32}, 14 | {"i":194,"n":"厦门市","bl": 13107028.92, "bb": 2778878.32, "br": 13188308.92, "bt": 2834942.32}, 15 | {"i":236,"n":"青岛市","bl": 13366836.92, "bb": 4261630.32, "br": 13419476.92, "bt": 4333950.32}, 16 | {"i":268,"n":"郑州市","bl": 12628724.92, "bb": 4088862.32, "br": 12685300.92, "bt": 4123422.32}, 17 | {"i":75,"n":"成都市","bl": 11550516.92, "bb": 3543262.32, "br": 11622324.92, "bt": 3597790.32}, 18 | {"i":218,"n":"武汉市","bl": 12695220.92, "bb": 3523934.32, "br": 12756148.92, "bt": 3578590.32}, 19 | {"i":315,"n":"南京市","bl": 13197364.92, "bb": 3725150.32, "br": 13256884.92, "bt": 3782494.32}, 20 | {"i":233,"n":"西安市","bl": 12106228.92, "bb": 4019550.32, "br": 12158836.92, "bt": 4062046.32}, 21 | {"i":127,"n":"合肥市","bl": 13033076.92, "bb": 3697886.32, "br": 13082996.92, "bt": 3744606.32}, 22 | {"i":300,"n":"福州市","bl": 13258484.92, "bb": 2964830.32, "br": 13312756.92, "bt": 3016030.32}, 23 | {"i":158,"n":"长沙市","bl": 12562932.92, "bb": 3239966.32, "br": 12607860.92, "bt": 3265502.32}, 24 | {"i":150,"n":"石家庄市","bl": 12724788.92, "bb": 4541342.32, "br": 12774580.92, "bt": 4578718.32}, 25 | {"i":132,"n":"重庆市","bl": 11840820.92, "bb": 3400990.32, "br": 11881012.92, "bt": 3445534.32}, 26 | {"i":104,"n":"昆明市","bl": 11420468.92, "bb": 2843294.32, "br": 11464500.92, "bt": 2877726.32}, 27 | {"i":261,"n":"南宁市","bl":12036148.92,"bb":2564894.32,"br":12082612.92,"bt":2609310.32}, 28 | {"i":163,"n":"南昌市","bl": 12877940.92, "bb": 3291614.32, "br": 12923508.92, "bt": 3328734.32}, 29 | {"i":53,"n":"长春市","bl": 13926516.92, "bb": 5396574.32, "br": 13983348.92, "bt": 5446494.32}, 30 | {"i":146,"n":"贵阳市","bl": 11854964.92, "bb": 3024990.32, "br": 11901300.92, "bt": 3072606.32}, 31 | {"i":180,"n":"宁波市","bl": 13508084.92, "bb": 3449630.32, "br": 13576052.92, "bt": 3491102.32}, 32 | {"i":48,"n":"哈尔滨市","bl": 14051444.92, "bb": 5685534.32, "br": 14123764.92, "bt": 5737886.32}, 33 | {"i":92,"n":"乌鲁木齐市","bl": 9718644.92, "bb": 5391262.32, "br": 9779444.92, "bt": 5444894.32}, 34 | {"i":317,"n":"无锡市","bl": 13362487.810000, "bb": 3664426.860000, "br": 13422487.810000, "bt": 3704426.860000}, 35 | {"i":321,"n":"呼和浩特市","bl": 12400108.610000, "bb": 4938853.060000, "br": 12460108.610000, "bt": 4978853.060000}, 36 | {"i":178,"n":"温州市","bl": 13405366.190000, "bb": 3209086.950000, "br": 13465366.190000, "bt": 3249086.950000}, 37 | {"i":125,"n":"海口市","bl": 12252102.320000, "bb": 2240885.320000, "br": 12312102.320000, "bt": 2280885.320000}, 38 | {"i":316,"n":"徐州市","bl": 13015462.300000, "bb": 4021039.600000, "br": 13075462.300000, "bt": 4061039.600000}, 39 | {"i":119,"n":"东莞市","bl": 12634225.340000, "bb": 2600346.880000, "br": 12694225.340000, "bt": 2640346.880000}, 40 | {"i":347,"n":"连云港市","bl": 13236519.120000, "bb": 4065375.220000, "br": 13296519.120000, "bt": 4105375.220000}, 41 | {"i":138,"n":"佛山市","bl": 12564159.160000, "bb": 2599393.220000, "br": 12624159.160000, "bt": 2639393.220000}, 42 | {"i":307,"n":"保定市","bl": 12826963.350000, "bb": 4658360.500000, "br": 12886963.350000, "bt": 4698360.500000}, 43 | {"i":36,"n":"兰州市","bl": 11527683.250000, "bb": 4264074.360000, "br": 11587683.250000, "bt": 4304074.360000}, 44 | {"i":58,"n":"沈阳市","bl": 13710624.940000, "bb": 5083604.930000, "br": 13770624.940000, "bt": 5123604.930000}, 45 | {"i":134,"n":"泉州市","bl": 13172675.600000, "bb": 2825515.500000, "br": 13232675.600000, "bt": 2865515.500000}, 46 | {"i":167,"n":"大连市","bl": 13505871.310000, "bb": 4667215.520000, "br": 13565871.310000, "bt": 4707215.520000}, 47 | {"i":153,"n":"洛阳市","bl": 12487737.400000, "bb": 4072892.140000, "br": 12547737.400000, "bt": 4112892.140000}, 48 | {"i":160,"n":"镇江市","bl": 13267907.460000, "bb": 3747190.940000, "br": 13327907.460000, "bt": 3787190.940000}, 49 | {"i":162,"n":"淮安市","bl": 13220523.910000, "bb": 3932219.560000, "br": 13280523.910000, "bt": 3972219.560000}, 50 | {"i":349,"n":"九江市","bl": 12883184.520000, "bb": 3426185.890000, "br": 12943184.520000, "bt": 3466185.890000}, 51 | {"i":161,"n":"南通市","bl": 13425756.380000, "bb": 3722375.180000, "br": 13485756.380000, "bt": 3762375.180000}, 52 | {"i":360,"n":"银川市","bl": 11792979.760000, "bb": 4603825.040000, "br": 11852979.760000, "bt": 4643825.040000}, 53 | {"i":142,"n":"桂林市","bl": 12244323.040000, "bb": 2869670.320000, "br": 12304323.040000, "bt": 2909670.320000}, 54 | {"i":149,"n":"沧州市","bl": 12979360.980000, "bb": 4574826.050000, "br": 13039360.980000, "bt": 4614826.050000}, 55 | {"i":191,"n":"廊坊市","bl": 12961526.930000, "bb": 4748788.230000, "br": 13021526.930000, "bt": 4788788.230000}, 56 | {"i":348,"n":"常州市","bl": 13326465.000000, "bb": 3690635.190000, "br": 13386465.000000, "bt": 3730635.190000}, 57 | {"i":187,"n":"中山市","bl": 12596223.350000, "bb": 2540577.370000, "br": 12656223.350000, "bt": 2580577.370000}, 58 | {"i":287,"n":"潍坊市","bl": 13233041.640000, "bb": 4353827.070000, "br": 13293041.640000, "bt": 4393827.070000}, 59 | {"i":305,"n":"柳州市","bl": 12150978.590000, "bb": 2755794.040000, "br": 12210978.590000, "bt": 2795794.040000}, 60 | {"i":308,"n":"周口市","bl": 12733375.120000, "bb": 3934511.680000, "br": 12793375.120000, "bt": 3974511.680000}, 61 | {"i":333,"n":"金华市","bl": 13289808.730000, "bb": 3347777.040000, "br": 13349808.730000, "bt": 3387777.040000}, 62 | {"i":234,"n":"临沂市","bl": 13143777.400000, "bb": 4128945.460000, "br": 13203777.400000, "bt": 4168945.460000}, 63 | {"i":55,"n":"吉林市","bl": 14059253.890000, "bb": 5395759.910000, "br": 14119253.890000, "bt": 5435759.910000}, 64 | {"i":334,"n":"嘉兴市","bl": 13413135.590000, "bb": 3561369.510000, "br": 13473135.590000, "bt": 3601369.510000}, 65 | {"i":301,"n":"惠州市","bl": 12706274.780000, "bb": 2608830.720000, "br": 12766274.780000, "bt": 2648830.720000}, 66 | {"i":66,"n":"西宁市","bl": 11298876.410000, "bb": 4343410.220000, "br": 11358876.410000, "bt": 4383410.220000}, 67 | {"i":326,"n":"烟台市","bl": 13474264.830000, "bb": 4467886.610000, "br": 13534264.830000, "bt": 4507886.610000}, 68 | {"i":265,"n":"唐山市","bl": 13126264.690000, "bb": 4767766.500000, "br": 13186264.690000, "bt": 4807766.500000}, 69 | {"i":244,"n":"台州市","bl": 13488854.290000, "bb": 3292807.610000, "br": 13548854.290000, "bt": 3332807.610000}, 70 | {"i":151,"n":"邯郸市","bl": 12714293.860000, "bb": 4339069.600000, "br": 12774293.860000, "bt": 4379069.600000}, 71 | {"i":293,"n":"绍兴市","bl": 13394438.130000, "bb": 3462292.230000, "br": 13454438.130000, "bt": 3502292.230000}, 72 | {"i":157,"n":"荆州市","bl": 12464843.300000, "bb": 3504596.710000, "br": 12524843.300000, "bt": 3544596.710000}, 73 | {"i":140,"n":"珠海市","bl": 12611851.330000, "bb": 2506069.550000, "br": 12671851.330000, "bt": 2546069.550000}, 74 | {"i":152,"n":"新乡市","bl": 12650840.640000, "bb": 4160790.270000, "br": 12710840.640000, "bt": 4200790.270000}, 75 | {"i":223,"n":"盐城市","bl": 13345056.760000, "bb": 3902107.560000, "br": 13405056.760000, "bt": 3942107.560000}, 76 | {"i":220,"n":"岳阳市","bl": 12565513.920000, "bb": 3382693.340000, "br": 12625513.920000, "bt": 3422693.340000}, 77 | {"i":303,"n":"汕头市","bl": 12964315.300000, "bb": 2641400.920000, "br": 13024315.300000, "bt": 2681400.920000}, 78 | {"i":309,"n":"南阳市","bl": 12498348.170000, "bb": 3853326.130000, "br": 12558348.170000, "bt": 3893326.130000}, 79 | {"i":286,"n":"济宁市","bl": 12950082.650000, "bb": 4173680.010000, "br": 13010082.650000, "bt": 4213680.010000}, 80 | {"i":277,"n":"宿迁市","bl": 13138893.220000, "bb": 3978280.610000, "br": 13198893.220000, "bt": 4018280.610000}, 81 | {"i":346,"n":"扬州市","bl": 13264784.040000, "bb": 3773942.000000, "br": 13324784.040000, "bt": 3813942.000000}, 82 | {"i":302,"n":"江门市","bl": 12557936.300000, "bb": 2544165.550000, "br": 12617936.300000, "bt": 2584165.550000}, 83 | {"i":199,"n":"阳江市","bl": 12435359.340000, "bb": 2460045.770000, "br": 12495359.340000, "bt": 2500045.770000}, 84 | {"i":354,"n":"淄博市","bl": 13112425.710000, "bb": 4366080.450000, "br": 13172425.710000, "bt": 4406080.450000}, 85 | {"i":338,"n":"肇庆市","bl": 12491313.980000, "bb": 2604634.130000, "br": 12551313.980000, "bt": 2644634.130000}, 86 | {"i":365,"n":"赣州市","bl": 12764746.090000, "bb": 2941136.590000, "br": 12824746.090000, "bt": 2981136.590000}, 87 | {"i":266,"n":"邢台市","bl": 12718500.990000, "bb": 4402806.700000, "br": 12778500.990000, "bt": 4442806.700000}, 88 | {"i":159,"n":"衡阳市","bl": 12502909.750000, "bb": 3071248.080000, "br": 12562909.750000, "bt": 3111248.080000}, 89 | {"i":238,"n":"晋中市","bl": 12520130.570000, "bb": 4489828.420000, "br": 12580130.570000, "bt": 4529828.420000}, 90 | {"i":267,"n":"安阳市","bl": 12699723.380000, "bb": 4270388.550000, "br": 12759723.380000, "bt": 4310388.550000}, 91 | {"i":240,"n":"绵阳市","bl": 11625891.880000, "bb": 3655935.190000, "br": 11685891.880000, "bt": 3695935.190000}, 92 | {"i":325,"n":"泰安市","bl": 13004475.870000, "bb": 4281068.220000, "br": 13064475.870000, "bt": 4321068.220000}, 93 | {"i":276,"n":"泰州市","bl": 13319534.730000, "bb": 3782809.030000, "br": 13379534.730000, "bt": 3822809.030000}, 94 | {"i":155,"n":"许昌市","bl": 12642226.900000, "bb": 3988261.730000, "br": 12702226.900000, "bt": 4028261.730000}, 95 | {"i":328,"n":"运城市","bl": 12327360.880000, "bb": 4124403.790000, "br": 12387360.880000, "bt": 4164403.790000}, 96 | {"i":264,"n":"张家口市","bl": 12760056.420000, "bb": 4936342.980000, "br": 12820056.420000, "bt": 4976342.980000}, 97 | {"i":353,"n":"菏泽市","bl": 12823462.270000, "bb": 4154706.020000, "br": 12883462.270000, "bt": 4194706.020000}, 98 | {"i":237,"n":"朔州市","bl": 12491344.520000, "bb": 4722817.090000, "br": 12551344.520000, "bt": 4762817.090000}, 99 | {"i":211,"n":"焦作市","bl": 12572821.050000, "bb": 4150929.200000, "br": 12632821.050000, "bt": 4190929.200000}, 100 | {"i":366,"n":"聊城市","bl": 12881739.700000, "bb": 4317899.460000, "br": 12941739.700000, "bt": 4357899.460000}, 101 | {"i":337,"n":"铜陵市","bl": 13085741.520000, "bb": 3582909.300000, "br": 13145741.520000, "bt": 3622909.300000}, 102 | {"i":368,"n":"临汾市","bl": 12386576.140000, "bb": 4268945.310000, "br": 12446576.140000, "bt": 4308945.310000}, 103 | {"i":198,"n":"湛江市","bl": 12255916.770000, "bb": 2386974.260000, "br": 12315916.770000, "bt": 2426974.260000}, 104 | {"i":213,"n":"平顶山市","bl": 12582730.050000, "bb": 3950697.960000, "br": 12642730.050000, "bt": 3990697.960000} 105 | ] 106 | } 107 | -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/files/DVHotcity.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/files/DVHotcity.cfg -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/files/DVHotcity_Retina.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/files/DVHotcity_Retina.cfg -------------------------------------------------------------------------------- /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} -------------------------------------------------------------------------------- /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} -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/files/ResPack.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/files/ResPack.rs -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/files/channel: -------------------------------------------------------------------------------- 1 | 1099a -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/files/mapstyle.sty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/files/mapstyle.sty -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/files/satellitestyle.sty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/files/satellitestyle.sty -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/files/trafficstyle.sty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/files/trafficstyle.sty -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/baidumap_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/baidumap_logo.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/baidumap_logo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/baidumap_logo@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/bnavi_icon_location_fixed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/bnavi_icon_location_fixed.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/bnavi_icon_location_fixed@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/bnavi_icon_location_fixed@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/direction_wheel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/direction_wheel.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/direction_wheel@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/direction_wheel@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_left.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_left@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_left@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_left_highlighted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_left_highlighted.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_left_highlighted@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_left_highlighted@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_right.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_right@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_right@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_right_highlighted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_right_highlighted.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_right_highlighted@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_action_paopao_middle_right_highlighted@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_cellphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_cellphone.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_cellphone2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_cellphone2.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_cellphone2@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_cellphone2@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_cellphone@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_cellphone@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_center_point.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_center_point.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_center_point@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_center_point@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_compass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_compass.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_compass@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_compass@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_compass_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_compass_background.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_compass_background@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_compass_background@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_direction.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_direction.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_direction@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_direction@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_line_nofocus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_line_nofocus.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_bus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_bus.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_bus@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_bus@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_end.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_end.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_end@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_end@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_rail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_rail.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_rail@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_rail@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_start.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_start@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_start@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_waypoint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_waypoint.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_waypoint@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_nav_waypoint@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_left.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_left@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_left@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_left_highlighted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_left_highlighted.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_left_highlighted@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_left_highlighted@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_right.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_right@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_right@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_right_highlighted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_right_highlighted.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_right_highlighted@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/icon_paopao_middle_right_highlighted@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/lineDashTexture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/lineDashTexture.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_green.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_green@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_green@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_purple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_purple.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_purple@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_purple@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_red.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_red@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VansonLeung/react-native-baidu-map/5732added838b3e11a9bca41458f8aeca0a6046a/BaiduMapAPI.framework/Resources/mapapi.bundle/images/pin_red@2x.png -------------------------------------------------------------------------------- /BaiduMapAPI.framework/readme.txt: -------------------------------------------------------------------------------- 1 | 百度地图iOS SDK自v2.3.0起,采用可定制的形式为您提供开发包,当前开发包包含如下功能: 2 | -------------------------------------------------------------------------------------- 3 | 基础地图:包括基本矢量地图、卫星图、实时路况图和各种地图覆盖物,此外还包括各种与地图相关的操作和事件监听; 4 | 检索功能:包括POI检索,公交信息查询,路线规划,地理编码/反地理编码,在线建议查询,短串分享等; 5 | LBS云检索:包括LBS云检索(周边、区域、城市内、详情); 6 | 定位功能:获取当前位置信息; 7 | 计算工具:包括测距(两点之间距离)、坐标转换、调起百度地图等功能; 8 | 周边雷达:包含位置信息上传和检索周边相同应用的用户位置信息功能; 9 | 10 | 11 | -------------------------------------------------------------------------------------- 12 | 地图SDK功能介绍(全功能开发包): 13 | 14 | 地图:提供地图展示和地图操作功能; 15 | POI检索:支持周边检索、区域检索和城市内兴趣点检索; 16 | 地理编码:提供经纬度和地址信息相互转化的功能接口; 17 | 线路规划:支持公交、驾车、步行三种方式的线路规划; 18 | 覆盖物图层:支持在地图上添加覆盖物(标注、几何图形、热力图、地形图图层等),展示更丰富的LBS信息; 19 | 定位:获取当前位置信息,并在地图上展示(支持普通、跟随、罗盘三种模式); 20 | 离线地图:使用离线地图可节省用户流量,提供更好的地图展示效果; 21 | 调启百度地图:利用SDK接口,直接在本地打开百度地图客户端或WebApp,实现地图功能; 22 | 周边雷达:利用周边雷达功能,开发者可在App内低成本、快速实现查找周边使用相同App的用户位置的功能; 23 | LBS云检索:支持查询存储在LBS云内的自有数据; 24 | 特色功能:提供短串分享、Place详情检索、热力图等特色功能,帮助开发者搭建功能更加强大的应用; 25 | 26 | -------------------------------------------------------------------------------------- 27 | 较之v2.8.0,升级功能: 28 | 29 | 注:百度地图iOS SDK向广大开发者提供了配置更简单的 .framework形式的开发包,请开发者选择此种类型的开发包使用。自V2.8.1后,百度地图iOS SDK将不再提供 .a形式的开发包。 30 | 31 | 【修复】 32 | 33 | 修复了升级IOS 9 beta 3系统后闪退的问题 34 | 35 | 【提示】 36 | 1、由于iOS9改用更安全的https,为了能够在iOS9中正常使用地图SDK,请在"Info.plist"中进行如下配置,否则影响SDK的使用。 37 | NSAppTransportSecurity 38 | 39 | NSAllowsArbitraryLoads 40 | 41 | 42 | 2、如果在iOS9中使用了调起百度地图客户端功能,必须在"Info.plist"中进行如下配置,否则不能调起百度地图客户端。 43 | LSApplicationQueriesSchemes 44 | 45 | baidumap 46 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-native-baidu-map (IN MAINTENANCE, NOT WORKING) 2 | My first React Native attempt to implement custom view. This time, including Baidu Map SDK. Feel free to contact us: http://www.vanportdev.com 3 | 4 | Please inspect our example code. 5 | 6 | Images prove more than words... 7 | 8 | ![alt tag](http://dev.oicomg.in/c1.png) 9 | ![alt tag](http://dev.oicomg.in/c2.png) 10 | ![alt tag](http://dev.oicomg.in/c3.png) 11 | -------------------------------------------------------------------------------- /ReactNativeExampleBaiduMap.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | D21C393C1C0DA88500869149 /* BaiduMap.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = D21C393B1C0DA88500869149 /* BaiduMap.h */; }; 11 | D21C393E1C0DA88500869149 /* BaiduMap.m in Sources */ = {isa = PBXBuildFile; fileRef = D21C393D1C0DA88500869149 /* BaiduMap.m */; }; 12 | D21C39621C0DACD600869149 /* BaiduMapManager.m in Sources */ = {isa = PBXBuildFile; fileRef = D21C39611C0DACD600869149 /* BaiduMapManager.m */; }; 13 | D21C397A1C0DAE5D00869149 /* BaiduMapManager.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = D21C39601C0DACD600869149 /* BaiduMapManager.h */; }; 14 | /* End PBXBuildFile section */ 15 | 16 | /* Begin PBXCopyFilesBuildPhase section */ 17 | D21C39371C0DA88500869149 /* CopyFiles */ = { 18 | isa = PBXCopyFilesBuildPhase; 19 | buildActionMask = 2147483647; 20 | dstPath = "include/$(PRODUCT_NAME)"; 21 | dstSubfolderSpec = 16; 22 | files = ( 23 | D21C397A1C0DAE5D00869149 /* BaiduMapManager.h in CopyFiles */, 24 | D21C393C1C0DA88500869149 /* BaiduMap.h in CopyFiles */, 25 | ); 26 | runOnlyForDeploymentPostprocessing = 0; 27 | }; 28 | /* End PBXCopyFilesBuildPhase section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | D21C39391C0DA88500869149 /* libBaiduMap.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libBaiduMap.a; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | D21C393B1C0DA88500869149 /* BaiduMap.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BaiduMap.h; sourceTree = ""; }; 33 | D21C393D1C0DA88500869149 /* BaiduMap.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BaiduMap.m; sourceTree = ""; }; 34 | D21C39601C0DACD600869149 /* BaiduMapManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BaiduMapManager.h; sourceTree = ""; }; 35 | D21C39611C0DACD600869149 /* BaiduMapManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BaiduMapManager.m; sourceTree = ""; }; 36 | D23208B41B5B683100F5EF79 /* mapapi.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = mapapi.bundle; path = BaiduMapAPI.framework/Resources/mapapi.bundle; sourceTree = ""; }; 37 | /* End PBXFileReference section */ 38 | 39 | /* Begin PBXFrameworksBuildPhase section */ 40 | D21C39361C0DA88500869149 /* Frameworks */ = { 41 | isa = PBXFrameworksBuildPhase; 42 | buildActionMask = 2147483647; 43 | files = ( 44 | ); 45 | runOnlyForDeploymentPostprocessing = 0; 46 | }; 47 | /* End PBXFrameworksBuildPhase section */ 48 | 49 | /* Begin PBXGroup section */ 50 | 83CBB9F61A601CBA00E9B192 = { 51 | isa = PBXGroup; 52 | children = ( 53 | D23208B41B5B683100F5EF79 /* mapapi.bundle */, 54 | D21C393A1C0DA88500869149 /* BaiduMap */, 55 | 83CBBA001A601CBA00E9B192 /* Products */, 56 | ); 57 | indentWidth = 2; 58 | sourceTree = ""; 59 | tabWidth = 2; 60 | }; 61 | 83CBBA001A601CBA00E9B192 /* Products */ = { 62 | isa = PBXGroup; 63 | children = ( 64 | D21C39391C0DA88500869149 /* libBaiduMap.a */, 65 | ); 66 | name = Products; 67 | sourceTree = ""; 68 | }; 69 | D21C393A1C0DA88500869149 /* BaiduMap */ = { 70 | isa = PBXGroup; 71 | children = ( 72 | D21C39601C0DACD600869149 /* BaiduMapManager.h */, 73 | D21C39611C0DACD600869149 /* BaiduMapManager.m */, 74 | D21C393B1C0DA88500869149 /* BaiduMap.h */, 75 | D21C393D1C0DA88500869149 /* BaiduMap.m */, 76 | ); 77 | path = BaiduMap; 78 | sourceTree = ""; 79 | }; 80 | /* End PBXGroup section */ 81 | 82 | /* Begin PBXNativeTarget section */ 83 | D21C39381C0DA88500869149 /* BaiduMap */ = { 84 | isa = PBXNativeTarget; 85 | buildConfigurationList = D21C393F1C0DA88500869149 /* Build configuration list for PBXNativeTarget "BaiduMap" */; 86 | buildPhases = ( 87 | D21C39351C0DA88500869149 /* Sources */, 88 | D21C39361C0DA88500869149 /* Frameworks */, 89 | D21C39371C0DA88500869149 /* CopyFiles */, 90 | ); 91 | buildRules = ( 92 | ); 93 | dependencies = ( 94 | ); 95 | name = BaiduMap; 96 | productName = BaiduMap; 97 | productReference = D21C39391C0DA88500869149 /* libBaiduMap.a */; 98 | productType = "com.apple.product-type.library.static"; 99 | }; 100 | /* End PBXNativeTarget section */ 101 | 102 | /* Begin PBXProject section */ 103 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 104 | isa = PBXProject; 105 | attributes = { 106 | LastUpgradeCheck = 0710; 107 | ORGANIZATIONNAME = Facebook; 108 | TargetAttributes = { 109 | D21C39381C0DA88500869149 = { 110 | CreatedOnToolsVersion = 7.1.1; 111 | }; 112 | }; 113 | }; 114 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeExampleBaiduMap" */; 115 | compatibilityVersion = "Xcode 3.2"; 116 | developmentRegion = English; 117 | hasScannedForEncodings = 0; 118 | knownRegions = ( 119 | en, 120 | Base, 121 | ); 122 | mainGroup = 83CBB9F61A601CBA00E9B192; 123 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 124 | projectDirPath = ""; 125 | projectRoot = ""; 126 | targets = ( 127 | D21C39381C0DA88500869149 /* BaiduMap */, 128 | ); 129 | }; 130 | /* End PBXProject section */ 131 | 132 | /* Begin PBXSourcesBuildPhase section */ 133 | D21C39351C0DA88500869149 /* Sources */ = { 134 | isa = PBXSourcesBuildPhase; 135 | buildActionMask = 2147483647; 136 | files = ( 137 | D21C39621C0DACD600869149 /* BaiduMapManager.m in Sources */, 138 | D21C393E1C0DA88500869149 /* BaiduMap.m in Sources */, 139 | ); 140 | runOnlyForDeploymentPostprocessing = 0; 141 | }; 142 | /* End PBXSourcesBuildPhase section */ 143 | 144 | /* Begin XCBuildConfiguration section */ 145 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 146 | isa = XCBuildConfiguration; 147 | buildSettings = { 148 | ALWAYS_SEARCH_USER_PATHS = NO; 149 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 150 | CLANG_CXX_LIBRARY = "libc++"; 151 | CLANG_ENABLE_MODULES = YES; 152 | CLANG_ENABLE_OBJC_ARC = YES; 153 | CLANG_WARN_BOOL_CONVERSION = YES; 154 | CLANG_WARN_CONSTANT_CONVERSION = YES; 155 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 156 | CLANG_WARN_EMPTY_BODY = YES; 157 | CLANG_WARN_ENUM_CONVERSION = YES; 158 | CLANG_WARN_INT_CONVERSION = YES; 159 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 160 | CLANG_WARN_UNREACHABLE_CODE = YES; 161 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 162 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 163 | COPY_PHASE_STRIP = NO; 164 | ENABLE_STRICT_OBJC_MSGSEND = YES; 165 | ENABLE_TESTABILITY = YES; 166 | GCC_C_LANGUAGE_STANDARD = gnu99; 167 | GCC_DYNAMIC_NO_PIC = NO; 168 | GCC_OPTIMIZATION_LEVEL = 0; 169 | GCC_PREPROCESSOR_DEFINITIONS = ( 170 | "DEBUG=1", 171 | "$(inherited)", 172 | ); 173 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 174 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 175 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 176 | GCC_WARN_UNDECLARED_SELECTOR = YES; 177 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 178 | GCC_WARN_UNUSED_FUNCTION = YES; 179 | GCC_WARN_UNUSED_VARIABLE = YES; 180 | HEADER_SEARCH_PATHS = ( 181 | "$(inherited)", 182 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 183 | "$(SRCROOT)/node_modules/react-native/React/**", 184 | ); 185 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 186 | MTL_ENABLE_DEBUG_INFO = YES; 187 | ONLY_ACTIVE_ARCH = YES; 188 | SDKROOT = iphoneos; 189 | }; 190 | name = Debug; 191 | }; 192 | 83CBBA211A601CBA00E9B192 /* Release */ = { 193 | isa = XCBuildConfiguration; 194 | buildSettings = { 195 | ALWAYS_SEARCH_USER_PATHS = NO; 196 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 197 | CLANG_CXX_LIBRARY = "libc++"; 198 | CLANG_ENABLE_MODULES = YES; 199 | CLANG_ENABLE_OBJC_ARC = YES; 200 | CLANG_WARN_BOOL_CONVERSION = YES; 201 | CLANG_WARN_CONSTANT_CONVERSION = YES; 202 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 203 | CLANG_WARN_EMPTY_BODY = YES; 204 | CLANG_WARN_ENUM_CONVERSION = YES; 205 | CLANG_WARN_INT_CONVERSION = YES; 206 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 207 | CLANG_WARN_UNREACHABLE_CODE = YES; 208 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 209 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 210 | COPY_PHASE_STRIP = YES; 211 | ENABLE_NS_ASSERTIONS = NO; 212 | ENABLE_STRICT_OBJC_MSGSEND = YES; 213 | GCC_C_LANGUAGE_STANDARD = gnu99; 214 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 215 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 216 | GCC_WARN_UNDECLARED_SELECTOR = YES; 217 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 218 | GCC_WARN_UNUSED_FUNCTION = YES; 219 | GCC_WARN_UNUSED_VARIABLE = YES; 220 | HEADER_SEARCH_PATHS = ( 221 | "$(inherited)", 222 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 223 | "$(SRCROOT)/node_modules/react-native/React/**", 224 | ); 225 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 226 | MTL_ENABLE_DEBUG_INFO = NO; 227 | SDKROOT = iphoneos; 228 | VALIDATE_PRODUCT = YES; 229 | }; 230 | name = Release; 231 | }; 232 | D21C39401C0DA88500869149 /* Debug */ = { 233 | isa = XCBuildConfiguration; 234 | buildSettings = { 235 | DEBUG_INFORMATION_FORMAT = dwarf; 236 | FRAMEWORK_SEARCH_PATHS = ( 237 | "$(inherited)", 238 | "$(PROJECT_DIR)", 239 | ); 240 | GCC_NO_COMMON_BLOCKS = YES; 241 | HEADER_SEARCH_PATHS = ( 242 | "$(inherited)", 243 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 244 | "$(SRCROOT)/../react-native/React/**", 245 | ); 246 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 247 | OTHER_LDFLAGS = "-ObjC"; 248 | PRODUCT_NAME = "$(TARGET_NAME)"; 249 | SKIP_INSTALL = YES; 250 | }; 251 | name = Debug; 252 | }; 253 | D21C39411C0DA88500869149 /* Release */ = { 254 | isa = XCBuildConfiguration; 255 | buildSettings = { 256 | COPY_PHASE_STRIP = NO; 257 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 258 | FRAMEWORK_SEARCH_PATHS = ( 259 | "$(inherited)", 260 | "$(PROJECT_DIR)", 261 | ); 262 | GCC_NO_COMMON_BLOCKS = YES; 263 | HEADER_SEARCH_PATHS = ( 264 | "$(inherited)", 265 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 266 | "$(SRCROOT)/../react-native/React/**", 267 | ); 268 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 269 | OTHER_LDFLAGS = "-ObjC"; 270 | PRODUCT_NAME = "$(TARGET_NAME)"; 271 | SKIP_INSTALL = YES; 272 | }; 273 | name = Release; 274 | }; 275 | /* End XCBuildConfiguration section */ 276 | 277 | /* Begin XCConfigurationList section */ 278 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeExampleBaiduMap" */ = { 279 | isa = XCConfigurationList; 280 | buildConfigurations = ( 281 | 83CBBA201A601CBA00E9B192 /* Debug */, 282 | 83CBBA211A601CBA00E9B192 /* Release */, 283 | ); 284 | defaultConfigurationIsVisible = 0; 285 | defaultConfigurationName = Release; 286 | }; 287 | D21C393F1C0DA88500869149 /* Build configuration list for PBXNativeTarget "BaiduMap" */ = { 288 | isa = XCConfigurationList; 289 | buildConfigurations = ( 290 | D21C39401C0DA88500869149 /* Debug */, 291 | D21C39411C0DA88500869149 /* Release */, 292 | ); 293 | defaultConfigurationIsVisible = 0; 294 | defaultConfigurationName = Release; 295 | }; 296 | /* End XCConfigurationList section */ 297 | }; 298 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 299 | } 300 | -------------------------------------------------------------------------------- /ReactNativeExampleBaiduMap.xcodeproj/xcshareddata/xcschemes/ReactNativeExampleBaiduMap.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 | 67 | 68 | 78 | 80 | 86 | 87 | 88 | 89 | 90 | 91 | 97 | 99 | 105 | 106 | 107 | 108 | 110 | 111 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | */ 5 | 'use strict'; 6 | 7 | var React = require('react-native'); 8 | var { 9 | View, 10 | PropTypes, 11 | requireNativeComponent, 12 | NativeModules, 13 | } = React; 14 | 15 | var NativeBaiduMap = requireNativeComponent('BaiduMap', BaiduMap); 16 | var NativeBaiduMapManager = NativeModules.BaiduMapManager; 17 | 18 | var BaiduMap = React.createClass({ 19 | propTypes: { 20 | 21 | }, 22 | addPinAnnotation: function(lat, lng, title) { 23 | var handle = React.findNodeHandle(this); 24 | NativeBaiduMapManager.addPointAnnotation(handle, lat, lng, title); 25 | }, 26 | render: function () { 27 | return ; 28 | }, 29 | componentDidMount: function() { 30 | var self = this; 31 | } 32 | }); 33 | 34 | module.exports = BaiduMap; -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-baidu-map", 3 | "repository": { 4 | "type" : "git", 5 | "url" : "https://github.com/VansonLeung/react-native-baidu-map.git" 6 | }, 7 | "version": "0.1.0", 8 | "description": "React Native Baidu Map", 9 | "author": "Vanson Leung (http://www.vanportdev.com)", 10 | "nativePackage": true, 11 | "keywords": [ 12 | "react-native", 13 | "react", 14 | "native", 15 | "map", 16 | "baidumap", 17 | "mapview" 18 | ] 19 | } --------------------------------------------------------------------------------