8 #import <BaiduMapAPI_Base/BMKTypes.h> 9 #import <UIKit/UIKit.h> 18 UIKIT_STATIC_INLINE
BMKCoordinateSpan BMKCoordinateSpanMake(CLLocationDegrees latitudeDelta, CLLocationDegrees longitudeDelta)
35 region.
center = centerCoordinate;
47 UIKIT_EXTERN
BMKCoordinateRegion BMKCoordinateRegionMakeWithDistance(CLLocationCoordinate2D centerCoordinate, CLLocationDistance latitudinalMeters, CLLocationDistance longitudinalMeters);
54 UIKIT_EXTERN
BMKMapPoint BMKMapPointForCoordinate(CLLocationCoordinate2D coordinate);
61 UIKIT_EXTERN CLLocationCoordinate2D BMKCoordinateForMapPoint(
BMKMapPoint mapPoint);
68 UIKIT_EXTERN CLLocationDistance BMKMetersPerMapPointAtLatitude(CLLocationDegrees latitude);
75 UIKIT_EXTERN
double BMKMapPointsPerMeterAtLatitude(CLLocationDegrees latitude);
91 UIKIT_STATIC_INLINE
BMKMapPoint BMKMapPointMake(
double x,
double y) {
101 UIKIT_STATIC_INLINE
BMKMapSize BMKMapSizeMake(
double width,
double height) {
113 UIKIT_STATIC_INLINE
BMKMapRect BMKMapRectMake(
double x,
double y,
double width,
double height) {
114 return (
BMKMapRect){ BMKMapPointMake(x, y), BMKMapSizeMake(width, height)};
122 UIKIT_STATIC_INLINE
double BMKMapRectGetMinX(
BMKMapRect rect) {
131 UIKIT_STATIC_INLINE
double BMKMapRectGetMinY(
BMKMapRect rect) {
140 UIKIT_STATIC_INLINE
double BMKMapRectGetMidX(
BMKMapRect rect) {
149 UIKIT_STATIC_INLINE
double BMKMapRectGetMidY(
BMKMapRect rect) {
158 UIKIT_STATIC_INLINE
double BMKMapRectGetMaxX(
BMKMapRect rect) {
167 UIKIT_STATIC_INLINE
double BMKMapRectGetMaxY(
BMKMapRect rect) {
176 UIKIT_STATIC_INLINE
double BMKMapRectGetWidth(
BMKMapRect rect) {
185 UIKIT_STATIC_INLINE
double BMKMapRectGetHeight(
BMKMapRect rect) {
196 return point1.
x == point2.
x && point1.
y == point2.
y;
218 BMKMapSizeEqualToSize(rect1.
size, rect2.
size);
226 UIKIT_STATIC_INLINE BOOL BMKMapRectIsNull(
BMKMapRect rect) {
235 UIKIT_STATIC_INLINE BOOL BMKMapRectIsEmpty(
BMKMapRect rect) {
244 UIKIT_STATIC_INLINE NSString *BMKStringFromMapPoint(
BMKMapPoint point) {
245 return [NSString stringWithFormat:
@"{%.1f, %.1f}", point.
x, point.
y];
253 UIKIT_STATIC_INLINE NSString *BMKStringFromMapSize(
BMKMapSize size) {
254 return [NSString stringWithFormat:
@"{%.1f, %.1f}", size.
width, size.
height];
262 UIKIT_STATIC_INLINE NSString *BMKStringFromMapRect(
BMKMapRect rect) {
263 return [NSString stringWithFormat:
@"{%@, %@}", BMKStringFromMapPoint(rect.
origin), BMKStringFromMapSize(rect.
size)];
346 UIKIT_EXTERN BOOL BMKMapRectSpans180thMeridian(
BMKMapRect rect);
371 UIKIT_EXTERN BOOL BMKCircleContainsCoordinate(CLLocationCoordinate2D point, CLLocationCoordinate2D center,
double radius);
388 UIKIT_EXTERN BOOL BMKPolygonContainsCoordinate(CLLocationCoordinate2D point, CLLocationCoordinate2D *polygon, NSUInteger count);
405 UIKIT_EXTERN
double BMKAreaBetweenCoordinates(CLLocationCoordinate2D leftTop, CLLocationCoordinate2D rightBottom);
413 UIKIT_EXTERN CGPoint BMKConvertToBaiduMercatorFromBD09LL(CLLocationCoordinate2D bd09llCoordinate);
421 UIKIT_EXTERN CLLocationCoordinate2D BMKConvertToBD09LLFromBaiduMercator(CGPoint bdMCTCoordinate);
433 UIKIT_EXTERN CLLocationCoordinate2D BMKCoordTrans(CLLocationCoordinate2D coordinate, BMK_COORD_TYPE fromType, BMK_COORD_TYPE toType);
441 UIKIT_EXTERN NSDictionary* BMKConvertBaiduCoorFrom(CLLocationCoordinate2D coordinate,BMK_COORD_TYPE type);
448 UIKIT_EXTERN CLLocationCoordinate2D BMKCoorDictionaryDecode(NSDictionary* dictionary);
double y
纵坐标
Definition: BMKTypes.h:114
BMKCoordinateSpan span
经纬度范围
Definition: BMKTypes.h:102
矩形大小,用直角地理坐标表示
Definition: BMKTypes.h:118
CLLocationDegrees latitudeDelta
纬度范围
Definition: BMKTypes.h:89
BMKMapPoint origin
屏幕左上点对应的直角地理坐标
Definition: BMKTypes.h:125
矩形,用直角地理坐标表示
Definition: BMKTypes.h:124
double x
横坐标
Definition: BMKTypes.h:113
CLLocationDegrees longitudeDelta
经度范围
Definition: BMKTypes.h:90
double height
高度
Definition: BMKTypes.h:120
BMKMapSize size
坐标范围
Definition: BMKTypes.h:126
CLLocationCoordinate2D center
中心点经纬度坐标
Definition: BMKTypes.h:101
表示一个经纬度范围
Definition: BMKTypes.h:88
表示一个经纬度区域
Definition: BMKTypes.h:100
double width
宽度
Definition: BMKTypes.h:119
地理坐标点,用直角地理坐标表示
Definition: BMKTypes.h:112