iOS高德地图SDK(3D) V11.2.0001

Instance Methods | Properties | List of all members
MAMapView(Overlay) Category Reference

`#import <MAMapView.h>`

## Instance Methods
(NSArray *) | - overlaysInLevel:
| 取位于level下的overlays Get overlays under level More...
(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. More...
(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 More...
(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. More...
(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. More...
(void) | - removeOverlay:
| 移除Overlay Remove Overlay More...
(void) | - removeOverlays:
| 移除一组Overlay Remove a group of Overlays More...
(void) | - insertOverlay:atIndex:level:
| 在指定层级的指定的索引处添加一个Overlay Add an overlay at the specified index of the specified level More...
(void) | - insertOverlay:aboveOverlay:
| 在指定的Overlay之上插入一个overlay Insert an overlay above the specified overlay More...
(void) | - insertOverlay:belowOverlay:
| 在指定的Overlay之下插入一个overlay Insert an overlay below the specified overlay More...
(void) | - insertOverlay:atIndex:
| 在指定的索引处添加一个Overlay Add an Overlay at the specified index More...
(void) | - exchangeOverlayAtIndex:withOverlayAtIndex:
| 在MAOverlayLevelAboveLabels上交换指定索引处的Overlay swap the Overlay at the specified index on MAOverlayLevelAboveLabels More...
(void) | - exchangeOverlayAtIndex:withOverlayAtIndex:atLevel:
| 交换指定索引处的Overlay Swap Overlay at specified index More...
(void) | - exchangeOverlay:withOverlay:
| 交换两个overlay Swap two overlays More...
(MAOverlayRenderer *) | - rendererForOverlay:
| 查找指定overlay对应的Renderer，如果该View尚未创建，返回nil Find the Renderer corresponding to the specified overlay, returns nil if the View has not been created More...
(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. More...
(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. More...
(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 More...
(void) | - setCurrentLocation:
| 多语言设置经纬度 Multilingual setting of latitude and longitude More...

## Properties
NSArray * | overlays

## Method Documentation

## ◆ addOverlay:

- (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.

Parameters

  overlay | 要添加的overlay Overlay to be added

Extends class MAMapView.

## ◆ addOverlay:level:

- (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.

Parameters

  overlay | 要添加的overlay Overlay to be added
  level | 添加的overlay所在层级 The level of the added overlay

Extends class MAMapView.

## ◆ addOverlays:

- (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

Parameters

  overlays | 要添加的overlay数组 Array of overlays to be added

Extends class MAMapView.

## ◆ addOverlays:level:

- (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.

Parameters

  overlays | 要添加的overlay数组 Array of overlays to be added
  level | 添加的overlay所在层级 The level of the added overlay

Extends class MAMapView.

## ◆ exchangeOverlay:withOverlay:

- (void) exchangeOverlay: |  | (id< MAOverlay >) | overlay1
withOverlay: |  | (id< MAOverlay >) | overlay2

交换两个overlay Swap two overlays

Parameters

  overlay1 | overlay1
  overlay2 | overlay2

Extends class MAMapView.

## ◆ exchangeOverlayAtIndex:withOverlayAtIndex:

- (void) exchangeOverlayAtIndex: |  | (NSUInteger) | index1
withOverlayAtIndex: |  | (NSUInteger) | index2

在MAOverlayLevelAboveLabels上交换指定索引处的Overlay swap the Overlay at the specified index on MAOverlayLevelAboveLabels

Parameters

  index1 | 索引1 index 1
  index2 | 索引2 index 2

Extends class MAMapView.

## ◆ exchangeOverlayAtIndex:withOverlayAtIndex:atLevel:

- (void) exchangeOverlayAtIndex: |  | (NSUInteger) | index1
withOverlayAtIndex: |  | (NSUInteger) | index2
atLevel: |  | (MAOverlayLevel) | level

交换指定索引处的Overlay Swap Overlay at specified index

Parameters

  index1 | 索引1 index 1
  index2 | 索引2 index 2
  level | 所处层级 Current hierarchy level

Extends class MAMapView.

## ◆ getHittedPolylinesWith:traverseAll:

- (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

Parameters

  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

Returns
  返回选中的polylineRenderer数组，最上面的在第一个 Return the selected polylineRenderer array, with the topmost one first

Extends class MAMapView.

## ◆ insertOverlay:aboveOverlay:

- (void) insertOverlay: |  | (id< MAOverlay >) | overlay
aboveOverlay: |  | (id< MAOverlay >) | sibling

在指定的Overlay之上插入一个overlay Insert an overlay above the specified overlay

Parameters

  overlay | 带添加的Overlay Overlay with addition
  sibling | 用于指定相对位置的Overlay Overlay for specifying relative position

Extends class MAMapView.

## ◆ insertOverlay:atIndex:

- (void) insertOverlay: |  | (id< MAOverlay >) | overlay
atIndex: |  | (NSUInteger) | index

在指定的索引处添加一个Overlay Add an Overlay at the specified index

Parameters

  overlay | 要添加的overlay Overlay to be added
  index | 指定的索引 the specified index

Extends class MAMapView.

## ◆ insertOverlay:atIndex:level:

- (void) insertOverlay: |  | (id< MAOverlay >) | overlay
atIndex: |  | (NSUInteger) | index
level: |  | (MAOverlayLevel) | level

在指定层级的指定的索引处添加一个Overlay Add an overlay at the specified index of the specified level

Parameters

  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

Extends class MAMapView.

## ◆ insertOverlay:belowOverlay:

- (void) insertOverlay: |  | (id< MAOverlay >) | overlay
belowOverlay: |  | (id< MAOverlay >) | sibling

在指定的Overlay之下插入一个overlay Insert an overlay below the specified overlay

Parameters

  overlay | 带添加的Overlay Overlay with addition
  sibling | 用于指定相对位置的Overlay Overlay for specifying relative position

Extends class MAMapView.

## ◆ overlaysInLevel:

- (NSArray *) overlaysInLevel: |  | (MAOverlayLevel) | level |

取位于level下的overlays Get overlays under level

Parameters

  level | 层级 Level

Extends class MAMapView.

## ◆ removeOverlay:

- (void) removeOverlay: |  | (id< MAOverlay >) | overlay |

移除Overlay Remove Overlay

Parameters

  overlay | 要移除的overlay The overlay to be removed

Extends class MAMapView.

## ◆ removeOverlays:

- (void) removeOverlays: |  | (NSArray *) | overlays |

移除一组Overlay Remove a group of Overlays

Parameters

  overlays | 要移除的overlay数组 The array of overlays to be removed

Extends class MAMapView.

## ◆ rendererForOverlay:

- (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

Parameters

  overlay | 指定的overlay Specify the overlay

Returns
  指定overlay对应的Renderer Specify the Renderer corresponding to the overlay

Extends class MAMapView.

## ◆ setCurrentLocation:

- (void) setCurrentLocation: |  | (CLLocationCoordinate2D) | location |

多语言设置经纬度 Multilingual setting of latitude and longitude

Parameters

  location | 位置 Location

Extends class MAMapView.

## ◆ showOverlays:animated:

- (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.

Parameters

  overlays | 需要显示的overlays Overlays to be displayed
  animated | 是否执行动画 whether to execute animation

Extends class MAMapView.

## ◆ showOverlays:edgePadding:animated:

- (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.

Parameters

  overlays | 需要显示的overlays Overlays to be displayed
  insets | insets 嵌入边界 insets embedded boundaries
  animated | 是否执行动画 whether to execute animation

Extends class MAMapView.

## Property Documentation

## ◆ overlays

- (NSArray*) overlays
| read nonatomic assign

所有添加的Overlay All added Overlays

Extends class MAMapView.

The documentation for this category was generated from the following file:

- MAMapView.h

© 2017 高德信息技术有限公司 版权所有，保留所有权利。