BaiduMap_IOSSDK_v5.2.0_Docs
类方法 | Public 属性 | 属性 | 所有成员列表
BMKGroundOverlay类 参考

该类用于定义一个图片图层 更多...

#import <BMKGroundOverlay.h>

类 BMKGroundOverlay 继承关系图:
BMKMultiPoint <BMKOverlay> BMKMultiPoint <BMKOverlay> <BMKAnnotation> <BMKAnnotation> BMKShape BMKShape <BMKAnnotation> <BMKAnnotation> BMKShape BMKShape

类方法

(BMKGroundOverlay *) + groundOverlayWithPosition:zoomLevel:anchor:icon:
 
(BMKGroundOverlay *) + groundOverlayWithBounds:icon:
 
(BMKGroundOverlay *) + groundOverlayWithPosition:zoomLevel:anchor:icon:
 
(BMKGroundOverlay *) + groundOverlayWithBounds:icon:
 

Public 属性

float zoomLevel
 
CLLocationCoordinate2D _pt
 
BMKCoordinateBounds _bound
 
CGPoint _anchor
 
UIImage * _icon
 
int iconID
 
BOOL isCenterPt
 
int left
 
int bottom
 
int width
 
int height
 

属性

CLLocationCoordinate2D pt
 两种绘制GroundOverlay的方式之一:绘制的位置地理坐标,与anchor配对使用
 
CGPoint anchor
 
BMKCoordinateBounds bound
 两种绘制GroundOverlay的方式之二:绘制的地理区域范围,图片在此区域内合理缩放
 
UIImage * icon
 绘制图片
 
GLfloat alpha
 图片纹理透明度,最终透明度 = 纹理透明度 * alpha,取值范围为[0.0f, 1.0f],默认为1.0f
 
- 属性 继承自 BMKMultiPoint
BMKMapPointpoints
 坐标点数组
 
NSUInteger pointCount
 坐标点的个数
 
- 属性 继承自 BMKShape
NSString * title
 要显示的标题;注意:如果不设置title,无法点击annotation,也无法使用回调函数;
 
NSString * subtitle
 要显示的副标题
 
- 属性 继承自 <BMKAnnotation>
CLLocationCoordinate2D coordinate
 标注view中心坐标.
 
- 属性 继承自 <BMKOverlay>
CLLocationCoordinate2D coordinate
 返回区域中心坐标.
 
BMKMapRect boundingMapRect
 返回区域外接矩形
 

额外继承的成员函数

- 构造函数 继承自 BMKMultiPoint
(void) - getCoordinates:range:
 
(void) - getCoordinates:range:
 
- 构造函数 继承自 <BMKAnnotation>
(NSString *) - title
 
(NSString *) - subtitle
 
(void) - setCoordinate:
 
(NSString *) - title
 
(NSString *) - subtitle
 
(void) - setCoordinate:
 
- 构造函数 继承自 <BMKOverlay>
(BOOL) - intersectsMapRect:
 
(BOOL) - intersectsMapRect:
 
- Protected 属性 继承自 BMKMultiPoint
package BMKMapPoint_points
 
NSUInteger _pointCount
 
BMKMapRect _boundingRect
 

详细描述

该类用于定义一个图片图层

函数文档

◆ groundOverlayWithBounds:icon:() [1/2]

+ (BMKGroundOverlay *) groundOverlayWithBounds: (BMKCoordinateBounds bounds
icon: (UIImage *)  icon 

根据指定区域生成一个groundOverlay

参数
bounds指定的经纬度区域
icon绘制使用的图片
返回
新生成的groundOverlay对象

◆ groundOverlayWithBounds:icon:() [2/2]

+ (BMKGroundOverlay *) groundOverlayWithBounds: (BMKCoordinateBounds bounds
icon: (UIImage *)  icon 

根据指定区域生成一个groundOverlay

参数
bounds指定的经纬度区域
icon绘制使用的图片
返回
新生成的groundOverlay对象

◆ groundOverlayWithPosition:zoomLevel:anchor:icon:() [1/2]

+ (BMKGroundOverlay *) groundOverlayWithPosition: (CLLocationCoordinate2D)  position
zoomLevel: (CGFloat)  zoomLevel
anchor: (CGPoint)  anchor
icon: (UIImage *)  icon 

根据指定经纬度坐标生成一个groundOverlay

参数
position指定的经纬度坐标
zoomLevel不损失精度绘制原始图片的地图等级
anchor绘制图片的锚点
icon绘制使用的图片
返回
新生成的groundOverlay对象

◆ groundOverlayWithPosition:zoomLevel:anchor:icon:() [2/2]

+ (BMKGroundOverlay *) groundOverlayWithPosition: (CLLocationCoordinate2D)  position
zoomLevel: (CGFloat)  zoomLevel
anchor: (CGPoint)  anchor
icon: (UIImage *)  icon 

根据指定经纬度坐标生成一个groundOverlay

参数
position指定的经纬度坐标
zoomLevel不损失精度绘制原始图片的地图等级
anchor绘制图片的锚点
icon绘制使用的图片
返回
新生成的groundOverlay对象

属性说明

◆ anchor

- (CGPoint) anchor
readwritenonatomicassign

用位置绘制时图片的锚点,图片左上角为(0.0f,0.0f),向右向下为正 使用groundOverlayWithPosition初始化时生效


该类的文档由以下文件生成: