|
TencentMapSDK_iOS_3D_v4.3.4
|
地图view的点覆盖物相关的API 更多...
#import <QMapView.h>
构造函数 | |
| (void) | - addAnnotation: |
| 向地图窗口添加标注,需要实现QMapViewDelegate的-mapView:viewForAnnotation:函数来生成标注对应的View 更多... | |
| (void) | - addAnnotations: |
| 向地图窗口添加一组标注,需要实现QMapViewDelegate的-mapView:viewForAnnotation:函数来生成标注对应的View 更多... | |
| (void) | - removeAnnotation: |
| 移除标注 更多... | |
| (void) | - removeAnnotations: |
| 移除一组标注 更多... | |
| (QAnnotationView *) | - viewForAnnotation: |
| 查找指定标注对应的View,如果该标注尚未显示,返回nil 更多... | |
| (QAnnotationView *) | - dequeueReusableAnnotationViewWithIdentifier: |
| 根据指定标识查找一个可被复用的标注View,一般在delegate中使用,用此函数来代替新申请一个View 更多... | |
| (void) | - bringAnnotationToFront: |
| 将制定的annotation放在最上层渲染. 更多... | |
| (void) | - selectAnnotation:animated: |
| 选中指定的标注 更多... | |
| (void) | - deselectAnnotation:animated: |
| 取消指定的标注的选中状态 更多... | |
属性 | |
| NSArray * | annotations |
| 当前地图View的已经添加的标注数组 | |
| NSArray< id< QAnnotation > > * | selectedAnnotations |
| 当前选中的annotations | |
地图view的点覆盖物相关的API
| - (void) addAnnotation: | (id< QAnnotation >) | annotation |
向地图窗口添加标注,需要实现QMapViewDelegate的-mapView:viewForAnnotation:函数来生成标注对应的View
| annotation | 要添加的标注 |
扩展类 QMapView.
| - (void) addAnnotations: | (NSArray *) | annotations |
向地图窗口添加一组标注,需要实现QMapViewDelegate的-mapView:viewForAnnotation:函数来生成标注对应的View
| annotations | 要添加的标注数组 |
扩展类 QMapView.
| - (void) bringAnnotationToFront: | (id< QAnnotation >) | DEPRECATED_ATTRIBUTE |
将制定的annotation放在最上层渲染.
| annotation | 指定的annotation |
扩展类 QMapView.
| - (QAnnotationView *) dequeueReusableAnnotationViewWithIdentifier: | (NSString *) | identifier |
根据指定标识查找一个可被复用的标注View,一般在delegate中使用,用此函数来代替新申请一个View
| identifier | 指定标识 |
扩展类 QMapView.
| - (void) deselectAnnotation: | (id< QAnnotation >) | annotation | |
| animated: | (BOOL) | animated | |
| - (void) removeAnnotation: | (id< QAnnotation >) | annotation |
| - (void) removeAnnotations: | (NSArray *) | annotations |
| - (void) selectAnnotation: | (id< QAnnotation >) | annotation | |
| animated: | (BOOL) | animated | |
| - (QAnnotationView *) viewForAnnotation: | (id< QAnnotation >) | annotation |