\hypertarget{category_b_m_k_map_view_07_annotation_a_p_i_08}{}\doxysection{B\+M\+K\+Map\+View(Annotation\+A\+PI)分类 参考}
\label{category_b_m_k_map_view_07_annotation_a_p_i_08}\index{BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}}


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

\doxysubsection*{构造函数}
\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_a06f49e72fdc87852890e6dcb7f87ee32}{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}{B\+M\+K\+Annotation\+View}} $\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}{B\+M\+K\+Annotation\+View}} $\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_a9c3e7baa4eb65f1a18455fd6a72a743f}{show\+Annotations\+:animated\+:}}
\item 
(void) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_annotation_a_p_i_08_a3771a3f0cb6acb997f5d8cdaebca728a}{show\+Annotations\+:padding\+:animated\+:}}
\item 
(nullable N\+S\+Array$<$ id$<$ \mbox{\hyperlink{protocol_b_m_k_annotation-p}{B\+M\+K\+Annotation}} $>$$>$ $\ast$) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_annotation_a_p_i_08_a0e6f0a1379f32f7441b361208eab7026}{annotations\+In\+Coordinate\+Bounds\+:}}
\end{DoxyCompactItemize}
\doxysubsection*{属性}
\begin{DoxyCompactItemize}
\item 
N\+S\+Array$<$ id$<$ \mbox{\hyperlink{protocol_b_m_k_annotation-p}{B\+M\+K\+Annotation}} $>$ $>$ $\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 
B\+O\+OL \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{函数文档}
\mbox{\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}{B\+M\+K\+Annotation}} $>$)}]{annotation }\end{DoxyParamCaption}}

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


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

\mbox{\Hypertarget{category_b_m_k_map_view_07_annotation_a_p_i_08_a06f49e72fdc87852890e6dcb7f87ee32}\label{category_b_m_k_map_view_07_annotation_a_p_i_08_a06f49e72fdc87852890e6dcb7f87ee32}} 
\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[{(N\+S\+Array$<$ id$<$ \mbox{\hyperlink{protocol_b_m_k_annotation-p}{B\+M\+K\+Annotation}} $>$$>$ $\ast$)}]{annotations }\end{DoxyParamCaption}}

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


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

\mbox{\Hypertarget{category_b_m_k_map_view_07_annotation_a_p_i_08_a0e6f0a1379f32f7441b361208eab7026}\label{category_b_m_k_map_view_07_annotation_a_p_i_08_a0e6f0a1379f32f7441b361208eab7026}} 
\index{BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}!annotationsInCoordinateBounds:@{annotationsInCoordinateBounds:}}
\index{annotationsInCoordinateBounds:@{annotationsInCoordinateBounds:}!BMKMapView(AnnotationAPI)@{BMKMapView(AnnotationAPI)}}
\doxysubsubsection{\texorpdfstring{annotationsInCoordinateBounds:}{annotationsInCoordinateBounds:}}
{\footnotesize\ttfamily -\/ (nullable N\+S\+Array$<$id $<$\mbox{\hyperlink{protocol_b_m_k_annotation-p}{B\+M\+K\+Annotation}}$>$$>$ $\ast$) annotations\+In\+Coordinate\+Bounds\+: \begin{DoxyParamCaption}\item[{(\mbox{\hyperlink{struct_b_m_k_coordinate_bounds}{B\+M\+K\+Coordinate\+Bounds}})}]{bounds }\end{DoxyParamCaption}}

获取矩形区域内的所有annotations 
\begin{DoxyParams}{参数}
{\em bounds} & 矩形区域（经纬度） \\
\hline
\end{DoxyParams}


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

\mbox{\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}{B\+M\+K\+Annotation\+View}} $\ast$) dequeue\+Reusable\+Annotation\+View\+With\+Identifier\+: \begin{DoxyParamCaption}\item[{(N\+S\+String $\ast$)}]{identifier }\end{DoxyParamCaption}}

根据指定标识查找一个可被复用的标注\+View，一般在delegate中使用，用此函数来代替新申请一个\+View 
\begin{DoxyParams}{参数}
{\em identifier} & 指定标识 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回可被复用的标注\+View 
\end{DoxyReturn}


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

\mbox{\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}{B\+M\+K\+Annotation}} $>$)}]{annotation }\item[{animated\+:(B\+O\+OL)}]{animated }\end{DoxyParamCaption}}

取消指定的标注的选中状态，本版暂不支持animate效果 
\begin{DoxyParams}{参数}
{\em annotation} & 指定的标注 \\
\hline
{\em animated} & 本版暂不支持 \\
\hline
\end{DoxyParams}


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

\mbox{\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}{B\+M\+K\+Annotation}} $>$)}]{annotation }\end{DoxyParamCaption}}

移除标注 
\begin{DoxyParams}{参数}
{\em annotation} & 要移除的标注 \\
\hline
\end{DoxyParams}


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

\mbox{\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[{(N\+S\+Array$<$ id$<$ \mbox{\hyperlink{protocol_b_m_k_annotation-p}{B\+M\+K\+Annotation}} $>$ $>$ $\ast$)}]{annotations }\end{DoxyParamCaption}}

移除一组标注 
\begin{DoxyParams}{参数}
{\em annotations} & 要移除的标注数组 \\
\hline
\end{DoxyParams}


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

\mbox{\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}{B\+M\+K\+Annotation}} $>$)}]{annotation }\item[{animated\+:(B\+O\+OL)}]{animated }\end{DoxyParamCaption}}

选中指定的标注，本版暂不支持animate效果 
\begin{DoxyParams}{参数}
{\em annotation} & 指定的标注 \\
\hline
{\em animated} & 本版暂不支持 \\
\hline
\end{DoxyParams}


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

\mbox{\Hypertarget{category_b_m_k_map_view_07_annotation_a_p_i_08_a9c3e7baa4eb65f1a18455fd6a72a743f}\label{category_b_m_k_map_view_07_annotation_a_p_i_08_a9c3e7baa4eb65f1a18455fd6a72a743f}} 
\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[{(N\+S\+Array$<$ id$<$ \mbox{\hyperlink{protocol_b_m_k_annotation-p}{B\+M\+K\+Annotation}} $>$$>$ $\ast$)}]{annotations }\item[{animated\+:(B\+O\+OL)}]{animated }\end{DoxyParamCaption}}

设置地图使显示区域显示所有annotations,如果数组中只有一个则直接设置地图中心为annotation的位置 调用此函数前要确保annotations已添加至地图，否则无效。 
\begin{DoxyParams}{参数}
{\em annotations} & 指定的标注 \\
\hline
{\em animated} & 是否启动动画 \\
\hline
\end{DoxyParams}


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

\mbox{\Hypertarget{category_b_m_k_map_view_07_annotation_a_p_i_08_a3771a3f0cb6acb997f5d8cdaebca728a}\label{category_b_m_k_map_view_07_annotation_a_p_i_08_a3771a3f0cb6acb997f5d8cdaebca728a}} 
\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[{(N\+S\+Array$<$ id$<$ \mbox{\hyperlink{protocol_b_m_k_annotation-p}{B\+M\+K\+Annotation}} $>$$>$ $\ast$)}]{annotations }\item[{padding\+:(U\+I\+Edge\+Insets)}]{padding }\item[{animated\+:(B\+O\+OL)}]{animated }\end{DoxyParamCaption}}

设置地图使显示区域显示所有annotations,如果数组中只有一个则直接设置地图中心为annotation的位置,since 6.\+5.\+7 调用此函数前要确保annotations已添加至地图，否则无效。 
\begin{DoxyParams}{参数}
{\em annotations} & 指定的标注 \\
\hline
{\em padding} & 适配边界 \\
\hline
{\em animated} & 是否启动动画 \\
\hline
\end{DoxyParams}


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

\mbox{\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}{B\+M\+K\+Annotation\+View}} $\ast$) view\+For\+Annotation\+: \begin{DoxyParamCaption}\item[{(id$<$ \mbox{\hyperlink{protocol_b_m_k_annotation-p}{B\+M\+K\+Annotation}} $>$)}]{annotation }\end{DoxyParamCaption}}

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


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



\doxysubsection{属性说明}
\mbox{\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 -\/ (N\+S\+Array$<$id $<$\mbox{\hyperlink{protocol_b_m_k_annotation-p}{B\+M\+K\+Annotation}}$>$ $>$$\ast$) annotations\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [nonatomic]}, {\ttfamily [copy]}}



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



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

\mbox{\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 -\/ (B\+O\+OL) is\+Selected\+Annotation\+View\+Front\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



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



扩展类 \mbox{\hyperlink{interface_b_m_k_map_view_a5907ada55d984353e2af6c510a334810}{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}
