\doxysection{BMKAnnotation\+View类 参考}
\hypertarget{interface_b_m_k_annotation_view}{}\label{interface_b_m_k_annotation_view}\index{BMKAnnotationView@{BMKAnnotationView}}


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

类 BMKAnnotation\+View 继承关系图\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{interface_b_m_k_annotation_view}
\end{center}
\end{figure}
\doxysubsubsection*{构造函数}
\begin{DoxyCompactItemize}
\item 
(instancetype) -\/ \mbox{\hyperlink{interface_b_m_k_annotation_view_a4eb08cfda8a3e7cd1531da0f2cf3fe18}{init\+With\+Annotation\+:reuse\+Identifier\+:}}
\item 
(void) -\/ \mbox{\hyperlink{interface_b_m_k_annotation_view_ae74849e624ac0cfaa7695b7cc97ddf23}{prepare\+For\+Reuse}}
\begin{DoxyCompactList}\small\item\em 当view从reuse队列里取出时被调用，默认不做任何事 \end{DoxyCompactList}\item 
(void) -\/ \mbox{\hyperlink{interface_b_m_k_annotation_view_abc0e70812fb7b3bccdbb574ddb578c21}{set\+Selected\+:animated\+:}}
\item 
(BOOL draggable) -\/ \mbox{\hyperlink{interface_b_m_k_annotation_view_a54d15e7cc4e89d89d2233ec7fc408ad9}{\+\_\+\+\_\+\+OSX\+\_\+\+AVAILABLE\+\_\+\+STARTING}}
\begin{DoxyCompactList}\small\item\em 当设为\+YES并实现了set\+Coordinate\+:方法时，支持将view在地图上拖动, i\+OS 3.\+2以后支持 \end{DoxyCompactList}\item 
(\mbox{\hyperlink{_b_m_k_annotation_view_8h_ab76e4a8280e0f3f9fbb13f3ff3a19130}{BMKAnnotation\+View\+Drag\+State}} drag\+State) -\/ \mbox{\hyperlink{interface_b_m_k_annotation_view_a623e818d48c983176a6553104b21a34c}{\+\_\+\+\_\+\+OSX\+\_\+\+AVAILABLE\+\_\+\+STARTING}}
\begin{DoxyCompactList}\small\item\em 当前view的拖动状态, i\+OS 3.\+2以后支持 \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{属性}
\begin{DoxyCompactItemize}
\item 
NSString \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{interface_b_m_k_annotation_view_aba3efdbef49c0301af03ce0d47348358}{reuse\+Identifier}}
\begin{DoxyCompactList}\small\item\em 复用标志 \end{DoxyCompactList}\item 
\mbox{\hyperlink{interface_b_m_k_action_paopao_view}{BMKAction\+Paopao\+View}} \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{interface_b_m_k_annotation_view_af351c55cfa4b90f2e5090f0503ff699c}{paopao\+View}}
\begin{DoxyCompactList}\small\item\em paopao\+View \end{DoxyCompactList}\item 
id$<$ \mbox{\hyperlink{protocol_b_m_k_annotation-p}{BMKAnnotation}} $>$ \mbox{\hyperlink{interface_b_m_k_annotation_view_a466f040671f2235667a4034aba879bb5}{annotation}}
\begin{DoxyCompactList}\small\item\em 关联的annotation \end{DoxyCompactList}\item 
UIImage \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{interface_b_m_k_annotation_view_a3186f78dcb098002e39fd226cbc1c9b6}{image}}
\begin{DoxyCompactList}\small\item\em annotation view显示的图像 \end{DoxyCompactList}\item 
CGPoint \mbox{\hyperlink{interface_b_m_k_annotation_view_a12a4f32e8adc7732c80d772eb403cd61}{center\+Offset}}
\begin{DoxyCompactList}\small\item\em 默认情况下, annotation view的中心位于annotation的坐标位置，可以设置center\+Offset改变view的位置，正的偏移使view朝右下方移动，负的朝左上方，单位是像素 \end{DoxyCompactList}\item 
CGPoint \mbox{\hyperlink{interface_b_m_k_annotation_view_aacdcb492cbbc469803ba50def87f44e5}{callout\+Offset}}
\begin{DoxyCompactList}\small\item\em 默认情况下, 弹出的气泡位于view正中上方，可以设置callout\+Offset改变view的位置，正的偏移使view朝右下方移动，负的朝左上方，单位是像素 \end{DoxyCompactList}\item 
BOOL \mbox{\hyperlink{interface_b_m_k_annotation_view_a18cef771d9b9feeb74a4bc4dd7fba526}{enabled3D}}
\begin{DoxyCompactList}\small\item\em 默认情况下,标注没有3\+D效果，可以设置enabled3\+D改变使用3\+D效果，使得标注在地图旋转和俯视时跟随旋转、俯视 \end{DoxyCompactList}\item 
BOOL \mbox{\hyperlink{interface_b_m_k_annotation_view_ad768885a75146458b4efd168885478fe}{enabled}}
\begin{DoxyCompactList}\small\item\em 默认为\+YES,当为\+NO时view忽略触摸事件 \end{DoxyCompactList}\item 
BOOL \mbox{\hyperlink{interface_b_m_k_annotation_view_a09799664ef861651bd7996f0fbab6483}{selected}}
\begin{DoxyCompactList}\small\item\em 默认为\+NO,初始化时设置为\+YES时会默认弹出气泡。\+V5.2.\+0以后版本可以直接设置该值来控制隐藏和弹出气泡，无需调用强制刷新 \end{DoxyCompactList}\item 
BOOL \mbox{\hyperlink{interface_b_m_k_annotation_view_adef94e946f5b152c59be1cdb5eccfb74}{can\+Show\+Callout}}
\begin{DoxyCompactList}\small\item\em 当为\+YES时，view被选中时会弹出气泡，annotation必须实现了title这个方法 \end{DoxyCompactList}\item 
UIView \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{interface_b_m_k_annotation_view_ae182c0fb7dc1898c4941a123def7f926}{left\+Callout\+Accessory\+View}}
\begin{DoxyCompactList}\small\item\em 显示在气泡左侧的view(使用默认气泡时，view的width最大值为32，height最大值为41，大于则使用最大值） \end{DoxyCompactList}\item 
UIView \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{interface_b_m_k_annotation_view_a65793288845c27e23233373b3e6b6216}{right\+Callout\+Accessory\+View}}
\begin{DoxyCompactList}\small\item\em 显示在气泡右侧的view(使用默认气泡时，view的width最大值为32，height最大值为41，大于则使用最大值） \end{DoxyCompactList}\item 
BOOL \mbox{\hyperlink{interface_b_m_k_annotation_view_a891e09b1c2a0dd03dafc2e7f9f201d62}{hide\+Paopao\+When\+Single\+Tap\+On\+Map}}
\begin{DoxyCompactList}\small\item\em 当发生单击地图事件时，当前的annotation的泡泡是否隐藏，默认值为\+YES，\+V4.2.\+1以后支持 \end{DoxyCompactList}\item 
BOOL \mbox{\hyperlink{interface_b_m_k_annotation_view_a7a9e497b9805e1ebd0b9ab04421d24d4}{hide\+Paopao\+When\+Double\+Tap\+On\+Map}}
\begin{DoxyCompactList}\small\item\em 当发生双击地图事件时，当前的annotation的泡泡是否隐藏，默认值为\+NO，\+V4.2.\+1以后支持 \end{DoxyCompactList}\item 
BOOL \mbox{\hyperlink{interface_b_m_k_annotation_view_a5052e030b3b926f8a57929cae37878c4}{hide\+Paopao\+When\+Two\+Fingers\+Tap\+On\+Map}}
\begin{DoxyCompactList}\small\item\em 当发生两个手指点击地图（缩小地图）事件时，当前的annotation的泡泡是否隐藏，默认值为\+NO，\+V4.2.\+1以后支持 \end{DoxyCompactList}\item 
BOOL \mbox{\hyperlink{interface_b_m_k_annotation_view_afe64305211817108300e07799e167ffe}{hide\+Paopao\+When\+Select\+Others}}
\begin{DoxyCompactList}\small\item\em 当选中其他annotation时，当前annotation的泡泡是否隐藏，默认值为\+YES，\+V4.2.\+1以后支持 \end{DoxyCompactList}\item 
BOOL \mbox{\hyperlink{interface_b_m_k_annotation_view_abc3eee7e709e0984e625d87bc2b3dee8}{hide\+Paopao\+When\+Drag}}
\begin{DoxyCompactList}\small\item\em 当拖拽当前的annotation时，当前annotation的泡泡是否隐藏，默认值为\+NO，\+V4.2.\+1以后支持 \end{DoxyCompactList}\item 
BOOL \mbox{\hyperlink{interface_b_m_k_annotation_view_a96d006f4f8ee1ccfb85721444113d38d}{hide\+Paopao\+When\+Drag\+Others}}
\begin{DoxyCompactList}\small\item\em 当拖拽其他annotation时，当前annotation的泡泡是否隐藏，默认值为\+NO，\+V4.2.\+1以后支持 \end{DoxyCompactList}\item 
\mbox{\hyperlink{_b_m_k_annotation_view_8h_a54a7a5e0e58d57fd85b6cee6ccdc7352}{BMKFeature\+Display\+Priority}} \mbox{\hyperlink{interface_b_m_k_annotation_view_a2e92d7b764cdcedc773dbcd3fc2823f8}{display\+Priority}}
\item 
float \mbox{\hyperlink{interface_b_m_k_annotation_view_a7e69cb65d001a04ccc21ea560c500e91}{display\+Max\+Level}}
\begin{DoxyCompactList}\small\item\em 需要展示的最大级别，大于此级别则不展示，默认22。\+V6.5.\+0以后支持 \end{DoxyCompactList}\item 
float \mbox{\hyperlink{interface_b_m_k_annotation_view_a5abe930ace5002d2df02a7d250ffcfd3}{display\+Min\+Level}}
\begin{DoxyCompactList}\small\item\em 需要展示的最小级别，小于此级别则不展示，默认4。\+V6.5.\+0以后支持 \end{DoxyCompactList}\item 
BOOL \mbox{\hyperlink{interface_b_m_k_annotation_view_ad6a396c6e6e9d696f18e8ac9ab336131}{is\+Open\+Collision\+Detection}}
\begin{DoxyCompactList}\small\item\em 开启碰撞检测，默认\+NO，关闭。\+V6.5.\+0以后支持 \end{DoxyCompactList}\item 
BOOL \mbox{\hyperlink{interface_b_m_k_annotation_view_a5ac291db123408c7333ed5d2d7c839bc}{is\+Open\+Collision\+Detection\+With\+Pao\+Pao\+View}}
\begin{DoxyCompactList}\small\item\em 开启气泡碰撞检测，默认\+NO，关闭；且当is\+Open\+Collision\+Detection为\+YES时生效。\+V6.5.\+7以后支持 \end{DoxyCompactList}\item 
NSInteger \mbox{\hyperlink{interface_b_m_k_annotation_view_af38382b566b94db94c858c614bb57d59}{collision\+Detection\+Priority}}
\item 
BOOL \mbox{\hyperlink{interface_b_m_k_annotation_view_abc56366b07a97cd0162340d7c0666b70}{is\+Force\+Display}}
\begin{DoxyCompactList}\small\item\em 开启碰撞检测时，是否强制展示，默认\+NO。\+V6.5.\+0以后支持 \end{DoxyCompactList}\item 
BOOL \mbox{\hyperlink{interface_b_m_k_annotation_view_a6f6d1e5fa835e2d351f4c5b2b257bcf0}{is\+Open\+Collision\+Detection\+With\+Map\+POI}}
\begin{DoxyCompactList}\small\item\em 是否开启与底图\+POI的碰撞检测，默认\+NO。仅支持大于15地图显示层级。\+V6.5.\+7以后支持 \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{详细描述}
标注view 注意：如果在\+BMKAnnotation\+View中添加手势，会覆盖原本的点击和长按事件，不推荐这样使用。 如必须添加，请将手势的delegate设置到\+BMKAnnotation\+View中。 

\doxysubsection{函数文档}
\Hypertarget{interface_b_m_k_annotation_view_a54d15e7cc4e89d89d2233ec7fc408ad9}\label{interface_b_m_k_annotation_view_a54d15e7cc4e89d89d2233ec7fc408ad9} 
\index{BMKAnnotationView@{BMKAnnotationView}!\_\_OSX\_AVAILABLE\_STARTING@{\_\_OSX\_AVAILABLE\_STARTING}}
\index{\_\_OSX\_AVAILABLE\_STARTING@{\_\_OSX\_AVAILABLE\_STARTING}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{\_\_OSX\_AVAILABLE\_STARTING}{\_\_OSX\_AVAILABLE\_STARTING}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily -\/ (BOOL draggable) \+\_\+\+\_\+\+OSX\+\_\+\+AVAILABLE\+\_\+\+STARTING \begin{DoxyParamCaption}\item[{(\+\_\+\+\_\+\+MAC\+\_\+\+NA)}]{ }\item[{(\+\_\+\+\_\+\+IPHONE\+\_\+3\+\_\+2)}]{ }\end{DoxyParamCaption}}



当设为\+YES并实现了set\+Coordinate\+:方法时，支持将view在地图上拖动, i\+OS 3.\+2以后支持 

\Hypertarget{interface_b_m_k_annotation_view_a623e818d48c983176a6553104b21a34c}\label{interface_b_m_k_annotation_view_a623e818d48c983176a6553104b21a34c} 
\index{BMKAnnotationView@{BMKAnnotationView}!\_\_OSX\_AVAILABLE\_STARTING@{\_\_OSX\_AVAILABLE\_STARTING}}
\index{\_\_OSX\_AVAILABLE\_STARTING@{\_\_OSX\_AVAILABLE\_STARTING}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{\_\_OSX\_AVAILABLE\_STARTING}{\_\_OSX\_AVAILABLE\_STARTING}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily -\/ (\mbox{\hyperlink{_b_m_k_annotation_view_8h_ab76e4a8280e0f3f9fbb13f3ff3a19130}{BMKAnnotation\+View\+Drag\+State}} drag\+State) \+\_\+\+\_\+\+OSX\+\_\+\+AVAILABLE\+\_\+\+STARTING \begin{DoxyParamCaption}\item[{(\+\_\+\+\_\+\+MAC\+\_\+\+NA)}]{ }\item[{(\+\_\+\+\_\+\+IPHONE\+\_\+3\+\_\+2)}]{ }\end{DoxyParamCaption}}



当前view的拖动状态, i\+OS 3.\+2以后支持 

\Hypertarget{interface_b_m_k_annotation_view_a4eb08cfda8a3e7cd1531da0f2cf3fe18}\label{interface_b_m_k_annotation_view_a4eb08cfda8a3e7cd1531da0f2cf3fe18} 
\index{BMKAnnotationView@{BMKAnnotationView}!initWithAnnotation:reuseIdentifier:@{initWithAnnotation:reuseIdentifier:}}
\index{initWithAnnotation:reuseIdentifier:@{initWithAnnotation:reuseIdentifier:}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{initWithAnnotation:reuseIdentifier:}{initWithAnnotation:reuseIdentifier:}}
{\footnotesize\ttfamily -\/ (instancetype) init\+With\+Annotation\+: \begin{DoxyParamCaption}\item[{(id$<$ \mbox{\hyperlink{protocol_b_m_k_annotation-p}{BMKAnnotation}} $>$)}]{annotation }\item[{reuse\+Identifier\+:(NSString \texorpdfstring{$\ast$}{*})}]{reuse\+Identifier }\end{DoxyParamCaption}}

初始化并返回一个annotation view 
\begin{DoxyParams}{参数}
{\em annotation} & 关联的annotation对象 \\
\hline
{\em reuse\+Identifier} & 如果要重用view,传入一个字符串,否则设为nil,建议重用view \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
初始化成功则返回annotation view,否则返回nil 
\end{DoxyReturn}
\Hypertarget{interface_b_m_k_annotation_view_ae74849e624ac0cfaa7695b7cc97ddf23}\label{interface_b_m_k_annotation_view_ae74849e624ac0cfaa7695b7cc97ddf23} 
\index{BMKAnnotationView@{BMKAnnotationView}!prepareForReuse@{prepareForReuse}}
\index{prepareForReuse@{prepareForReuse}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{prepareForReuse}{prepareForReuse}}
{\footnotesize\ttfamily -\/ (void) prepare\+For\+Reuse \begin{DoxyParamCaption}{ }\end{DoxyParamCaption}}



当view从reuse队列里取出时被调用，默认不做任何事 

\Hypertarget{interface_b_m_k_annotation_view_abc0e70812fb7b3bccdbb574ddb578c21}\label{interface_b_m_k_annotation_view_abc0e70812fb7b3bccdbb574ddb578c21} 
\index{BMKAnnotationView@{BMKAnnotationView}!setSelected:animated:@{setSelected:animated:}}
\index{setSelected:animated:@{setSelected:animated:}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{setSelected:animated:}{setSelected:animated:}}
{\footnotesize\ttfamily -\/ (void) set\+Selected\+: \begin{DoxyParamCaption}\item[{(BOOL)}]{selected }\item[{animated\+:(BOOL)}]{animated }\end{DoxyParamCaption}}

设定view的选中状态 该方法被\+BMKMap\+View调用 
\begin{DoxyParams}{参数}
{\em selected} & 如果view需要显示为选中状态，该值为\+YES \\
\hline
{\em animated} & 如果需要动画效果，该值为\+YES,暂不支持 \\
\hline
\end{DoxyParams}


\doxysubsection{属性说明}
\Hypertarget{interface_b_m_k_annotation_view_a466f040671f2235667a4034aba879bb5}\label{interface_b_m_k_annotation_view_a466f040671f2235667a4034aba879bb5} 
\index{BMKAnnotationView@{BMKAnnotationView}!annotation@{annotation}}
\index{annotation@{annotation}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{annotation}{annotation}}
{\footnotesize\ttfamily -\/ (id$<$\mbox{\hyperlink{protocol_b_m_k_annotation-p}{BMKAnnotation}}$>$) annotation\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [strong]}}



关联的annotation 

\Hypertarget{interface_b_m_k_annotation_view_aacdcb492cbbc469803ba50def87f44e5}\label{interface_b_m_k_annotation_view_aacdcb492cbbc469803ba50def87f44e5} 
\index{BMKAnnotationView@{BMKAnnotationView}!calloutOffset@{calloutOffset}}
\index{calloutOffset@{calloutOffset}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{calloutOffset}{calloutOffset}}
{\footnotesize\ttfamily -\/ (CGPoint) callout\+Offset\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



默认情况下, 弹出的气泡位于view正中上方，可以设置callout\+Offset改变view的位置，正的偏移使view朝右下方移动，负的朝左上方，单位是像素 

\Hypertarget{interface_b_m_k_annotation_view_adef94e946f5b152c59be1cdb5eccfb74}\label{interface_b_m_k_annotation_view_adef94e946f5b152c59be1cdb5eccfb74} 
\index{BMKAnnotationView@{BMKAnnotationView}!canShowCallout@{canShowCallout}}
\index{canShowCallout@{canShowCallout}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{canShowCallout}{canShowCallout}}
{\footnotesize\ttfamily -\/ (BOOL) can\+Show\+Callout\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



当为\+YES时，view被选中时会弹出气泡，annotation必须实现了title这个方法 

\Hypertarget{interface_b_m_k_annotation_view_a12a4f32e8adc7732c80d772eb403cd61}\label{interface_b_m_k_annotation_view_a12a4f32e8adc7732c80d772eb403cd61} 
\index{BMKAnnotationView@{BMKAnnotationView}!centerOffset@{centerOffset}}
\index{centerOffset@{centerOffset}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{centerOffset}{centerOffset}}
{\footnotesize\ttfamily -\/ (CGPoint) center\+Offset\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



默认情况下, annotation view的中心位于annotation的坐标位置，可以设置center\+Offset改变view的位置，正的偏移使view朝右下方移动，负的朝左上方，单位是像素 

\Hypertarget{interface_b_m_k_annotation_view_af38382b566b94db94c858c614bb57d59}\label{interface_b_m_k_annotation_view_af38382b566b94db94c858c614bb57d59} 
\index{BMKAnnotationView@{BMKAnnotationView}!collisionDetectionPriority@{collisionDetectionPriority}}
\index{collisionDetectionPriority@{collisionDetectionPriority}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{collisionDetectionPriority}{collisionDetectionPriority}}
{\footnotesize\ttfamily -\/ (NSInteger) collision\+Detection\+Priority\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}

碰撞检测优先级，同一优先级后添加的优先展示。\+V6.5.\+0以后支持 默认为0，优先级设置为\+NSInteger\+Max时将会最优先展示 \Hypertarget{interface_b_m_k_annotation_view_a7e69cb65d001a04ccc21ea560c500e91}\label{interface_b_m_k_annotation_view_a7e69cb65d001a04ccc21ea560c500e91} 
\index{BMKAnnotationView@{BMKAnnotationView}!displayMaxLevel@{displayMaxLevel}}
\index{displayMaxLevel@{displayMaxLevel}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{displayMaxLevel}{displayMaxLevel}}
{\footnotesize\ttfamily -\/ (float) display\+Max\+Level\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



需要展示的最大级别，大于此级别则不展示，默认22。\+V6.5.\+0以后支持 

\Hypertarget{interface_b_m_k_annotation_view_a5abe930ace5002d2df02a7d250ffcfd3}\label{interface_b_m_k_annotation_view_a5abe930ace5002d2df02a7d250ffcfd3} 
\index{BMKAnnotationView@{BMKAnnotationView}!displayMinLevel@{displayMinLevel}}
\index{displayMinLevel@{displayMinLevel}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{displayMinLevel}{displayMinLevel}}
{\footnotesize\ttfamily -\/ (float) display\+Min\+Level\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



需要展示的最小级别，小于此级别则不展示，默认4。\+V6.5.\+0以后支持 

\Hypertarget{interface_b_m_k_annotation_view_a2e92d7b764cdcedc773dbcd3fc2823f8}\label{interface_b_m_k_annotation_view_a2e92d7b764cdcedc773dbcd3fc2823f8} 
\index{BMKAnnotationView@{BMKAnnotationView}!displayPriority@{displayPriority}}
\index{displayPriority@{displayPriority}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{displayPriority}{displayPriority}}
{\footnotesize\ttfamily -\/ (\mbox{\hyperlink{_b_m_k_annotation_view_8h_a54a7a5e0e58d57fd85b6cee6ccdc7352}{BMKFeature\+Display\+Priority}}) display\+Priority\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}

annotation\+View展示优先级，提供三种级别，其他级别开发者可自行设置， 默认值为\+BMKFeature\+Display\+Priority\+Default\+Middle，\+V4.2.\+1以后支持, 级别数值越大越优先展示，同级别按照添加的先后顺序进行覆盖展示。 \Hypertarget{interface_b_m_k_annotation_view_ad768885a75146458b4efd168885478fe}\label{interface_b_m_k_annotation_view_ad768885a75146458b4efd168885478fe} 
\index{BMKAnnotationView@{BMKAnnotationView}!enabled@{enabled}}
\index{enabled@{enabled}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{enabled}{enabled}}
{\footnotesize\ttfamily -\/ (BOOL) enabled\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



默认为\+YES,当为\+NO时view忽略触摸事件 

\Hypertarget{interface_b_m_k_annotation_view_a18cef771d9b9feeb74a4bc4dd7fba526}\label{interface_b_m_k_annotation_view_a18cef771d9b9feeb74a4bc4dd7fba526} 
\index{BMKAnnotationView@{BMKAnnotationView}!enabled3D@{enabled3D}}
\index{enabled3D@{enabled3D}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{enabled3D}{enabled3D}}
{\footnotesize\ttfamily -\/ (BOOL) enabled3D\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



默认情况下,标注没有3\+D效果，可以设置enabled3\+D改变使用3\+D效果，使得标注在地图旋转和俯视时跟随旋转、俯视 

\Hypertarget{interface_b_m_k_annotation_view_a7a9e497b9805e1ebd0b9ab04421d24d4}\label{interface_b_m_k_annotation_view_a7a9e497b9805e1ebd0b9ab04421d24d4} 
\index{BMKAnnotationView@{BMKAnnotationView}!hidePaopaoWhenDoubleTapOnMap@{hidePaopaoWhenDoubleTapOnMap}}
\index{hidePaopaoWhenDoubleTapOnMap@{hidePaopaoWhenDoubleTapOnMap}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{hidePaopaoWhenDoubleTapOnMap}{hidePaopaoWhenDoubleTapOnMap}}
{\footnotesize\ttfamily -\/ (BOOL) hide\+Paopao\+When\+Double\+Tap\+On\+Map\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



当发生双击地图事件时，当前的annotation的泡泡是否隐藏，默认值为\+NO，\+V4.2.\+1以后支持 

\Hypertarget{interface_b_m_k_annotation_view_abc3eee7e709e0984e625d87bc2b3dee8}\label{interface_b_m_k_annotation_view_abc3eee7e709e0984e625d87bc2b3dee8} 
\index{BMKAnnotationView@{BMKAnnotationView}!hidePaopaoWhenDrag@{hidePaopaoWhenDrag}}
\index{hidePaopaoWhenDrag@{hidePaopaoWhenDrag}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{hidePaopaoWhenDrag}{hidePaopaoWhenDrag}}
{\footnotesize\ttfamily -\/ (BOOL) hide\+Paopao\+When\+Drag\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



当拖拽当前的annotation时，当前annotation的泡泡是否隐藏，默认值为\+NO，\+V4.2.\+1以后支持 

\Hypertarget{interface_b_m_k_annotation_view_a96d006f4f8ee1ccfb85721444113d38d}\label{interface_b_m_k_annotation_view_a96d006f4f8ee1ccfb85721444113d38d} 
\index{BMKAnnotationView@{BMKAnnotationView}!hidePaopaoWhenDragOthers@{hidePaopaoWhenDragOthers}}
\index{hidePaopaoWhenDragOthers@{hidePaopaoWhenDragOthers}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{hidePaopaoWhenDragOthers}{hidePaopaoWhenDragOthers}}
{\footnotesize\ttfamily -\/ (BOOL) hide\+Paopao\+When\+Drag\+Others\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



当拖拽其他annotation时，当前annotation的泡泡是否隐藏，默认值为\+NO，\+V4.2.\+1以后支持 

\Hypertarget{interface_b_m_k_annotation_view_afe64305211817108300e07799e167ffe}\label{interface_b_m_k_annotation_view_afe64305211817108300e07799e167ffe} 
\index{BMKAnnotationView@{BMKAnnotationView}!hidePaopaoWhenSelectOthers@{hidePaopaoWhenSelectOthers}}
\index{hidePaopaoWhenSelectOthers@{hidePaopaoWhenSelectOthers}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{hidePaopaoWhenSelectOthers}{hidePaopaoWhenSelectOthers}}
{\footnotesize\ttfamily -\/ (BOOL) hide\+Paopao\+When\+Select\+Others\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



当选中其他annotation时，当前annotation的泡泡是否隐藏，默认值为\+YES，\+V4.2.\+1以后支持 

\Hypertarget{interface_b_m_k_annotation_view_a891e09b1c2a0dd03dafc2e7f9f201d62}\label{interface_b_m_k_annotation_view_a891e09b1c2a0dd03dafc2e7f9f201d62} 
\index{BMKAnnotationView@{BMKAnnotationView}!hidePaopaoWhenSingleTapOnMap@{hidePaopaoWhenSingleTapOnMap}}
\index{hidePaopaoWhenSingleTapOnMap@{hidePaopaoWhenSingleTapOnMap}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{hidePaopaoWhenSingleTapOnMap}{hidePaopaoWhenSingleTapOnMap}}
{\footnotesize\ttfamily -\/ (BOOL) hide\+Paopao\+When\+Single\+Tap\+On\+Map\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



当发生单击地图事件时，当前的annotation的泡泡是否隐藏，默认值为\+YES，\+V4.2.\+1以后支持 

\Hypertarget{interface_b_m_k_annotation_view_a5052e030b3b926f8a57929cae37878c4}\label{interface_b_m_k_annotation_view_a5052e030b3b926f8a57929cae37878c4} 
\index{BMKAnnotationView@{BMKAnnotationView}!hidePaopaoWhenTwoFingersTapOnMap@{hidePaopaoWhenTwoFingersTapOnMap}}
\index{hidePaopaoWhenTwoFingersTapOnMap@{hidePaopaoWhenTwoFingersTapOnMap}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{hidePaopaoWhenTwoFingersTapOnMap}{hidePaopaoWhenTwoFingersTapOnMap}}
{\footnotesize\ttfamily -\/ (BOOL) hide\+Paopao\+When\+Two\+Fingers\+Tap\+On\+Map\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



当发生两个手指点击地图（缩小地图）事件时，当前的annotation的泡泡是否隐藏，默认值为\+NO，\+V4.2.\+1以后支持 

\Hypertarget{interface_b_m_k_annotation_view_a3186f78dcb098002e39fd226cbc1c9b6}\label{interface_b_m_k_annotation_view_a3186f78dcb098002e39fd226cbc1c9b6} 
\index{BMKAnnotationView@{BMKAnnotationView}!image@{image}}
\index{image@{image}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{image}{image}}
{\footnotesize\ttfamily -\/ (UIImage\texorpdfstring{$\ast$}{*}) image\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [strong]}}



annotation view显示的图像 

\Hypertarget{interface_b_m_k_annotation_view_abc56366b07a97cd0162340d7c0666b70}\label{interface_b_m_k_annotation_view_abc56366b07a97cd0162340d7c0666b70} 
\index{BMKAnnotationView@{BMKAnnotationView}!isForceDisplay@{isForceDisplay}}
\index{isForceDisplay@{isForceDisplay}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{isForceDisplay}{isForceDisplay}}
{\footnotesize\ttfamily -\/ (BOOL) is\+Force\+Display\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



开启碰撞检测时，是否强制展示，默认\+NO。\+V6.5.\+0以后支持 

\Hypertarget{interface_b_m_k_annotation_view_ad6a396c6e6e9d696f18e8ac9ab336131}\label{interface_b_m_k_annotation_view_ad6a396c6e6e9d696f18e8ac9ab336131} 
\index{BMKAnnotationView@{BMKAnnotationView}!isOpenCollisionDetection@{isOpenCollisionDetection}}
\index{isOpenCollisionDetection@{isOpenCollisionDetection}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{isOpenCollisionDetection}{isOpenCollisionDetection}}
{\footnotesize\ttfamily -\/ (BOOL) is\+Open\+Collision\+Detection\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



开启碰撞检测，默认\+NO，关闭。\+V6.5.\+0以后支持 

\Hypertarget{interface_b_m_k_annotation_view_a6f6d1e5fa835e2d351f4c5b2b257bcf0}\label{interface_b_m_k_annotation_view_a6f6d1e5fa835e2d351f4c5b2b257bcf0} 
\index{BMKAnnotationView@{BMKAnnotationView}!isOpenCollisionDetectionWithMapPOI@{isOpenCollisionDetectionWithMapPOI}}
\index{isOpenCollisionDetectionWithMapPOI@{isOpenCollisionDetectionWithMapPOI}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{isOpenCollisionDetectionWithMapPOI}{isOpenCollisionDetectionWithMapPOI}}
{\footnotesize\ttfamily -\/ (BOOL) is\+Open\+Collision\+Detection\+With\+Map\+POI\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



是否开启与底图\+POI的碰撞检测，默认\+NO。仅支持大于15地图显示层级。\+V6.5.\+7以后支持 

\Hypertarget{interface_b_m_k_annotation_view_a5ac291db123408c7333ed5d2d7c839bc}\label{interface_b_m_k_annotation_view_a5ac291db123408c7333ed5d2d7c839bc} 
\index{BMKAnnotationView@{BMKAnnotationView}!isOpenCollisionDetectionWithPaoPaoView@{isOpenCollisionDetectionWithPaoPaoView}}
\index{isOpenCollisionDetectionWithPaoPaoView@{isOpenCollisionDetectionWithPaoPaoView}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{isOpenCollisionDetectionWithPaoPaoView}{isOpenCollisionDetectionWithPaoPaoView}}
{\footnotesize\ttfamily -\/ (BOOL) is\+Open\+Collision\+Detection\+With\+Pao\+Pao\+View\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



开启气泡碰撞检测，默认\+NO，关闭；且当is\+Open\+Collision\+Detection为\+YES时生效。\+V6.5.\+7以后支持 

\Hypertarget{interface_b_m_k_annotation_view_ae182c0fb7dc1898c4941a123def7f926}\label{interface_b_m_k_annotation_view_ae182c0fb7dc1898c4941a123def7f926} 
\index{BMKAnnotationView@{BMKAnnotationView}!leftCalloutAccessoryView@{leftCalloutAccessoryView}}
\index{leftCalloutAccessoryView@{leftCalloutAccessoryView}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{leftCalloutAccessoryView}{leftCalloutAccessoryView}}
{\footnotesize\ttfamily -\/ (UIView\texorpdfstring{$\ast$}{*}) left\+Callout\+Accessory\+View\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [strong]}}



显示在气泡左侧的view(使用默认气泡时，view的width最大值为32，height最大值为41，大于则使用最大值） 

\Hypertarget{interface_b_m_k_annotation_view_af351c55cfa4b90f2e5090f0503ff699c}\label{interface_b_m_k_annotation_view_af351c55cfa4b90f2e5090f0503ff699c} 
\index{BMKAnnotationView@{BMKAnnotationView}!paopaoView@{paopaoView}}
\index{paopaoView@{paopaoView}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{paopaoView}{paopaoView}}
{\footnotesize\ttfamily -\/ (\mbox{\hyperlink{interface_b_m_k_action_paopao_view}{BMKAction\+Paopao\+View}}\texorpdfstring{$\ast$}{*}) paopao\+View\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [strong]}}



paopao\+View 

\Hypertarget{interface_b_m_k_annotation_view_aba3efdbef49c0301af03ce0d47348358}\label{interface_b_m_k_annotation_view_aba3efdbef49c0301af03ce0d47348358} 
\index{BMKAnnotationView@{BMKAnnotationView}!reuseIdentifier@{reuseIdentifier}}
\index{reuseIdentifier@{reuseIdentifier}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{reuseIdentifier}{reuseIdentifier}}
{\footnotesize\ttfamily -\/ (NSString\texorpdfstring{$\ast$}{*}) reuse\+Identifier\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



复用标志 

\Hypertarget{interface_b_m_k_annotation_view_a65793288845c27e23233373b3e6b6216}\label{interface_b_m_k_annotation_view_a65793288845c27e23233373b3e6b6216} 
\index{BMKAnnotationView@{BMKAnnotationView}!rightCalloutAccessoryView@{rightCalloutAccessoryView}}
\index{rightCalloutAccessoryView@{rightCalloutAccessoryView}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{rightCalloutAccessoryView}{rightCalloutAccessoryView}}
{\footnotesize\ttfamily -\/ (UIView\texorpdfstring{$\ast$}{*}) right\+Callout\+Accessory\+View\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [strong]}}



显示在气泡右侧的view(使用默认气泡时，view的width最大值为32，height最大值为41，大于则使用最大值） 

\Hypertarget{interface_b_m_k_annotation_view_a09799664ef861651bd7996f0fbab6483}\label{interface_b_m_k_annotation_view_a09799664ef861651bd7996f0fbab6483} 
\index{BMKAnnotationView@{BMKAnnotationView}!selected@{selected}}
\index{selected@{selected}!BMKAnnotationView@{BMKAnnotationView}}
\doxysubsubsection{\texorpdfstring{selected}{selected}}
{\footnotesize\ttfamily -\/ (BOOL) selected\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



默认为\+NO,初始化时设置为\+YES时会默认弹出气泡。\+V5.2.\+0以后版本可以直接设置该值来控制隐藏和弹出气泡，无需调用强制刷新 



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