RCLocationPickerViewControllerDataSource Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | RCLocationPickerViewController.h |
– mapView
获取显示的地图控件
- (UIView *)mapViewReturn Value
在界面上显示的地图控件
Discussion
获取显示的地图控件
Declared In
RCLocationPickerViewController.h
– annotationLayer
获取显示的中心点标记
- (CALayer *)annotationLayerReturn Value
界面上显示的中心点标记
Discussion
获取显示的中心点标记
如不想显示中心点标记,可以返回nil。
Declared In
RCLocationPickerViewController.h
– titleOfPlaceMark:
获取位置标注的名称
- (NSString *)titleOfPlaceMark:(id)placeMarkParameters
placeMark |
位置标注 |
|---|
Return Value
位置标注的名称
Discussion
获取位置标注的名称
Declared In
RCLocationPickerViewController.h
– locationCoordinate2DOfPlaceMark:
获取位置标注的坐标
- (CLLocationCoordinate2D)locationCoordinate2DOfPlaceMark:(id)placeMarkParameters
placeMark |
位置标注 |
|---|
Return Value
位置标注的二维坐标值
Discussion
获取位置标注的坐标
Declared In
RCLocationPickerViewController.h
– setMapViewCenter:animated:
设置地图显示的中心点坐标
- (void)setMapViewCenter:(CLLocationCoordinate2D)location animated:(BOOL)animatedParameters
location |
中心点坐标 |
|---|---|
animated |
是否开启动画效果 |
Discussion
设置地图显示的中心点坐标
Declared In
RCLocationPickerViewController.h
– setMapViewCoordinateRegion:animated:
设置地图显示区域
- (void)setMapViewCoordinateRegion:(MKCoordinateRegion)coordinateRegion animated:(BOOL)animatedParameters
coordinateRegion |
地图显示区域 |
|---|---|
animated |
是否开启动画效果 |
Discussion
设置地图显示区域
Declared In
RCLocationPickerViewController.h
– userSelectPlaceMark:
选择位置标示
- (void)userSelectPlaceMark:(id)placeMarkParameters
placeMark |
选择的位置标注 |
|---|
Discussion
选择位置标示
开发者自己实现的RCLocationPickerViewControllerDataSource可以据此进行特定处理。 当有新的POI列表时,默认选中第一个。
Declared In
RCLocationPickerViewController.h
– mapViewCenter
获取地图当前中心点的坐标
- (CLLocationCoordinate2D)mapViewCenterReturn Value
当前地图中心点
Discussion
获取地图当前中心点的坐标
Declared In
RCLocationPickerViewController.h
– setOnPoiSearchResult:
设置POI搜索完毕后的回调
- (void)setOnPoiSearchResult:(OnPoiSearchResult)poiSearchResultParameters
poiSearchResult |
POI查询结果 |
|---|
Discussion
设置POI搜索完毕后的回调
Declared In
RCLocationPickerViewController.h
– beginFetchPoisOfCurrentLocation
获取当前视野中POI
- (void)beginFetchPoisOfCurrentLocationDiscussion
获取当前视野中POI
Declared In
RCLocationPickerViewController.h
– mapViewScreenShot
获取位置在地图中的缩略图
- (UIImage *)mapViewScreenShotReturn Value
位置在地图中的缩略图
Discussion
获取位置在地图中的缩略图
Declared In
RCLocationPickerViewController.h