BaiduMap_IOSSDK_v6.6.6_Docs 6.6.6

载入中...
搜索中...
未找到
BMKMultiPointOverlayView.h
浏览该文件的文档.
1//
2// BMKMultiPointOverlayView.h
3// MapComponent
4//
5// Created by zhaoxiangru on 2021/3/30.
6// Copyright © 2021 Baidu. All rights reserved.
7//
8
9#import "BMKOverlayGLBasicView.h"
10#import "BMKMultiPointOverlay.h"
11
12NS_ASSUME_NONNULL_BEGIN
14@class BMKMultiPointOverlayView;
15@protocol BMKMultiPointOverlayViewDelegate <NSObject>
21- (void)multiPointOverlayView:(BMKMultiPointOverlayView *)multiPointOverlayView didItemTapped:(BMKMultiPointItem *)item;
22@end
23
24
25@interface BMKMultiPointOverlayView : BMKOverlayGLBasicView
27@property (nonatomic, strong) UIImage *icon;
28
30@property (nonatomic, assign) CGSize pointSize;
31
33@property (nonatomic, assign) CGPoint anchor;
34
36@property (nonatomic, readonly) BMKMultiPointOverlay *multiPointOverlay;
37
39@property (assign, nonatomic) BOOL isClickable;
40
42@property (nonatomic, weak, nullable) id<BMKMultiPointOverlayViewDelegate> delegate;
43
47- (nullable instancetype)initWithMultiPointOverlay:(BMKMultiPointOverlay *)multiPointOverlay;
48@end
49
50NS_ASSUME_NONNULL_END
BMKMultiPointOverlay.h
BMKOverlayGLBasicView.h
BMKMultiPointItem
海量点overlay单个点对象（since 6.4.0）
Definition BMKMultiPointOverlay.h:14
BMKMultiPointOverlay
Definition BMKMultiPointOverlay.h:30
BMKMultiPointOverlayView
Definition BMKMultiPointOverlayView.h:26
BMKMultiPointOverlayView::multiPointOverlay
BMKMultiPointOverlay * multiPointOverlay
该View对应的海量点数据对象
Definition BMKMultiPointOverlayView.h:36
BMKMultiPointOverlayView::delegate
id< BMKMultiPointOverlayViewDelegate > delegate
点击海量点图层回调代理
Definition BMKMultiPointOverlayView.h:42
BMKMultiPointOverlayView::icon
UIImage * icon
标注纹理图片
Definition BMKMultiPointOverlayView.h:27
BMKMultiPointOverlayView::isClickable
BOOL isClickable
是否可点击，默认YES
Definition BMKMultiPointOverlayView.h:39
BMKMultiPointOverlayView::anchor
CGPoint anchor
经纬度对应图片中的位置，默认为(0.5,0.5)，范围[0-1] 负值自动取其绝对值 左上角为 (0,0) 右下角为 (1,1)
Definition BMKMultiPointOverlayView.h:33
BMKMultiPointOverlayView::pointSize
CGSize pointSize
纹理渲染大小，默认为icon图片大小
Definition BMKMultiPointOverlayView.h:30
BMKOverlayGLBasicView
该类定义了一个用opengl绘制的OverlayView的基类，如果需要用gdi进行绘制请继承于BMKOverlayPathView类
Definition BMKOverlayGLBasicView.h:14