\hypertarget{category_b_m_k_map_view_07_overlays_a_p_i_08}{}\doxysection{B\+M\+K\+Map\+View(Overlays\+A\+PI)分类 参考}
\label{category_b_m_k_map_view_07_overlays_a_p_i_08}\index{BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}}


地图\+View类(和\+Overlay操作相关的接口)  




{\ttfamily \#import $<$B\+M\+K\+Map\+View.\+h$>$}

\doxysubsection*{构造函数}
\begin{DoxyCompactItemize}
\item 
(void) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_overlays_a_p_i_08_af85ad6091568df29d9e7c3dea82a1a2b}{add\+Overlay\+:}}
\item 
(void) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_overlays_a_p_i_08_a568000cdd7b6ad918936a3de11925bfa}{add\+Overlays\+:}}
\item 
(void) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_overlays_a_p_i_08_a3be1f2a019df3ff971f6a36f142e55be}{remove\+Overlay\+:}}
\item 
(void) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_overlays_a_p_i_08_ad19776d4334eb140de0b7cdea9f9b7bd}{remove\+Overlays\+:}}
\item 
(void) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_overlays_a_p_i_08_adc0775a2651c1e4099f93d9c1bbffe3d}{insert\+Overlay\+:at\+Index\+:}}
\item 
(void) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_overlays_a_p_i_08_a62c1c29b8e5b408ba0c40411a3c1f50f}{exchange\+Overlay\+At\+Index\+:with\+Overlay\+At\+Index\+:}}
\item 
(void) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_overlays_a_p_i_08_ad94b45c4df7978e3a6095918323496d3}{insert\+Overlay\+:above\+Overlay\+:}}
\item 
(void) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_overlays_a_p_i_08_a73dfe9f74d722b7b1fc477e791f34653}{insert\+Overlay\+:below\+Overlay\+:}}
\item 
(nullable \mbox{\hyperlink{interface_b_m_k_overlay_view}{B\+M\+K\+Overlay\+View}} $\ast$) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_overlays_a_p_i_08_a4912b8cbb22b87ee63f1333b5a5795e9}{view\+For\+Overlay\+:}}
\end{DoxyCompactItemize}
\doxysubsection*{属性}
\begin{DoxyCompactItemize}
\item 
N\+S\+Array$<$ id$<$ \mbox{\hyperlink{protocol_b_m_k_overlay-p}{B\+M\+K\+Overlay}} $>$ $>$ $\ast$ \mbox{\hyperlink{category_b_m_k_map_view_07_overlays_a_p_i_08_aec7f5e4d6bbfb19e848c1ca410b6c137}{overlays}}
\begin{DoxyCompactList}\small\item\em 当前map\+View中已经添加的\+Overlay数组 \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{详细描述}
地图\+View类(和\+Overlay操作相关的接口) 

\doxysubsection{函数文档}
\mbox{\Hypertarget{category_b_m_k_map_view_07_overlays_a_p_i_08_af85ad6091568df29d9e7c3dea82a1a2b}\label{category_b_m_k_map_view_07_overlays_a_p_i_08_af85ad6091568df29d9e7c3dea82a1a2b}} 
\index{BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}!addOverlay:@{addOverlay:}}
\index{addOverlay:@{addOverlay:}!BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}}
\doxysubsubsection{\texorpdfstring{addOverlay:}{addOverlay:}}
{\footnotesize\ttfamily -\/ (void) add\+Overlay\+: \begin{DoxyParamCaption}\item[{(id$<$ \mbox{\hyperlink{protocol_b_m_k_overlay-p}{B\+M\+K\+Overlay}} $>$)}]{overlay }\end{DoxyParamCaption}}

向地图窗口添加\+Overlay，需要实现\+B\+M\+K\+Map\+View\+Delegate的-\/map\+View\+:view\+For\+Overlay\+:函数来生成标注对应的\+View 
\begin{DoxyParams}{参数}
{\em overlay} & 要添加的overlay \\
\hline
\end{DoxyParams}


扩展类 \mbox{\hyperlink{interface_b_m_k_map_view_af85ad6091568df29d9e7c3dea82a1a2b}{B\+M\+K\+Map\+View}}.

\mbox{\Hypertarget{category_b_m_k_map_view_07_overlays_a_p_i_08_a568000cdd7b6ad918936a3de11925bfa}\label{category_b_m_k_map_view_07_overlays_a_p_i_08_a568000cdd7b6ad918936a3de11925bfa}} 
\index{BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}!addOverlays:@{addOverlays:}}
\index{addOverlays:@{addOverlays:}!BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}}
\doxysubsubsection{\texorpdfstring{addOverlays:}{addOverlays:}}
{\footnotesize\ttfamily -\/ (void) add\+Overlays\+: \begin{DoxyParamCaption}\item[{(N\+S\+Array$<$ id$<$ \mbox{\hyperlink{protocol_b_m_k_overlay-p}{B\+M\+K\+Overlay}} $>$$>$ $\ast$)}]{overlays }\end{DoxyParamCaption}}

向地图窗口添加一组\+Overlay，需要实现\+B\+M\+K\+Map\+View\+Delegate的-\/map\+View\+:view\+For\+Overlay\+:函数来生成标注对应的\+View 
\begin{DoxyParams}{参数}
{\em overlays} & 要添加的overlay数组 \\
\hline
\end{DoxyParams}


扩展类 \mbox{\hyperlink{interface_b_m_k_map_view_a568000cdd7b6ad918936a3de11925bfa}{B\+M\+K\+Map\+View}}.

\mbox{\Hypertarget{category_b_m_k_map_view_07_overlays_a_p_i_08_a62c1c29b8e5b408ba0c40411a3c1f50f}\label{category_b_m_k_map_view_07_overlays_a_p_i_08_a62c1c29b8e5b408ba0c40411a3c1f50f}} 
\index{BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}!exchangeOverlayAtIndex:withOverlayAtIndex:@{exchangeOverlayAtIndex:withOverlayAtIndex:}}
\index{exchangeOverlayAtIndex:withOverlayAtIndex:@{exchangeOverlayAtIndex:withOverlayAtIndex:}!BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}}
\doxysubsubsection{\texorpdfstring{exchangeOverlayAtIndex:withOverlayAtIndex:}{exchangeOverlayAtIndex:withOverlayAtIndex:}}
{\footnotesize\ttfamily -\/ (void) exchange\+Overlay\+At\+Index\+: \begin{DoxyParamCaption}\item[{(N\+S\+U\+Integer)}]{index1 }\item[{with\+Overlay\+At\+Index\+:(N\+S\+U\+Integer)}]{index2 }\end{DoxyParamCaption}}

在交换指定索引处的\+Overlay 
\begin{DoxyParams}{参数}
{\em index1} & 索引1 \\
\hline
{\em index2} & 索引2 \\
\hline
\end{DoxyParams}


扩展类 \mbox{\hyperlink{interface_b_m_k_map_view_a62c1c29b8e5b408ba0c40411a3c1f50f}{B\+M\+K\+Map\+View}}.

\mbox{\Hypertarget{category_b_m_k_map_view_07_overlays_a_p_i_08_ad94b45c4df7978e3a6095918323496d3}\label{category_b_m_k_map_view_07_overlays_a_p_i_08_ad94b45c4df7978e3a6095918323496d3}} 
\index{BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}!insertOverlay:aboveOverlay:@{insertOverlay:aboveOverlay:}}
\index{insertOverlay:aboveOverlay:@{insertOverlay:aboveOverlay:}!BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}}
\doxysubsubsection{\texorpdfstring{insertOverlay:aboveOverlay:}{insertOverlay:aboveOverlay:}}
{\footnotesize\ttfamily -\/ (void) insert\+Overlay\+: \begin{DoxyParamCaption}\item[{(id$<$ \mbox{\hyperlink{protocol_b_m_k_overlay-p}{B\+M\+K\+Overlay}} $>$)}]{overlay }\item[{above\+Overlay\+:(id$<$ \mbox{\hyperlink{protocol_b_m_k_overlay-p}{B\+M\+K\+Overlay}} $>$)}]{sibling }\end{DoxyParamCaption}}

在指定的\+Overlay之上插入一个overlay 
\begin{DoxyParams}{参数}
{\em overlay} & 待添加的\+Overlay \\
\hline
{\em sibling} & 用于指定相对位置的\+Overlay \\
\hline
\end{DoxyParams}


扩展类 \mbox{\hyperlink{interface_b_m_k_map_view_ad94b45c4df7978e3a6095918323496d3}{B\+M\+K\+Map\+View}}.

\mbox{\Hypertarget{category_b_m_k_map_view_07_overlays_a_p_i_08_adc0775a2651c1e4099f93d9c1bbffe3d}\label{category_b_m_k_map_view_07_overlays_a_p_i_08_adc0775a2651c1e4099f93d9c1bbffe3d}} 
\index{BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}!insertOverlay:atIndex:@{insertOverlay:atIndex:}}
\index{insertOverlay:atIndex:@{insertOverlay:atIndex:}!BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}}
\doxysubsubsection{\texorpdfstring{insertOverlay:atIndex:}{insertOverlay:atIndex:}}
{\footnotesize\ttfamily -\/ (void) insert\+Overlay\+: \begin{DoxyParamCaption}\item[{(id$<$ \mbox{\hyperlink{protocol_b_m_k_overlay-p}{B\+M\+K\+Overlay}} $>$)}]{overlay }\item[{at\+Index\+:(N\+S\+U\+Integer)}]{index }\end{DoxyParamCaption}}

在指定的索引处添加一个\+Overlay 
\begin{DoxyParams}{参数}
{\em overlay} & 待添加的overlay \\
\hline
{\em index} & 指定的索引 \\
\hline
\end{DoxyParams}


扩展类 \mbox{\hyperlink{interface_b_m_k_map_view_adc0775a2651c1e4099f93d9c1bbffe3d}{B\+M\+K\+Map\+View}}.

\mbox{\Hypertarget{category_b_m_k_map_view_07_overlays_a_p_i_08_a73dfe9f74d722b7b1fc477e791f34653}\label{category_b_m_k_map_view_07_overlays_a_p_i_08_a73dfe9f74d722b7b1fc477e791f34653}} 
\index{BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}!insertOverlay:belowOverlay:@{insertOverlay:belowOverlay:}}
\index{insertOverlay:belowOverlay:@{insertOverlay:belowOverlay:}!BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}}
\doxysubsubsection{\texorpdfstring{insertOverlay:belowOverlay:}{insertOverlay:belowOverlay:}}
{\footnotesize\ttfamily -\/ (void) insert\+Overlay\+: \begin{DoxyParamCaption}\item[{(id$<$ \mbox{\hyperlink{protocol_b_m_k_overlay-p}{B\+M\+K\+Overlay}} $>$)}]{overlay }\item[{below\+Overlay\+:(id$<$ \mbox{\hyperlink{protocol_b_m_k_overlay-p}{B\+M\+K\+Overlay}} $>$)}]{sibling }\end{DoxyParamCaption}}

在指定的\+Overlay之下插入一个overlay 
\begin{DoxyParams}{参数}
{\em overlay} & 待添加的\+Overlay \\
\hline
{\em sibling} & 用于指定相对位置的\+Overlay \\
\hline
\end{DoxyParams}


扩展类 \mbox{\hyperlink{interface_b_m_k_map_view_a73dfe9f74d722b7b1fc477e791f34653}{B\+M\+K\+Map\+View}}.

\mbox{\Hypertarget{category_b_m_k_map_view_07_overlays_a_p_i_08_a3be1f2a019df3ff971f6a36f142e55be}\label{category_b_m_k_map_view_07_overlays_a_p_i_08_a3be1f2a019df3ff971f6a36f142e55be}} 
\index{BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}!removeOverlay:@{removeOverlay:}}
\index{removeOverlay:@{removeOverlay:}!BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}}
\doxysubsubsection{\texorpdfstring{removeOverlay:}{removeOverlay:}}
{\footnotesize\ttfamily -\/ (void) remove\+Overlay\+: \begin{DoxyParamCaption}\item[{(id$<$ \mbox{\hyperlink{protocol_b_m_k_overlay-p}{B\+M\+K\+Overlay}} $>$)}]{overlay }\end{DoxyParamCaption}}

移除\+Overlay 
\begin{DoxyParams}{参数}
{\em overlay} & 要移除的overlay \\
\hline
\end{DoxyParams}


扩展类 \mbox{\hyperlink{interface_b_m_k_map_view_a3be1f2a019df3ff971f6a36f142e55be}{B\+M\+K\+Map\+View}}.

\mbox{\Hypertarget{category_b_m_k_map_view_07_overlays_a_p_i_08_ad19776d4334eb140de0b7cdea9f9b7bd}\label{category_b_m_k_map_view_07_overlays_a_p_i_08_ad19776d4334eb140de0b7cdea9f9b7bd}} 
\index{BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}!removeOverlays:@{removeOverlays:}}
\index{removeOverlays:@{removeOverlays:}!BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}}
\doxysubsubsection{\texorpdfstring{removeOverlays:}{removeOverlays:}}
{\footnotesize\ttfamily -\/ (void) remove\+Overlays\+: \begin{DoxyParamCaption}\item[{(N\+S\+Array$<$ id$<$ \mbox{\hyperlink{protocol_b_m_k_overlay-p}{B\+M\+K\+Overlay}} $>$$>$ $\ast$)}]{overlays }\end{DoxyParamCaption}}

移除一组\+Overlay 
\begin{DoxyParams}{参数}
{\em overlays} & 要移除的overlay数组 \\
\hline
\end{DoxyParams}


扩展类 \mbox{\hyperlink{interface_b_m_k_map_view_ad19776d4334eb140de0b7cdea9f9b7bd}{B\+M\+K\+Map\+View}}.

\mbox{\Hypertarget{category_b_m_k_map_view_07_overlays_a_p_i_08_a4912b8cbb22b87ee63f1333b5a5795e9}\label{category_b_m_k_map_view_07_overlays_a_p_i_08_a4912b8cbb22b87ee63f1333b5a5795e9}} 
\index{BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}!viewForOverlay:@{viewForOverlay:}}
\index{viewForOverlay:@{viewForOverlay:}!BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}}
\doxysubsubsection{\texorpdfstring{viewForOverlay:}{viewForOverlay:}}
{\footnotesize\ttfamily -\/ (nullable \mbox{\hyperlink{interface_b_m_k_overlay_view}{B\+M\+K\+Overlay\+View}} $\ast$) view\+For\+Overlay\+: \begin{DoxyParamCaption}\item[{(id$<$ \mbox{\hyperlink{protocol_b_m_k_overlay-p}{B\+M\+K\+Overlay}} $>$)}]{overlay }\end{DoxyParamCaption}}

查找指定overlay对应的\+View，如果该\+View尚未创建，返回nil 
\begin{DoxyParams}{参数}
{\em overlay} & 指定的overlay 指定overlay对应的\+View \\
\hline
\end{DoxyParams}


扩展类 \mbox{\hyperlink{interface_b_m_k_map_view_a4912b8cbb22b87ee63f1333b5a5795e9}{B\+M\+K\+Map\+View}}.



\doxysubsection{属性说明}
\mbox{\Hypertarget{category_b_m_k_map_view_07_overlays_a_p_i_08_aec7f5e4d6bbfb19e848c1ca410b6c137}\label{category_b_m_k_map_view_07_overlays_a_p_i_08_aec7f5e4d6bbfb19e848c1ca410b6c137}} 
\index{BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}!overlays@{overlays}}
\index{overlays@{overlays}!BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}}
\doxysubsubsection{\texorpdfstring{overlays}{overlays}}
{\footnotesize\ttfamily -\/ (N\+S\+Array$<$id $<$\mbox{\hyperlink{protocol_b_m_k_overlay-p}{B\+M\+K\+Overlay}}$>$ $>$$\ast$) overlays\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [nonatomic]}, {\ttfamily [copy]}}



当前map\+View中已经添加的\+Overlay数组 



扩展类 \mbox{\hyperlink{interface_b_m_k_map_view_aec7f5e4d6bbfb19e848c1ca410b6c137}{B\+M\+K\+Map\+View}}.



该分类的文档由以下文件生成\+:\begin{DoxyCompactItemize}
\item 
Baidu\+Map\+A\+P\+I\+\_\+\+Map.\+framework/\+Headers/\mbox{\hyperlink{_b_m_k_map_view_8h}{B\+M\+K\+Map\+View.\+h}}\end{DoxyCompactItemize}
