14 #import
<CoreLocation/CoreLocation.h>
15 #import <UIKit/UIKit.h>
23
LMKMapTypeStandardDay,
24
LMKMapTypeStandardNight,
46 -
(instancetype)initWithFrame:(CGRect)frame
47
projectionType:(LMKMapProjectionType)type
48
hiddenVectorMap:(BOOL)hiddenVectorMap;
53 @property (nonatomic, weak)
id<LMKMapViewDelegate>
delegate;
91 -
(void)setCenterCoordinate:(CLLocationCoordinate2D)centerCoordinate
animated:(BOOL)animated;
103 -
(void)setCompassScreenPoint:(CGPoint)screenPoint
animated:(BOOL)animated;
167 -
(void)setVisibleMapRect:(
LMKMapRect)visibleMapRect
animated:(BOOL)animated;
175 -
(CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate
toPointToView:(UIView*)view;
183 -
(CLLocationCoordinate2D)convertPoint:(CGPoint)point
toCoordinateFromView:(UIView*)view;
190 -
(instancetype)initWithFrame:(CGRect)frame;
195 -
(void)setScrollEnabled:(BOOL)enabled;
200 -
(void)setZoomEnabled:(BOOL)enabled;
205 -
(void)setRotateEnabled:(BOOL)enabled;
210 -
(void)setCameraEnabled:(BOOL)enabled;
217 -
(void)setStyleFileName:(NSString *)styleFileName
andIconsFileName:(NSString *)iconsFileName;
225 #pragma mark - LMKMapView
(GeoJSONLayer)
237 -
(void)destroyGeojsonOverlay;
241 #pragma mark - LMKMapView (Tools)
255 -
(void)geo2lonlat_withPixel20X:(
int)pixel20X
pixel20Y:(
int)pixel20Y
256 lon:(
double *)outLon lat:(
double *)outLat;
266 -
(void)lonlat2geo_withLon:(
double)lon
lat:(
double)lat
267 geoX:(
int *)outPixel20X geoY:(
int *)outPixel20Y;
277 -
(void)geo2map_withPixel20X:(
int)pixel20X
pixel20Y:(
int)pixel20Y
278 mapX:(
float *)outMapX mapY:(
float *)outMapY;
288 -
(void)map2geo_withMapX:(
float)mapX
mapY:(
float)mapY
289 geoX:(
int *)outPixel20X geoY:(
int *)outPixel20Y;
299 -
(void)win2map_withWinX:(
double)winX
winY:(
double)winY
300 mapX:(
float *)outMapX mapY:(
float *)outMapY;
310 -
(void)map2win_withMapX:(
float)mapX
mapY:(
float)mapY
311 winX:(
double *)outWinX winY:(
double *)outWinY;
321 -
(float)getMapLenWithWinLen:(
int)winPixelLen
byY:(
int)winY;
330 -
(float)getMapLenWithWinLen:(
int)winPixelLen;
339 -
(float)getMapLenWithGeoLen:(
int)geoPixelLen;
348 -
(float)getGeoLenWithWinLen:(
int)winPixelLen;
357 -
(void)setMapcenterByGeoPointX:(
int)x
Y:(
int)y;
366 -
(void)getMapcenterWithGeoPointX:(
int)x
Y:(
int)y;
372 -
(float)getMapZoomer;
379 -
(CGFloat)calculatePointA:(CLLocationCoordinate2D)pointA
andPointB:(CLLocationCoordinate2D)pointB;
388 -
(CGFloat)calculatePointA:(CLLocationCoordinate2D)pointA
andPointB:(CLLocationCoordinate2D)pointB
andPointC:(CLLocationCoordinate2D)pointC
andPointD:(CLLocationCoordinate2D)pointD;
393 #pragma mark - LMKMapView (Snapshot)
404 -
(UIImage *)takeSnapshotInRect:(CGRect)rect;
408 #pragma mark - LMKMapView (Annotation)
420 -
(void)showAnnotations:(NSArray*)annotations animated:(BOOL)animated;
432 -
(void)addAnnotations:(NSArray*)annotations;
444 -
(void)removeAnnotations:(NSArray*)annotations;
449 @property (nonatomic,
readonly) NSArray* annotations;
451 #pragma mark - Annotation system
delegate
472
didChangeDragState:(LMKAnnotationViewDragState)newState
473
fromOldState:(LMKAnnotationViewDragState)oldState;
480 -
(void)annotationView:(
LMKAnnotationView*)annotationView
calloutAccessoryControlTapped:(UIControl*)control;
493 - (
LMKAnnotationView*)dequeueReusableAnnotationViewWithIdentifier:(NSString*)identifier;
500
LMKOverlayLevelAboveRoads = 0,
501
LMKOverlayLevelAboveLabels
512 @property (nonatomic,
readonly) NSArray* overlays;
526 -
(void)addOverlays:(NSArray*)overlays;
532 -
(void)removeOverlay:(
id<
LMKOverlay>)overlay;
538 -
(void)removeOverlays:(NSArray*)overlays;
559 -
(void)insertOverlay:(
id<
LMKOverlay>)overlay
atIndex:(NSUInteger)index;
566 -
(void)exchangeOverlayAtIndex:(NSUInteger)index1
withOverlayAtIndex:(NSUInteger)index2;
585 -
(void)addCustomDrawOverlays:(NSArray *)customOverlays;
596 -
(void)removeAllCustomDrawOverlays;
601 #pragma mark - LMKMapViewDelegate
613 -
(void)mapViewRenderOver:(
LMKMapView *)mapView;
619 -
(void)mapViewWillMove:(
LMKMapView *)mapView;
625 -
(void)mapViewZoomOrMoveFinish:(
LMKMapView *)mapView;
640 -
(void)mapView:(
LMKMapView*)mapView
didAddAnnotationViews:(NSArray*)views;
678 -
(void)mapView:(
LMKMapView*)mapView
annotationView:(
LMKAnnotationView*)view
didChangeDragState:(LMKAnnotationViewDragState)newState
fromOldState:(LMKAnnotationViewDragState)oldState;
693 -
(void)mapView:(
LMKMapView*)mapView
didAddOverlayViews:(NSArray*)views;
700 -
(void)mapView:(
LMKMapView*)mapView
didSingleTappedAtCoordinate:(CLLocationCoordinate2D)coordinate;
707 -
(void)mapView:(
LMKMapView*)mapView
didLongPressedAtCoordinate:(CLLocationCoordinate2D)coordinate;
715 -
(void)mapView:(
LMKMapView*)mapView
didUpdateUserLocation:(
LMKUserLocation*)userLocation
updatingLocation:(BOOL)updatingLocation;
722 -
(void)mapView:(
LMKMapView
*)mapView didTouchPois:(NSArray *)pois;
733 -
(NSString *)mapView:(
LMKMapView *)mapView
requireTileURLWithTileX:(
int)tileX
tileY:(
int)tileY tileZ:(
int)tileZ
projection:(LMKMapProjectionType)proj;
745 -
(NSString *)mapView:(
LMKMapView *)mapView
getGeoJsonServerUrlWithMinLat:(
double)minLat
minLon:(
double)minLon maxLat:(
double)maxLat maxLon:(
double)maxLon meshID:(
long long)meshID;
定位信息类
Definition: LMKUserLocation.h:15
地图View关于标注的类别
Definition: LMKMapView.h:413
该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
Definition: LMKOverlay.h:14
地图view
Definition: LMKMapView.h:36
BOOL showsUserLocation
是否显示用户位置
Definition: LMKMapView.h:115
CGFloat overlooking
地图俯视角度,俯视角度 0 - 45度,0度为:视角从正上方,向下看
Definition: LMKMapView.h:68
CGFloat maxZoomInLevel
设置地图可放大的最大级别,取值区间为[19,22],默认为19
Definition: LMKMapView.h:74
LMKMapType mapType
地图类型,支持普通地图和夜间地图
Definition: LMKMapView.h:58
Definition: LMKMapView.h:227
BOOL getverifyResult()
返回专业版权限检验结果,使用专业版功能前请将鉴权文件product.sn和deviceid.dat放入LDMap.bundle主目录下。若要申请使用专业版功能,请访问http://dev.ishowchina.com/ios/map/index.html了解详细信息。
CGPoint scaleRightBottomOrigin
比例尺右下角原点位置,设置的值如果比例尺显示超出bounds范围则不生效
Definition: LMKMapView.h:155
BOOL showsScale
是否显示比例尺
Definition: LMKMapView.h:145
地图view的delegate
Definition: LMKMapView.h:606
BOOL showsBlueRoadNet
是否显示蓝色路网,蓝色路网:用于表示地图中存在实景数据的路段。
Definition: LMKMapView.h:111
typedef NS_ENUM(NSUInteger, LMKMapType)
地图类型,支持标准地图和导航地图
Definition: LMKMapView.h:22
地图view关于overlay类别
Definition: LMKMapView.h:507
标注view
Definition: LMKAnnotationView.h:27
CGPoint logoCenter
logo位置, 必须在mapView.bounds之内,否则会被忽略
Definition: LMKMapView.h:130
CGFloat zoomLevel
地图比例尺级别,可使用的地图比例尺级别的取值区间在3到maxZoomInLevel之间。
Definition: LMKMapView.h:79
CGPoint screenAnchor
地图的视图锚点。坐标系归一化,(0, 0)为LMKMapView左上角,(1,
1)为右下角。默认为(0.5, 0.5),即当前地图的视图中心。
Definition: LMKMapView.h:135
CGSize logoSize
logo的宽高
Definition: LMKMapView.h:140
id< LMKMapViewDelegate > delegate
LMKMapViewDelegate 代理
Definition: LMKMapView.h:53
该类为标注点的protocol,提供了标注类的基本信息函数
Definition: LMKAnnotation.h:15
CGFloat rotation
地图旋转角度,当前可使用的范围为-180~180度,大于 0度 时为逆时针旋转
Definition: LMKMapView.h:63
地图view关于截图的类别
Definition: LMKMapView.h:397
地图view关于自定义OpenGL绘制 overlay类别
Definition: LMKMapView.h:573
该类是地图覆盖物View的基类, 提供绘制overlay的接口但并无实际的实现
Definition: LMKOverlayView.h:19
BOOL touchPOIEnabled
是否支持单击地图获取POI信息,默认为YES。 对应的回调是 -
(void)mapView:(LMKMapView *)mapView didTouchP...
Definition: LMKMapView.h:121
BOOL showsLogo
是否在地图左下角显示logo
Definition: LMKMapView.h:107
geoJson线覆盖物的样式
Definition: LMKGeoJSONLayerOptions.h:27
用户自定义OpenGL绘制类
Definition: LMKCustomDrawOverlay.h:15
BOOL showsCompass
显示指南针标志位,为YES时显示,默认是YES
Definition: LMKMapView.h:96
LMKMapRect visibleMapRect
当前地图的平面投影(20级像素坐标)可视范围
Definition: LMKMapView.h:160
BOOL showTraffic
是否显示交通
Definition: LMKMapView.h:150
CLLocationCoordinate2D centerCoordinate
当前地图的中心点,改变该值时,地图的比例尺级别不会发生变化
Definition: LMKMapView.h:84
LMKUserLocation * userLocation
当前的位置数据
Definition: LMKMapView.h:125
平面投影矩形结构定义
Definition: LMKGeometry.h:45