iOS高德地图SDK(2D)  v5.6.0
MAMapView(Snapshot) Category Reference

地图view关于截图的类别 More...

#import <MAMapView.h>

Instance Methods

(UIImage *) - takeSnapshotInRect:
 在指定区域内截图(默认会包含该区域内的annotationView) More...
 
(void) - takeSnapshotInRect:withCompletionBlock:
 获得地图当前可视区域截图 More...
 

Detailed Description

地图view关于截图的类别

Method Documentation

◆ takeSnapshotInRect:()

- (UIImage *) takeSnapshotInRect: (CGRect)  rect

在指定区域内截图(默认会包含该区域内的annotationView)

Parameters
rect指定的区域
Returns
截图image

Extends class MAMapView.

◆ takeSnapshotInRect:withCompletionBlock:()

- (void) takeSnapshotInRect: (CGRect)  rect
withCompletionBlock: (void(^)(UIImage *resultImage, CGRect rect))  block 

获得地图当前可视区域截图

Parameters
rect指定截图区域
block回调block

Extends class MAMapView.


The documentation for this category was generated from the following file:
© 2017 高德信息技术有限公司 版权所有,保留所有权利。