\doxysection{BMKMap\+View(Overlays\+API)分类 参考}
\hypertarget{category_b_m_k_map_view_07_overlays_a_p_i_08}{}\label{category_b_m_k_map_view_07_overlays_a_p_i_08}\index{BMKMapView(OverlaysAPI)@{BMKMapView(OverlaysAPI)}}


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




{\ttfamily \#include $<$BMKMap\+View.\+h$>$}

\doxysubsubsection*{构造函数}
\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_a01c2f1b76d62e2bb712ec5a53a8b29e5}{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_a45560bf7baebe2ff812207b648f48e4c}{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}{BMKOverlay\+View}} \texorpdfstring{$\ast$}{*}) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_overlays_a_p_i_08_a4912b8cbb22b87ee63f1333b5a5795e9}{view\+For\+Overlay\+:}}
\end{DoxyCompactItemize}
\doxysubsubsection*{属性}
\begin{DoxyCompactItemize}
\item 
NSArray$<$ id$<$ \mbox{\hyperlink{protocol_b_m_k_overlay-p}{BMKOverlay}} $>$ $>$ \texorpdfstring{$\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{函数文档}
\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}{BMKOverlay}} $>$)}]{overlay }\end{DoxyParamCaption}}

向地图窗口添加\+Overlay，需要实现\+BMKMap\+View\+Delegate的-\/map\+View\+:view\+For\+Overlay\+:函数来生成标注对应的\+View 
\begin{DoxyParams}{参数}
{\em overlay} & 要添加的overlay \\
\hline
\end{DoxyParams}
\Hypertarget{category_b_m_k_map_view_07_overlays_a_p_i_08_a01c2f1b76d62e2bb712ec5a53a8b29e5}\label{category_b_m_k_map_view_07_overlays_a_p_i_08_a01c2f1b76d62e2bb712ec5a53a8b29e5} 
\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[{(NSArray$<$ id$<$ \mbox{\hyperlink{protocol_b_m_k_overlay-p}{BMKOverlay}} $>$ $>$ \texorpdfstring{$\ast$}{*})}]{overlays }\end{DoxyParamCaption}}

向地图窗口添加一组\+Overlay，需要实现\+BMKMap\+View\+Delegate的-\/map\+View\+:view\+For\+Overlay\+:函数来生成标注对应的\+View 
\begin{DoxyParams}{参数}
{\em overlays} & 要添加的overlay数组 \\
\hline
\end{DoxyParams}
\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[{(NSUInteger)}]{index1 }\item[{with\+Overlay\+At\+Index\+:(NSUInteger)}]{index2 }\end{DoxyParamCaption}}

在交换指定索引处的\+Overlay 
\begin{DoxyParams}{参数}
{\em index1} & 索引1 \\
\hline
{\em index2} & 索引2 \\
\hline
\end{DoxyParams}
\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}{BMKOverlay}} $>$)}]{overlay }\item[{above\+Overlay\+:(id$<$ \mbox{\hyperlink{protocol_b_m_k_overlay-p}{BMKOverlay}} $>$)}]{sibling }\end{DoxyParamCaption}}

在指定的\+Overlay之上插入一个overlay 
\begin{DoxyParams}{参数}
{\em overlay} & 待添加的\+Overlay \\
\hline
{\em sibling} & 用于指定相对位置的\+Overlay \\
\hline
\end{DoxyParams}
\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}{BMKOverlay}} $>$)}]{overlay }\item[{at\+Index\+:(NSUInteger)}]{index }\end{DoxyParamCaption}}

在指定的索引处添加一个\+Overlay 
\begin{DoxyParams}{参数}
{\em overlay} & 待添加的overlay \\
\hline
{\em index} & 指定的索引 \\
\hline
\end{DoxyParams}
\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}{BMKOverlay}} $>$)}]{overlay }\item[{below\+Overlay\+:(id$<$ \mbox{\hyperlink{protocol_b_m_k_overlay-p}{BMKOverlay}} $>$)}]{sibling }\end{DoxyParamCaption}}

在指定的\+Overlay之下插入一个overlay 
\begin{DoxyParams}{参数}
{\em overlay} & 待添加的\+Overlay \\
\hline
{\em sibling} & 用于指定相对位置的\+Overlay \\
\hline
\end{DoxyParams}
\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}{BMKOverlay}} $>$)}]{overlay }\end{DoxyParamCaption}}

移除\+Overlay 
\begin{DoxyParams}{参数}
{\em overlay} & 要移除的overlay \\
\hline
\end{DoxyParams}
\Hypertarget{category_b_m_k_map_view_07_overlays_a_p_i_08_a45560bf7baebe2ff812207b648f48e4c}\label{category_b_m_k_map_view_07_overlays_a_p_i_08_a45560bf7baebe2ff812207b648f48e4c} 
\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[{(NSArray$<$ id$<$ \mbox{\hyperlink{protocol_b_m_k_overlay-p}{BMKOverlay}} $>$ $>$ \texorpdfstring{$\ast$}{*})}]{overlays }\end{DoxyParamCaption}}

移除一组\+Overlay 
\begin{DoxyParams}{参数}
{\em overlays} & 要移除的overlay数组 \\
\hline
\end{DoxyParams}
\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}{BMKOverlay\+View}} \texorpdfstring{$\ast$}{*}) view\+For\+Overlay\+: \begin{DoxyParamCaption}\item[{(id$<$ \mbox{\hyperlink{protocol_b_m_k_overlay-p}{BMKOverlay}} $>$)}]{overlay }\end{DoxyParamCaption}}

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


\doxysubsection{属性说明}
\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 -\/ (NSArray$<$id $<$\mbox{\hyperlink{protocol_b_m_k_overlay-p}{BMKOverlay}}$>$ $>$\texorpdfstring{$\ast$}{*}) overlays\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [nonatomic]}, {\ttfamily [copy]}}



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



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