\doxysection{BMKMap\+View(Annotation\+API)分类 参考}
\hypertarget{category_b_m_k_map_view_07_annotation_a_p_i_08}{}\label{category_b_m_k_map_view_07_annotation_a_p_i_08}\index{BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}}


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

\doxysubsubsection*{构造函数}
\begin{DoxyCompactItemize}
\item 
(void) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_annotation_a_p_i_08_a2af9ed45c3a7fd530dd414dc573327b3}{add\+Annotation\+:}}
\item 
(void) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_annotation_a_p_i_08_ae1aca70ed6edc5397d7c7586a5b24995}{add\+Annotations\+:}}
\item 
(void) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_annotation_a_p_i_08_a6b6b75a5bf8b02854767f782a38d2009}{remove\+Annotation\+:}}
\item 
(void) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_annotation_a_p_i_08_aa01d14aab0f84ecbab9750478ea596ff}{remove\+Annotations\+:}}
\item 
(nullable \mbox{\hyperlink{interface_b_m_k_annotation_view}{BMKAnnotation\+View}} \texorpdfstring{$\ast$}{*}) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_annotation_a_p_i_08_aaaafcae8cab8fc07e66ed165c5be4dc3}{view\+For\+Annotation\+:}}
\item 
(nullable \mbox{\hyperlink{interface_b_m_k_annotation_view}{BMKAnnotation\+View}} \texorpdfstring{$\ast$}{*}) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_annotation_a_p_i_08_ab473fa54f25df0323e9f4f020e8eed36}{dequeue\+Reusable\+Annotation\+View\+With\+Identifier\+:}}
\item 
(void) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_annotation_a_p_i_08_a92dbf00c3eff2ede4d4ffd485c4059e0}{select\+Annotation\+:animated\+:}}
\item 
(void) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_annotation_a_p_i_08_a3d6bbc91bc3b66463ee97b3c909e4999}{deselect\+Annotation\+:animated\+:}}
\item 
(void) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_annotation_a_p_i_08_a1ed0c5f975018a32da8b91e652a983c1}{show\+Annotations\+:animated\+:}}
\item 
(void) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_annotation_a_p_i_08_af6abcef411526a46436b914c295497e3}{show\+Annotations\+:padding\+:animated\+:}}
\item 
(nullable NSArray$<$ id$<$ \mbox{\hyperlink{protocol_b_m_k_annotation-p}{BMKAnnotation}} $>$ $>$ \texorpdfstring{$\ast$}{*}) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_annotation_a_p_i_08_ada3c3d6f19177ec347e7d0e8bf5c0268}{annotations\+In\+Coordinate\+Bounds\+:}}
\end{DoxyCompactItemize}
\doxysubsubsection*{属性}
\begin{DoxyCompactItemize}
\item 
NSArray$<$ id$<$ \mbox{\hyperlink{protocol_b_m_k_annotation-p}{BMKAnnotation}} $>$ $>$ \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{category_b_m_k_map_view_07_annotation_a_p_i_08_a870ac87bc4ff7b73ded22f94097f9cf8}{annotations}}
\begin{DoxyCompactList}\small\item\em 当前地图\+View的已经添加的标注数组 \end{DoxyCompactList}\item 
BOOL \mbox{\hyperlink{category_b_m_k_map_view_07_annotation_a_p_i_08_a5907ada55d984353e2af6c510a334810}{is\+Selected\+Annotation\+View\+Front}}
\begin{DoxyCompactList}\small\item\em 设定是否总让选中的annotaion置于最前面 \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{函数文档}
\Hypertarget{category_b_m_k_map_view_07_annotation_a_p_i_08_a2af9ed45c3a7fd530dd414dc573327b3}\label{category_b_m_k_map_view_07_annotation_a_p_i_08_a2af9ed45c3a7fd530dd414dc573327b3} 
\index{BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}!addAnnotation:@{addAnnotation:}}
\index{addAnnotation:@{addAnnotation:}!BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}}
\doxysubsubsection{\texorpdfstring{addAnnotation:}{addAnnotation:}}
{\footnotesize\ttfamily -\/ (void) add\+Annotation\+: \begin{DoxyParamCaption}\item[{(id$<$ \mbox{\hyperlink{protocol_b_m_k_annotation-p}{BMKAnnotation}} $>$)}]{annotation }\end{DoxyParamCaption}}

向地图窗口添加标注，需要实现\+BMKMap\+View\+Delegate的-\/map\+View\+:view\+For\+Annotation\+:函数来生成标注对应的\+View 
\begin{DoxyParams}{参数}
{\em annotation} & 要添加的标注 \\
\hline
\end{DoxyParams}
\Hypertarget{category_b_m_k_map_view_07_annotation_a_p_i_08_ae1aca70ed6edc5397d7c7586a5b24995}\label{category_b_m_k_map_view_07_annotation_a_p_i_08_ae1aca70ed6edc5397d7c7586a5b24995} 
\index{BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}!addAnnotations:@{addAnnotations:}}
\index{addAnnotations:@{addAnnotations:}!BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}}
\doxysubsubsection{\texorpdfstring{addAnnotations:}{addAnnotations:}}
{\footnotesize\ttfamily -\/ (void) add\+Annotations\+: \begin{DoxyParamCaption}\item[{(NSArray$<$ id$<$ \mbox{\hyperlink{protocol_b_m_k_annotation-p}{BMKAnnotation}} $>$ $>$ \texorpdfstring{$\ast$}{*})}]{annotations }\end{DoxyParamCaption}}

向地图窗口添加一组标注，需要实现\+BMKMap\+View\+Delegate的-\/map\+View\+:view\+For\+Annotation\+:函数来生成标注对应的\+View 
\begin{DoxyParams}{参数}
{\em annotations} & 要添加的标注数组 \\
\hline
\end{DoxyParams}
\Hypertarget{category_b_m_k_map_view_07_annotation_a_p_i_08_ada3c3d6f19177ec347e7d0e8bf5c0268}\label{category_b_m_k_map_view_07_annotation_a_p_i_08_ada3c3d6f19177ec347e7d0e8bf5c0268} 
\index{BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}!annotationsInCoordinateBounds:@{annotationsInCoordinateBounds:}}
\index{annotationsInCoordinateBounds:@{annotationsInCoordinateBounds:}!BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}}
\doxysubsubsection{\texorpdfstring{annotationsInCoordinateBounds:}{annotationsInCoordinateBounds:}}
{\footnotesize\ttfamily -\/ (nullable NSArray$<$ id$<$ \mbox{\hyperlink{protocol_b_m_k_annotation-p}{BMKAnnotation}} $>$ $>$ \texorpdfstring{$\ast$}{*}) annotations\+In\+Coordinate\+Bounds\+: \begin{DoxyParamCaption}\item[{(\mbox{\hyperlink{struct_b_m_k_coordinate_bounds}{BMKCoordinate\+Bounds}})}]{bounds }\end{DoxyParamCaption}}

获取矩形区域内的所有annotations 
\begin{DoxyParams}{参数}
{\em bounds} & 矩形区域（经纬度） \\
\hline
\end{DoxyParams}
\Hypertarget{category_b_m_k_map_view_07_annotation_a_p_i_08_ab473fa54f25df0323e9f4f020e8eed36}\label{category_b_m_k_map_view_07_annotation_a_p_i_08_ab473fa54f25df0323e9f4f020e8eed36} 
\index{BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}!dequeueReusableAnnotationViewWithIdentifier:@{dequeueReusableAnnotationViewWithIdentifier:}}
\index{dequeueReusableAnnotationViewWithIdentifier:@{dequeueReusableAnnotationViewWithIdentifier:}!BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}}
\doxysubsubsection{\texorpdfstring{dequeueReusableAnnotationViewWithIdentifier:}{dequeueReusableAnnotationViewWithIdentifier:}}
{\footnotesize\ttfamily -\/ (nullable \mbox{\hyperlink{interface_b_m_k_annotation_view}{BMKAnnotation\+View}} \texorpdfstring{$\ast$}{*}) dequeue\+Reusable\+Annotation\+View\+With\+Identifier\+: \begin{DoxyParamCaption}\item[{(NSString \texorpdfstring{$\ast$}{*})}]{identifier }\end{DoxyParamCaption}}

根据指定标识查找一个可被复用的标注\+View，一般在delegate中使用，用此函数来代替新申请一个\+View 
\begin{DoxyParams}{参数}
{\em identifier} & 指定标识 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回可被复用的标注\+View 
\end{DoxyReturn}
\Hypertarget{category_b_m_k_map_view_07_annotation_a_p_i_08_a3d6bbc91bc3b66463ee97b3c909e4999}\label{category_b_m_k_map_view_07_annotation_a_p_i_08_a3d6bbc91bc3b66463ee97b3c909e4999} 
\index{BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}!deselectAnnotation:animated:@{deselectAnnotation:animated:}}
\index{deselectAnnotation:animated:@{deselectAnnotation:animated:}!BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}}
\doxysubsubsection{\texorpdfstring{deselectAnnotation:animated:}{deselectAnnotation:animated:}}
{\footnotesize\ttfamily -\/ (void) deselect\+Annotation\+: \begin{DoxyParamCaption}\item[{(id$<$ \mbox{\hyperlink{protocol_b_m_k_annotation-p}{BMKAnnotation}} $>$)}]{annotation }\item[{animated\+:(BOOL)}]{animated }\end{DoxyParamCaption}}

取消指定的标注的选中状态，本版暂不支持animate效果 
\begin{DoxyParams}{参数}
{\em annotation} & 指定的标注 \\
\hline
{\em animated} & 本版暂不支持 \\
\hline
\end{DoxyParams}
\Hypertarget{category_b_m_k_map_view_07_annotation_a_p_i_08_a6b6b75a5bf8b02854767f782a38d2009}\label{category_b_m_k_map_view_07_annotation_a_p_i_08_a6b6b75a5bf8b02854767f782a38d2009} 
\index{BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}!removeAnnotation:@{removeAnnotation:}}
\index{removeAnnotation:@{removeAnnotation:}!BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}}
\doxysubsubsection{\texorpdfstring{removeAnnotation:}{removeAnnotation:}}
{\footnotesize\ttfamily -\/ (void) remove\+Annotation\+: \begin{DoxyParamCaption}\item[{(id$<$ \mbox{\hyperlink{protocol_b_m_k_annotation-p}{BMKAnnotation}} $>$)}]{annotation }\end{DoxyParamCaption}}

移除标注 
\begin{DoxyParams}{参数}
{\em annotation} & 要移除的标注 \\
\hline
\end{DoxyParams}
\Hypertarget{category_b_m_k_map_view_07_annotation_a_p_i_08_aa01d14aab0f84ecbab9750478ea596ff}\label{category_b_m_k_map_view_07_annotation_a_p_i_08_aa01d14aab0f84ecbab9750478ea596ff} 
\index{BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}!removeAnnotations:@{removeAnnotations:}}
\index{removeAnnotations:@{removeAnnotations:}!BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}}
\doxysubsubsection{\texorpdfstring{removeAnnotations:}{removeAnnotations:}}
{\footnotesize\ttfamily -\/ (void) remove\+Annotations\+: \begin{DoxyParamCaption}\item[{(NSArray$<$ id$<$ \mbox{\hyperlink{protocol_b_m_k_annotation-p}{BMKAnnotation}} $>$ $>$ \texorpdfstring{$\ast$}{*})}]{annotations }\end{DoxyParamCaption}}

移除一组标注 
\begin{DoxyParams}{参数}
{\em annotations} & 要移除的标注数组 \\
\hline
\end{DoxyParams}
\Hypertarget{category_b_m_k_map_view_07_annotation_a_p_i_08_a92dbf00c3eff2ede4d4ffd485c4059e0}\label{category_b_m_k_map_view_07_annotation_a_p_i_08_a92dbf00c3eff2ede4d4ffd485c4059e0} 
\index{BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}!selectAnnotation:animated:@{selectAnnotation:animated:}}
\index{selectAnnotation:animated:@{selectAnnotation:animated:}!BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}}
\doxysubsubsection{\texorpdfstring{selectAnnotation:animated:}{selectAnnotation:animated:}}
{\footnotesize\ttfamily -\/ (void) select\+Annotation\+: \begin{DoxyParamCaption}\item[{(id$<$ \mbox{\hyperlink{protocol_b_m_k_annotation-p}{BMKAnnotation}} $>$)}]{annotation }\item[{animated\+:(BOOL)}]{animated }\end{DoxyParamCaption}}

选中指定的标注，本版暂不支持animate效果 
\begin{DoxyParams}{参数}
{\em annotation} & 指定的标注 \\
\hline
{\em animated} & 本版暂不支持 \\
\hline
\end{DoxyParams}
\Hypertarget{category_b_m_k_map_view_07_annotation_a_p_i_08_a1ed0c5f975018a32da8b91e652a983c1}\label{category_b_m_k_map_view_07_annotation_a_p_i_08_a1ed0c5f975018a32da8b91e652a983c1} 
\index{BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}!showAnnotations:animated:@{showAnnotations:animated:}}
\index{showAnnotations:animated:@{showAnnotations:animated:}!BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}}
\doxysubsubsection{\texorpdfstring{showAnnotations:animated:}{showAnnotations:animated:}}
{\footnotesize\ttfamily -\/ (void) show\+Annotations\+: \begin{DoxyParamCaption}\item[{(NSArray$<$ id$<$ \mbox{\hyperlink{protocol_b_m_k_annotation-p}{BMKAnnotation}} $>$ $>$ \texorpdfstring{$\ast$}{*})}]{annotations }\item[{animated\+:(BOOL)}]{animated }\end{DoxyParamCaption}}

设置地图使显示区域显示所有annotations,如果数组中只有一个则直接设置地图中心为annotation的位置 调用此函数前要确保annotations已添加至地图，否则无效。 
\begin{DoxyParams}{参数}
{\em annotations} & 指定的标注 \\
\hline
{\em animated} & 是否启动动画 \\
\hline
\end{DoxyParams}
\Hypertarget{category_b_m_k_map_view_07_annotation_a_p_i_08_af6abcef411526a46436b914c295497e3}\label{category_b_m_k_map_view_07_annotation_a_p_i_08_af6abcef411526a46436b914c295497e3} 
\index{BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}!showAnnotations:padding:animated:@{showAnnotations:padding:animated:}}
\index{showAnnotations:padding:animated:@{showAnnotations:padding:animated:}!BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}}
\doxysubsubsection{\texorpdfstring{showAnnotations:padding:animated:}{showAnnotations:padding:animated:}}
{\footnotesize\ttfamily -\/ (void) show\+Annotations\+: \begin{DoxyParamCaption}\item[{(NSArray$<$ id$<$ \mbox{\hyperlink{protocol_b_m_k_annotation-p}{BMKAnnotation}} $>$ $>$ \texorpdfstring{$\ast$}{*})}]{annotations }\item[{padding\+:(UIEdge\+Insets)}]{padding }\item[{animated\+:(BOOL)}]{animated }\end{DoxyParamCaption}}

设置地图使显示区域显示所有annotations,如果数组中只有一个则直接设置地图中心为annotation的位置,since 6.\+5.\+7 调用此函数前要确保annotations已添加至地图，否则无效。 
\begin{DoxyParams}{参数}
{\em annotations} & 指定的标注 \\
\hline
{\em padding} & 适配边界 \\
\hline
{\em animated} & 是否启动动画 \\
\hline
\end{DoxyParams}
\Hypertarget{category_b_m_k_map_view_07_annotation_a_p_i_08_aaaafcae8cab8fc07e66ed165c5be4dc3}\label{category_b_m_k_map_view_07_annotation_a_p_i_08_aaaafcae8cab8fc07e66ed165c5be4dc3} 
\index{BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}!viewForAnnotation:@{viewForAnnotation:}}
\index{viewForAnnotation:@{viewForAnnotation:}!BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}}
\doxysubsubsection{\texorpdfstring{viewForAnnotation:}{viewForAnnotation:}}
{\footnotesize\ttfamily -\/ (nullable \mbox{\hyperlink{interface_b_m_k_annotation_view}{BMKAnnotation\+View}} \texorpdfstring{$\ast$}{*}) view\+For\+Annotation\+: \begin{DoxyParamCaption}\item[{(id$<$ \mbox{\hyperlink{protocol_b_m_k_annotation-p}{BMKAnnotation}} $>$)}]{annotation }\end{DoxyParamCaption}}

查找指定标注对应的\+View，如果该标注尚未显示，返回nil 
\begin{DoxyParams}{参数}
{\em annotation} & 指定的标注 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
指定标注对应的\+View 
\end{DoxyReturn}


\doxysubsection{属性说明}
\Hypertarget{category_b_m_k_map_view_07_annotation_a_p_i_08_a870ac87bc4ff7b73ded22f94097f9cf8}\label{category_b_m_k_map_view_07_annotation_a_p_i_08_a870ac87bc4ff7b73ded22f94097f9cf8} 
\index{BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}!annotations@{annotations}}
\index{annotations@{annotations}!BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}}
\doxysubsubsection{\texorpdfstring{annotations}{annotations}}
{\footnotesize\ttfamily -\/ (NSArray$<$id $<$\mbox{\hyperlink{protocol_b_m_k_annotation-p}{BMKAnnotation}}$>$ $>$\texorpdfstring{$\ast$}{*}) annotations\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [nonatomic]}, {\ttfamily [copy]}}



当前地图\+View的已经添加的标注数组 

\Hypertarget{category_b_m_k_map_view_07_annotation_a_p_i_08_a5907ada55d984353e2af6c510a334810}\label{category_b_m_k_map_view_07_annotation_a_p_i_08_a5907ada55d984353e2af6c510a334810} 
\index{BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}!isSelectedAnnotationViewFront@{isSelectedAnnotationViewFront}}
\index{isSelectedAnnotationViewFront@{isSelectedAnnotationViewFront}!BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}}
\doxysubsubsection{\texorpdfstring{isSelectedAnnotationViewFront}{isSelectedAnnotationViewFront}}
{\footnotesize\ttfamily -\/ (BOOL) is\+Selected\+Annotation\+View\+Front\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



设定是否总让选中的annotaion置于最前面 



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