高德地图 移除marker怎么保证mauserlocation不被移除

1.简单定位
- (void)viewDidLoad {
[super viewDidLoad];
_mapView.showsUserLocation = YES;
[_mapView setUserTrackingMode:MAUserTrackingModeFollow];
- (void)mapView:(MAMapView *)mapView didUpdateUserLocation:(MAUserLocation *)userLocation updatingLocation:(BOOL)updatingLocation
NSLog(@"定位中...");
2.创建大头针
#import "AnnotationViewController.h"
@interface AnnotationViewController ()
@implementation AnnotationViewController
- (void)viewDidLoad {
[super viewDidLoad];
MAPointAnnotation *annotation1 = [[MAPointAnnotation alloc]init];
annotation1.coordinate = CLLocationCoordinate2DMake(39.9, 116.4);
annotation1.title = @"北京";
annotation1.subtitle = @"beijing";
[_mapView addAnnotation:annotation1];
MAPointAnnotation *annotation2 = [[MAPointAnnotation alloc]init];
annotation2.coordinate = CLLocationCoordinate2DMake(39.94, 116.44);
annotation2.title = @"上海";
annotation2.subtitle = @"shanghai";
[_mapView addAnnotation:annotation2];
- (MAAnnotationView *)mapView:(MAMapView *)mapView viewForAnnotation:(id&MAAnnotation&)annotation
static NSString *anIde = @"PointAnnotation";
MAAnnotationView *view = (MAAnnotationView *)[mapView dequeueReusableAnnotationViewWithIdentifier:anIde];
if (!view) {
view = [[MAAnnotationView alloc]initWithAnnotation:annotation reuseIdentifier:anIde];
view.animatesDrop=YES;
view.draggable=YES;
view.image = [UIImage imageNamed:@"1.png"];
view.canShowCallout = YES;
- (void)mapView:(MAMapView *)mapView didDeselectAnnotationView:(MAAnnotationView *)view
- (void)mapView:(MAMapView *)mapView didSelectAnnotationView:(MAAnnotationView *)view
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
3.自定制大头针(实现MAAnnotation代理)
#import &Foundation/Foundation.h&
#import &MAMapKit/MAMapKit.h&
@interface CustomAnnotation : NSObject&MAAnnotation&
@property (nonatomic, assign) CLLocationCoordinate2D
@property (nonatomic,copy) NSString *
@property (nonatomic,copy) NSString *
@property (nonatomic,copy) NSString *leftImgN
4.自定制大头针内容(继承MAAnnotationView)
#import "CustomAnnotationView.h"
@implementation CustomAnnotationView
DetailView *_
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
if (self.selected == selected) {
//选中添加详情
if (selected)
if (!_detail) {
_detail = [[DetailView alloc]initWithFrame:CGRectMake((-140+40)/2, -50, 140, 50)];
[self addSubview:_detail];
CustomAnnotation *annotation = self.
_detail.leftImgView.image = [UIImage imageNamed:annotation.leftImgName];
_detail.titleLabel.text = annotation.
_detail.subtitleLabel.text = annotation.
//未选中时
//移除详情
[_detail removeFromSuperview];
[super setSelected:selected animated:animated];
5.使用高德地图部分方法
#import "CustomAnnotationViewController.h"
#import "CustomAnnotationView.h"
#import &AMapSearchKit/AMapSearchAPI.h&
@interface CustomAnnotationViewController ()&AMapSearchDelegate&
AMapSearchAPI *_searchA
const static NSString *key = @"d0ab6d8ab4ca0";
@implementation CustomAnnotationViewController
- (void)viewDidLoad {
[super viewDidLoad];
CustomAnnotation *ann = [[CustomAnnotation alloc]init];
ann.coordinate = CLLocationCoordinate2DMake(39.9, 116.4);
ann.title = @"肯德基";
ann.subtitle = @"KFC";
ann.leftImgName = @"3.png";
[_mapView addAnnotation:ann];
MACircle *circle = [MACircle circleWithCenterCoordinate:ann.coordinate radius:3000];
[_mapView addOverlay:circle];
//搜索附近的kfc
_searchApi = [[AMapSearchAPI alloc]initWithSearchKey:key Delegate:self];
//创建request对象
AMapPlaceSearchRequest *request = [[AMapPlaceSearchRequest alloc]init];
//指定searchtype为周边搜索
request.searchType = AMapSearchType_PlaceA
//指定搜索附近的中心点位置
request.location = [AMapGeoPoint locationWithLatitude:ann.coordinate.latitude longitude:ann.coordinate.longitude];
//指定搜索半径
request.radius = 3000;
request.keywords = @"KFC";
[_searchApi AMapPlaceSearch:request];
AMapPlaceSearchRequest *request1 = [[AMapPlaceSearchRequest alloc]init];
request1.keywords = @"俏江南";
request1.city = @[@"beijing"];
[_searchApi AMapPlaceSearch:request1];
- (MAAnnotationView *)mapView:(MAMapView *)mapView viewForAnnotation:(id&MAAnnotation&)annotation
if ([annotation isKindOfClass:[MAPointAnnotation class]]) {
static NSString *annIde = @"PointAnnotation";
MAPinAnnotationView *view = (MAPinAnnotationView *)[mapView dequeueReusableAnnotationViewWithIdentifier:annIde];
if (!view) {
view = [[MAPinAnnotationView alloc]initWithAnnotation:annotation reuseIdentifier:annIde];
view.canShowCallout = YES;
static NSString *annIde = @"CustomAnnotation";
CustomAnnotationView *view = (CustomAnnotationView *)[mapView dequeueReusableAnnotationViewWithIdentifier:annIde];
if (!view) {
view = [[CustomAnnotationView alloc]initWithAnnotation:annotation reuseIdentifier:annIde];
view.image = [UIImage imageNamed:@"1.png"];
- (MAOverlayRenderer *)mapView:(MAMapView *)mapView rendererForOverlay:(id&MAOverlay&)overlay
MACircleRenderer *circleRe = [[MACircleRenderer alloc]initWithOverlay:overlay];
circleRe.strokeColor = [UIColor redColor];
circleRe.fillColor = [UIColor colorWithWhite:0.2 alpha:0.4];
circleRe.lineWidth = 5;
return circleRe;
- (void)mapView:(MAMapView *)mapView didSelectAnnotationView:(MAAnnotationView *)view
//导航查询
AMapNavigationSearchRequest *request = [[AMapNavigationSearchRequest alloc]init];
request.searchType = AMapSearchType_NaviD
request.origin = [AMapGeoPoint locationWithLatitude:39.9 longitude:116.4];
request.destination = [AMapGeoPoint locationWithLatitude:[view.annotation coordinate].latitude longitude:[view.annotation coordinate].longitude];
[_searchApi AMapNavigationSearch:request];
- (void)onNavigationSearchDone:(AMapNavigationSearchRequest *)request response:(AMapNavigationSearchResponse *)response
AMapRoute *route = response.
NSArray *paths = route.
for (AMapPath *path in paths) {
for (AMapStep *step in path.steps) {
NSLog(@"%@",step.instruction);
- (void)onPlaceSearchDone:(AMapPlaceSearchRequest *)request response:(AMapPlaceSearchResponse *)response
if (!response.count) {
//遍历搜索结果,创建annotation,显示搜索结果
for (AMapPOI *poi in response.pois) {
MAPointAnnotation *annotation = [[MAPointAnnotation alloc]init];
annotation.coordinate = CLLocationCoordinate2DMake(poi.location.latitude, poi.location.longitude);
annotation.title = poi.
annotation.subtitle = poi.
[_mapView addAnnotation:annotation];
- (void)searchRequest:(id)request didFailWithError:(NSError *)error
NSLog(@"%@",error);
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
阅读(...) 评论()iOS高德地图SDK(2D): MAMapView Class Reference
iOS高德地图SDK(2D)
 v4.6.0
#import &&
(void) -
 设置罗盘的图像
(CGFloat) -
 在指定的缩放级别下, 基于地图中心点, 1 screen point 对应的距离(单位是米)
(void) -
 设定地图中心点经纬度
(void) -
 设定当前地图的region
 根据当前地图视图frame的大小调整region范围,返回适合当前地图frame的region,调整过程中当前地图的中心点不会改变
(void) -
 设置当前地图可见范围的map rect
(void) -
 设置当前地图可见范围的map rect
 调整map rect使其适合地图窗口显示的范围
 调整map rect使其适合地图窗口显示的范围
(void) -
 设置当前地图的缩放级别zoom level
(void) -
 设置当前地图的缩放级别zoom level
(CGPoint) -
 将经纬度坐标转化为相对于指定view的坐标
(CLLocationCoordinate2D) -
 将相对于view的坐标转化为经纬度坐标
(CGRect) -
 将map rect 转化为相对于view的坐标
 将相对于view的rectangle转化为region
(void) -
 设置追踪用户位置的模式
(void) -
 设定UserLocationView样式。如果用户自定义了userlocation的annotationView,或者该annotationView还未添加到地图上,此方法将不起作用
(void) -
 向地图窗口添加标注,需要实现MAMapViewDelegate的-mapView:viewForAnnotation:函数来生成标注对应的View
(void) -
 向地图窗口添加一组标注,需要实现MAMapViewDelegate的-mapView:viewForAnnotation:函数来生成标注对应的View
(void) -
 移除标注
(void) -
 移除一组标注
( *) -
 根据标注数据过去标注view
( *) -
 从复用内存池中获取制定复用标识的annotation view
(void) -
 选中标注数据对应的view
(void) -
 取消选中标注数据对应的view
(NSSet *) -
 获取指定投影矩形范围内的标注
(void) -
 设置地图使其可以显示数组中所有的annotation, 如果数组中只有一个则直接设置地图中心为annotation的位置
(void) -
 设置地图使其可以显示数组中所有的annotation, 如果数组中只有一个则直接设置地图中心为annotation的位置
( *) -
 查找指定overlay对应的Renderer,如果该Renderer尚未创建,返回nil
( *) -
(void) -
 向地图添加Overlay,需要实现MAMapViewDelegate的-mapView:rendererForOverlay:函数来生成标注对应的Renderer
(void) -
 向地图添加一组Overlay,需要实现MAMapViewDelegate的-mapView:rendererForOverlay:函数来生成标注对应的Renderer
(void) -
 移除Overlay
(void) -
 移除一组Overlay
(void) -
 在指定的索引处添加一个Overlay
(void) -
 在交换指定索引处的Overlay
(void) -
 在指定的Overlay之上插入一个overlay
(void) -
 在指定的Overlay之下插入一个overlay
(void) -
 设置地图使其可以显示数组中所有的overlay
(void) -
 设置地图使其可以显示数组中所有的overlay
(void) -
 清除所有磁盘上缓存的地图数据
(UIImage *) -
 在指定区域内截图(默认会包含该区域内的annotationView)
(void) -
 获得地图当前可视区域截图
 地图View的Delegate
 地图类型
 地图语言
BOOL 
 是否显示交通,默认为NO
BOOL 
 是否支持平移,默认为YES
BOOL 
 是否支持缩放,默认为YES
BOOL 
 标识当前地图中心位置是否在中国范围外。此属性不是精确判断,不能用于边界区域
BOOL 
 是否允许对annotationView根据zIndex进行排序,默认为YES。当annotationView数量比较大时可能会引起性能问题,可以设置此属性为NO
CGPoint 
 logo位置, 必须在mapView.bounds之内,否则会被忽略
CGSize 
 logo的宽高
BOOL 
 是否显示罗盘,默认为YES
CGPoint 
 罗盘原点位置
CGSize 
 罗盘的宽高
BOOL 
 是否显示比例尺,默认为YES
CGPoint 
 比例尺原点位置
CGSize 
 比例尺的最大宽高
CGFloat 
 在当前缩放级别下, 基于地图中心点, 1 screen point 对应的距离(单位是米). 支持KVO
CLLocationCoordinate2D 
 当前地图的中心点经纬度坐标,改变该值时,地图缩放级别不会发生变化
 当前地图的经纬度范围,设定的该范围可能会被调整为适合地图窗口显示的范围
 当前地图可见范围的map rect
 设置可见地图区域的矩形边界,如限制地图只显示北京市范围
 设置可见地图区域的矩形边界,如限制地图只显示北京市范围
double 
 缩放级别, [3, 20]
double 
 最小缩放级别, 最小值为3
double 
 最大缩放级别,最大值为20
BOOL 
 是否显示用户位置
 当前的位置数据
 定位用户位置的模式
BOOL 
 当前位置再地图中是否可见
NSArray * 
 标注数组
NSArray * 
 处于选中状态的标注数据数据(其count == 0 或 1)
CGRect 
 annotation 可见区域
NSArray * 
 Overlay数组
CLLocationDistance 
 设定定位的最小更新距离。默认为kCLDistanceFilterNone,会提示任何移动
CLLocationAccuracy 
 设定定位精度。默认为kCLLocationAccuracyBest
CLLocationDegrees 
 设定最小更新角度。默认为1度,设定为kCLHeadingFilterNone会提示任何角度改变
BOOL 
 指定定位是否会被系统自动暂停。默认为YES。只在iOS 6.0之后起作用
BOOL 
 是否允许后台定位。默认为NO。只在iOS 9.0之后起作用。设置为YES的时候必须保证 Background Modes 中的 Location updates处于选中状态,否则会抛出异常
- (void) addAnnotation:
annotation
向地图窗口添加标注,需要实现MAMapViewDelegate的-mapView:viewForAnnotation:函数来生成标注对应的View
Parameters
annotation要添加的标注
- (void) addAnnotations:
(NSArray *) 
annotations
向地图窗口添加一组标注,需要实现MAMapViewDelegate的-mapView:viewForAnnotation:函数来生成标注对应的View
Parameters
annotations要添加的标注数组
- (void) addOverlay:
向地图添加Overlay,需要实现MAMapViewDelegate的-mapView:rendererForOverlay:函数来生成标注对应的Renderer
Parameters
overlay要添加的overlay
- (void) addOverlays:
(NSArray *) 
向地图添加一组Overlay,需要实现MAMapViewDelegate的-mapView:rendererForOverlay:函数来生成标注对应的Renderer
Parameters
overlays要添加的overlay数组
- (NSSet *) annotationsInMapRect:
获取指定投影矩形范围内的标注
Parameters
mapRect投影矩形范围
Returns标注集合
- (void) clearDisk
清除所有磁盘上缓存的地图数据
- (CGPoint) convertCoordinate:
(CLLocationCoordinate2D) 
coordinate
toPointToView:
(UIView *) 
view 
将经纬度坐标转化为相对于指定view的坐标
Parameters
coordinate要转化的经纬度坐标
view指定的坐标系统的view
Returns指定view的坐标
- (CLLocationCoordinate2D) convertPoint:
(CGPoint) 
toCoordinateFromView:
(UIView *) 
view 
将相对于view的坐标转化为经纬度坐标
Parameters
point要转化的坐标
viewpoint所基于的view
Returns转化后的经纬度坐标
- () convertRect:
(CGRect) 
toRegionFromView:
(UIView *) 
view 
将相对于view的rectangle转化为region
Parameters
rect要转化的rectangle
viewrectangle所基于的view
Returns转化后的region
- (CGRect) convertRegion:
toRectToView:
(UIView *) 
view 
将map rect 转化为相对于view的坐标
Parameters
region要转化的 map rect
view返回值所基于的view
Returns基于view的坐标
- ( *) dequeueReusableAnnotationViewWithIdentifier:
(NSString *) 
identifier
从复用内存池中获取制定复用标识的annotation view
Parameters
identifier复用标识
Returnsannotation view
- (void) deselectAnnotation:
annotation
(BOOL) 
animated 
取消选中标注数据对应的view
Parameters
annotation标注数据
animated是否有动画效果
- (void) exchangeOverlayAtIndex:
(NSUInteger) 
withOverlayAtIndex:
(NSUInteger) 
index2 
在交换指定索引处的Overlay
Parameters
index1索引1
index2索引2
- (void) insertOverlay:
aboveOverlay:
sibling 
在指定的Overlay之上插入一个overlay
Parameters
overlay带添加的Overlay
sibling用于指定相对位置的Overlay
- (void) insertOverlay:
(NSUInteger) 
index 
在指定的索引处添加一个Overlay
Parameters
overlay要添加的overlay
index指定的索引
- (void) insertOverlay:
belowOverlay:
sibling 
在指定的Overlay之下插入一个overlay
Parameters
overlay带添加的Overlay
sibling用于指定相对位置的Overlay
- () mapRectThatFits:
调整map rect使其适合地图窗口显示的范围
Parameters
mapRect要调整的map rect
Returns调整后的maprect
edgePadding:
(UIEdgeInsets) 
insets 
调整map rect使其适合地图窗口显示的范围
Parameters
mapRect要调整的map rect
insets嵌入边界
Returns调整后的map rect
- (CGFloat) metersPerPointForZoomLevel:
(CGFloat) 
在指定的缩放级别下, 基于地图中心点, 1 screen point 对应的距离(单位是米)
Parameters
zoomLevel指定的缩放级别, 在[minZoomLevel, maxZoomLevel]范围内
Returns对应的距离(单位是米)
- () regionThatFits:
根据当前地图视图frame的大小调整region范围,返回适合当前地图frame的region,调整过程中当前地图的中心点不会改变
Parameters
region要调整的经纬度范围
Returns调整后的经纬度范围
- (void) removeAnnotation:
annotation
Parameters
annotation要移除的标注
- (void) removeAnnotations:
(NSArray *) 
annotations
移除一组标注
Parameters
annotations要移除的标注数组
- (void) removeOverlay:
移除Overlay
Parameters
overlay要移除的overlay
- (void) removeOverlays:
(NSArray *) 
移除一组Overlay
Parameters
overlays要移除的overlay数组
- ( *) rendererForOverlay:
查找指定overlay对应的Renderer,如果该Renderer尚未创建,返回nil
Parameters
overlay指定的overlay
Returns指定overlay对应的Renderer
- (void) selectAnnotation:
annotation
(BOOL) 
animated 
选中标注数据对应的view
Parameters
annotation标注数据 8
animated是否有动画效果
- (void) setCenterCoordinate:
(CLLocationCoordinate2D) 
centerCoordinate
(BOOL) 
animated 
设定地图中心点经纬度
Parameters
centerCoordinate要设定的地图中心点经纬度
animated是否采用动画效果
- (void) setCompassImage:
(UIImage *) 
设置罗盘的图像
Parameters
image当设置图像非空时,指南针将呈现该图像,如果为nil时,则恢复默认
- (void) setRegion:
(BOOL) 
animated 
设定当前地图的region
Parameters
region要设定的地图范围,用经纬度的方式表示
animated是否采用动画效果
- (void) setUserTrackingMode:
(BOOL) 
animated 
设置追踪用户位置的模式
Parameters
mode要使用的模式
animated是否采用动画效果
- (void) setVisibleMapRect:
(BOOL) 
animated 
设置当前地图可见范围的map rect
Parameters
mapRect要调整的map rect
animated是否采用动画效果
- (void) setVisibleMapRect:
edgePadding:
(UIEdgeInsets) 
(BOOL) 
animated 
设置当前地图可见范围的map rect
Parameters
mapRect要设置的map rect
insets嵌入边界
animated是否采用动画效果
- (void) setZoomLevel:
(double) 
newZoomLevel
(BOOL) 
animated 
设置当前地图的缩放级别zoom level
Parameters
newZoomLevel要设置的zoom level
animated是否采用动画效果
- (void) setZoomLevel:
(double) 
newZoomLevel
(CGPoint) 
(BOOL) 
animated 
设置当前地图的缩放级别zoom level
Parameters
newZoomLevel要设置的zoom level
pivot指定缩放的锚点,屏幕坐标
animated是否采用动画效果
- (void) showAnnotations:
(NSArray *) 
annotations
(BOOL) 
animated 
设置地图使其可以显示数组中所有的annotation, 如果数组中只有一个则直接设置地图中心为annotation的位置
Parameters
annotations需要显示的annotation
animated是否执行动画
- (void) showAnnotations:
(NSArray *) 
annotations
edgePadding:
(UIEdgeInsets) 
(BOOL) 
animated 
设置地图使其可以显示数组中所有的annotation, 如果数组中只有一个则直接设置地图中心为annotation的位置
Parameters
annotations需要显示的annotation
insetsinsets 嵌入边界
animated是否执行动画
- (void) showOverlays:
(NSArray *) 
(BOOL) 
animated 
设置地图使其可以显示数组中所有的overlay
Parameters
overlays需要显示的overlays
animated是否执行动画
- (void) showOverlays:
(NSArray *) 
edgePadding:
(UIEdgeInsets) 
(BOOL) 
animated 
设置地图使其可以显示数组中所有的overlay
Parameters
overlays需要显示的overlays
insetsinsets 嵌入边界
animated是否执行动画
- (UIImage *) takeSnapshotInRect:
(CGRect) 
在指定区域内截图(默认会包含该区域内的annotationView)
Parameters
rect指定的区域
Returns截图image
Provided by category .
(CGRect) 
withCompletionBlock:
(void(^)(UIImage *resultImage, CGRect rect)) 
block 
获得地图当前可视区域截图
Parameters
rect指定截图区域
block回调block
Provided by category .
- (void) updateUserLocationRepresentation:
( *) 
representation
设定UserLocationView样式。如果用户自定义了userlocation的annotationView,或者该annotationView还未添加到地图上,此方法将不起作用
Parameters
representation样式信息对象
- ( *) viewForAnnotation:
annotation
根据标注数据过去标注view
Parameters
annotation标注数据
Returns对应的标注view
- ( *) viewForOverlay:
((deprecated(&use -( *)(id &&)overlay instead&))) 
__attribute__
- (BOOL) allowsAnnotationViewSorting
readwritenonatomicassign
是否允许对annotationView根据zIndex进行排序,默认为YES。当annotationView数量比较大时可能会引起性能问题,可以设置此属性为NO
- (BOOL) allowsBackgroundLocationUpdates
readwritenonatomicassign
是否允许后台定位。默认为NO。只在iOS 9.0之后起作用。设置为YES的时候必须保证 Background Modes 中的 Location updates处于选中状态,否则会抛出异常
Provided by category .
- (NSArray*) annotations
readnonatomicassign
- (CGRect) annotationVisibleRect
readnonatomicassign
annotation 可见区域
- (CLLocationCoordinate2D) centerCoordinate
readwritenonatomicassign
当前地图的中心点经纬度坐标,改变该值时,地图缩放级别不会发生变化
- (CGPoint) compassOrigin
readwritenonatomicassign
罗盘原点位置
- (CGSize) compassSize
readnonatomicassign
罗盘的宽高
- (id&&) delegate
readwritenonatomicweak
地图View的Delegate
- (CLLocationAccuracy) desiredAccuracy
readwritenonatomicassign
设定定位精度。默认为kCLLocationAccuracyBest
Provided by category .
- (CLLocationDistance) distanceFilter
readwritenonatomicassign
设定定位的最小更新距离。默认为kCLDistanceFilterNone,会提示任何移动
Provided by category .
- (CLLocationDegrees) headingFilter
readwritenonatomicassign
设定最小更新角度。默认为1度,设定为kCLHeadingFilterNone会提示任何角度改变
Provided by category .
- (BOOL) isAbroad
readnonatomicassign
标识当前地图中心位置是否在中国范围外。此属性不是精确判断,不能用于边界区域
- () language
readwritenonatomicassign
- () limitMapRect
readwritenonatomicassign
设置可见地图区域的矩形边界,如限制地图只显示北京市范围
- () limitRegion
readwritenonatomicassign
设置可见地图区域的矩形边界,如限制地图只显示北京市范围
- (CGPoint) logoCenter
readwritenonatomicassign
logo位置, 必须在mapView.bounds之内,否则会被忽略
- (CGSize) logoSize
readnonatomicassign
logo的宽高
- () mapType
readwritenonatomicassign
- (double) maxZoomLevel
readwritenonatomicassign
最大缩放级别,最大值为20
- (CGFloat) metersPerPointForCurrentZoomLevel
readnonatomicassign
在当前缩放级别下, 基于地图中心点, 1 screen point 对应的距离(单位是米). 支持KVO
- (double) minZoomLevel
readwritenonatomicassign
最小缩放级别, 最小值为3
- (NSArray*) overlays
readnonatomicassign
Overlay数组
- (BOOL) pausesLocationUpdatesAutomatically
readwritenonatomicassign
指定定位是否会被系统自动暂停。默认为YES。只在iOS 6.0之后起作用
Provided by category .
- () region
readwritenonatomicassign
当前地图的经纬度范围,设定的该范围可能会被调整为适合地图窗口显示的范围
- (CGPoint) scaleOrigin
readwritenonatomicassign
比例尺原点位置
- (CGSize) scaleSize
readnonatomicassign
比例尺的最大宽高
- (BOOL) scrollEnabled
readwritenonatomicassign
是否支持平移,默认为YES
- (NSArray*) selectedAnnotations
readwritenonatomiccopy
处于选中状态的标注数据数据(其count == 0 或 1)
- (BOOL) showsCompass
readwritenonatomicassign
是否显示罗盘,默认为YES
- (BOOL) showsScale
readwritenonatomicassign
是否显示比例尺,默认为YES
- (BOOL) showsUserLocation
readwritenonatomicassign
是否显示用户位置
- (BOOL) showTraffic
readwritenonatomicassign
是否显示交通,默认为NO
- (*) userLocation
readnonatomicassign
当前的位置数据
- (BOOL) userLocationVisible
readnonatomicassign
当前位置再地图中是否可见
- () userTrackingMode
readwritenonatomicassign
定位用户位置的模式
- () visibleMapRect
readwritenonatomicassign
当前地图可见范围的map rect
- (BOOL) zoomEnabled
readwritenonatomicassign
是否支持缩放,默认为YES
- (double) zoomLevel
readwritenonatomicassign
缩放级别, [3, 20]
The documentation for this class was generated from the following file:
© 2017 高德信息技术有限公司 版权所有,保留所有权利。

我要回帖

更多关于 高德地图移除大头针 的文章

 

随机推荐