|
高德地图SDK(导航) V11.2.0501
|
#include <MAMapView.h>
Instance Methods | |
| (NSArray *) | - overlaysInLevel: |
| 取位于level下的overlays Get overlays under level | |
| (void) | - addOverlay: |
| 向地图窗口添加Overlay。 Add Overlay to the map window 需要实现MAMapViewDelegate的-mapView:rendererForOverlay:函数来生成标注对应的Renderer。 Need to implement the -mapView:rendererForOverlay: function of MAMapViewDelegate to generate the corresponding Renderer for the annotation. 默认添加层级:MAGroundOverlay默认层级为MAOverlayLevelAboveRoads,其余overlay类型默认层级为MAOverlayLevelAboveLabels Default level for adding: MAGroundOverlay's default level is MAOverlayLevelAboveRoads, while other overlay types default to MAOverlayLevelAboveLabels. | |
| (void) | - addOverlays: |
| 向地图窗口添加一组Overlay,需要实现MAMapViewDelegate的-mapView:rendererForOverlay:函数来生成标注对应的Renderer To add a set of Overlays to the map window, you need to implement the -mapView:rendererForOverlay: function of MAMapViewDelegate to generate the corresponding Renderer for the annotation 默认添加层级:MAOverlayLevelAboveLabels Default level for adding: MAOverlayLevelAboveLabels | |
| (void) | - addOverlay:level: |
| 向地图窗口添加Overlay,需要实现MAMapViewDelegate的-mapView:rendererForOverlay:函数来生成标注对应的Renderer Add Overlay to the map window,need to implement the -mapView:rendererForOverlay: function of MAMapViewDelegate to generate the corresponding Renderer for the annotation. | |
| (void) | - addOverlays:level: |
| 向地图窗口添加一组Overlay,需要实现MAMapViewDelegate的-mapView:rendererForOverlay:函数来生成标注对应的Renderer To add a set of Overlays to the map window,need to implement the -mapView:rendererForOverlay: function of MAMapViewDelegate to generate the corresponding Renderer for the annotation. | |
| (void) | - removeOverlay: |
| 移除Overlay Remove Overlay | |
| (void) | - removeOverlays: |
| 移除一组Overlay Remove a group of Overlays | |
| (void) | - insertOverlay:atIndex:level: |
| 在指定层级的指定的索引处添加一个Overlay Add an overlay at the specified index of the specified level | |
| (void) | - insertOverlay:aboveOverlay: |
| 在指定的Overlay之上插入一个overlay Insert an overlay above the specified overlay | |
| (void) | - insertOverlay:belowOverlay: |
| 在指定的Overlay之下插入一个overlay Insert an overlay below the specified overlay | |
| (void) | - insertOverlay:atIndex: |
| 在指定的索引处添加一个Overlay Add an Overlay at the specified index | |
| (void) | - exchangeOverlayAtIndex:withOverlayAtIndex: |
| 在MAOverlayLevelAboveLabels上交换指定索引处的Overlay swap the Overlay at the specified index on MAOverlayLevelAboveLabels | |
| (void) | - exchangeOverlayAtIndex:withOverlayAtIndex:atLevel: |
| 交换指定索引处的Overlay Swap Overlay at specified index | |
| (void) | - exchangeOverlay:withOverlay: |
| 交换两个overlay Swap two overlays | |
| (MAOverlayRenderer *) | - rendererForOverlay: |
| 查找指定overlay对应的Renderer,如果该View尚未创建,返回nil Find the Renderer corresponding to the specified overlay, returns nil if the View has not been created | |
| (void) | - showOverlays:animated: |
| 设置地图使其可以显示数组中所有的overlay, 如果数组中只有一个则直接设置地图中心为overlay的位置。 Set the map to display all overlays in the array, if there is only one in the array, directly set the map center to the location of the overlay. | |
| (void) | - showOverlays:edgePadding:animated: |
| 设置地图使其可以显示数组中所有的overlay, 如果数组中只有一个则直接设置地图中心为overlay的位置。 Set the map to display all overlays in the array, if there is only one in the array, directly set the map center to the location of the overlay. | |
| (NSArray *) | - getHittedPolylinesWith:traverseAll: |
| 获取点击选中的polylineRenderer, 注意:开启polylineRenderer的点击选中功能,需设置userInteractionEnabled=YES。since 7.1.0 obtain the selected polylineRenderer by clicking, note: to enable the click selection function of polylineRenderer, userInteractionEnabled=YES needs to be set. since 7.1.0 | |
| (void) | - setCurrentLocation: |
| 多语言设置经纬度 Multilingual setting of latitude and longitude | |
Properties | |
| NSArray * | overlays |
| - (void) addOverlay: | (id< MAOverlay >) | overlay |
向地图窗口添加Overlay。 Add Overlay to the map window 需要实现MAMapViewDelegate的-mapView:rendererForOverlay:函数来生成标注对应的Renderer。 Need to implement the -mapView:rendererForOverlay: function of MAMapViewDelegate to generate the corresponding Renderer for the annotation. 默认添加层级:MAGroundOverlay默认层级为MAOverlayLevelAboveRoads,其余overlay类型默认层级为MAOverlayLevelAboveLabels Default level for adding: MAGroundOverlay's default level is MAOverlayLevelAboveRoads, while other overlay types default to MAOverlayLevelAboveLabels.
| overlay | 要添加的overlay Overlay to be added |
| - (void) addOverlay: | (id< MAOverlay >) | overlay | |
| level: | (MAOverlayLevel) | level | |
向地图窗口添加Overlay,需要实现MAMapViewDelegate的-mapView:rendererForOverlay:函数来生成标注对应的Renderer Add Overlay to the map window,need to implement the -mapView:rendererForOverlay: function of MAMapViewDelegate to generate the corresponding Renderer for the annotation.
| overlay | 要添加的overlay Overlay to be added |
| level | 添加的overlay所在层级 The level of the added overlay |
| - (void) addOverlays: | (NSArray *) | overlays |
向地图窗口添加一组Overlay,需要实现MAMapViewDelegate的-mapView:rendererForOverlay:函数来生成标注对应的Renderer To add a set of Overlays to the map window, you need to implement the -mapView:rendererForOverlay: function of MAMapViewDelegate to generate the corresponding Renderer for the annotation 默认添加层级:MAOverlayLevelAboveLabels Default level for adding: MAOverlayLevelAboveLabels
| overlays | 要添加的overlay数组 Array of overlays to be added |
| - (void) addOverlays: | (NSArray *) | overlays | |
| level: | (MAOverlayLevel) | level | |
向地图窗口添加一组Overlay,需要实现MAMapViewDelegate的-mapView:rendererForOverlay:函数来生成标注对应的Renderer To add a set of Overlays to the map window,need to implement the -mapView:rendererForOverlay: function of MAMapViewDelegate to generate the corresponding Renderer for the annotation.
| overlays | 要添加的overlay数组 Array of overlays to be added |
| level | 添加的overlay所在层级 The level of the added overlay |
交换两个overlay Swap two overlays
| overlay1 | overlay1 |
| overlay2 | overlay2 |
| - (void) exchangeOverlayAtIndex: | (NSUInteger) | index1 | |
| withOverlayAtIndex: | (NSUInteger) | index2 | |
在MAOverlayLevelAboveLabels上交换指定索引处的Overlay swap the Overlay at the specified index on MAOverlayLevelAboveLabels
| index1 | 索引1 index 1 |
| index2 | 索引2 index 2 |
| - (void) exchangeOverlayAtIndex: | (NSUInteger) | index1 | |
| withOverlayAtIndex: | (NSUInteger) | index2 | |
| atLevel: | (MAOverlayLevel) | level | |
交换指定索引处的Overlay Swap Overlay at specified index
| index1 | 索引1 index 1 |
| index2 | 索引2 index 2 |
| level | 所处层级 Current hierarchy level |
| - (NSArray *) getHittedPolylinesWith: | (CLLocationCoordinate2D) | tappedCoord | |
| traverseAll: | (BOOL) | traverseAll | |
获取点击选中的polylineRenderer, 注意:开启polylineRenderer的点击选中功能,需设置userInteractionEnabled=YES。since 7.1.0 obtain the selected polylineRenderer by clicking, note: to enable the click selection function of polylineRenderer, userInteractionEnabled=YES needs to be set. since 7.1.0
| tappedCoord | 点击点的坐标 Coordinates of the clicked point |
| traverseAll | 如果有polyline重合情况,是否返回多个。NO: 只返回最上面的 YES:返回所有 If there is an overlap of polylines, whether to return multiple. NO: Only return the topmost one YES: Return all |
在指定的Overlay之上插入一个overlay Insert an overlay above the specified overlay
| overlay | 带添加的Overlay Overlay with addition |
| sibling | 用于指定相对位置的Overlay Overlay for specifying relative position |
| - (void) insertOverlay: | (id< MAOverlay >) | overlay | |
| atIndex: | (NSUInteger) | index | |
在指定的索引处添加一个Overlay Add an Overlay at the specified index
| overlay | 要添加的overlay Overlay to be added |
| index | 指定的索引 the specified index |
| - (void) insertOverlay: | (id< MAOverlay >) | overlay | |
| atIndex: | (NSUInteger) | index | |
| level: | (MAOverlayLevel) | level | |
在指定层级的指定的索引处添加一个Overlay Add an overlay at the specified index of the specified level
| overlay | 要添加的overlay Overlay to be added |
| index | 指定的索引 Specified index |
| level | Specified level |
注:各个层级的索引分开计数; Note: The indexes of each level are counted separately 若index大于level层级的最大索引,则添加至level层级的最大索引之后。 If the index is greater than the maximum index of the level, it will be added after the maximum index of the level
在指定的Overlay之下插入一个overlay Insert an overlay below the specified overlay
| overlay | 带添加的Overlay Overlay with addition |
| sibling | 用于指定相对位置的Overlay Overlay for specifying relative position |
| - (NSArray *) overlaysInLevel: | (MAOverlayLevel) | level |
取位于level下的overlays Get overlays under level
| level | 层级 Level |
| - (void) removeOverlay: | (id< MAOverlay >) | overlay |
移除Overlay Remove Overlay
| overlay | 要移除的overlay The overlay to be removed |
| - (void) removeOverlays: | (NSArray *) | overlays |
移除一组Overlay Remove a group of Overlays
| overlays | 要移除的overlay数组 The array of overlays to be removed |
| - (MAOverlayRenderer *) rendererForOverlay: | (id< MAOverlay >) | overlay |
查找指定overlay对应的Renderer,如果该View尚未创建,返回nil Find the Renderer corresponding to the specified overlay, returns nil if the View has not been created
| overlay | 指定的overlay Specify the overlay |
| - (void) setCurrentLocation: | (CLLocationCoordinate2D) | location |
多语言设置经纬度 Multilingual setting of latitude and longitude
| location | 位置 Location |
| - (void) showOverlays: | (NSArray *) | overlays | |
| animated: | (BOOL) | animated | |
设置地图使其可以显示数组中所有的overlay, 如果数组中只有一个则直接设置地图中心为overlay的位置。 Set the map to display all overlays in the array, if there is only one in the array, directly set the map center to the location of the overlay.
| overlays | 需要显示的overlays Overlays to be displayed |
| animated | 是否执行动画 whether to execute animation |
| - (void) showOverlays: | (NSArray *) | overlays | |
| edgePadding: | (UIEdgeInsets) | insets | |
| animated: | (BOOL) | animated | |
设置地图使其可以显示数组中所有的overlay, 如果数组中只有一个则直接设置地图中心为overlay的位置。 Set the map to display all overlays in the array, if there is only one in the array, directly set the map center to the location of the overlay.
| overlays | 需要显示的overlays Overlays to be displayed |
| insets | insets 嵌入边界 insets embedded boundaries |
| animated | 是否执行动画 whether to execute animation |
|
readnonatomicassign |
所有添加的Overlay All added Overlays