\doxysection{BMKPin\+Annotation\+View类 参考}
\hypertarget{interface_b_m_k_pin_annotation_view}{}\label{interface_b_m_k_pin_annotation_view}\index{BMKPinAnnotationView@{BMKPinAnnotationView}}


提供类似大头针效果的annotation view  




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

类 BMKPin\+Annotation\+View 继承关系图\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{interface_b_m_k_pin_annotation_view}
\end{center}
\end{figure}
\doxysubsubsection*{属性}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{_b_m_k_pin_annotation_view_8h_addf9400563adc951bca44954c22cf689}{BMKPin\+Annotation\+Color}} \mbox{\hyperlink{interface_b_m_k_pin_annotation_view_a84f4c8db4dfa8d1d5a8ff6af8db7826d}{pin\+Color}}
\begin{DoxyCompactList}\small\item\em 大头针的颜色，有\+BMKPin\+Annotation\+Color\+Red, BMKPin\+Annotation\+Color\+Green, BMKPin\+Annotation\+Color\+Purple三种 \end{DoxyCompactList}\item 
BOOL \mbox{\hyperlink{interface_b_m_k_pin_annotation_view_a0ea18aa3b2d71e06564bf11199d05625}{animates\+Drop}}
\begin{DoxyCompactList}\small\item\em 动画效果 \end{DoxyCompactList}\item 
\mbox{\hyperlink{_b_m_k_pin_annotation_view_8h_a6650662b3a637669d5e143913f8e7714}{BMKPin\+Annotation\+Animate\+Type}} \mbox{\hyperlink{interface_b_m_k_pin_annotation_view_abeb62957f2621d18272cea50cd0435ce}{animate\+Type}}
\begin{DoxyCompactList}\small\item\em 动画效果,默认\+BMKPin\+Annotation\+Animate\+Type\+None：无动画,since 6.\+5.\+7 \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{属性 继承自 \mbox{\hyperlink{interface_b_m_k_annotation_view}{BMKAnnotation\+View}}}
\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}
\doxysubsubsection*{额外继承的成员函数}
\doxysubsection*{构造函数 继承自 \mbox{\hyperlink{interface_b_m_k_annotation_view}{BMKAnnotation\+View}}}
\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}


\doxysubsection{详细描述}
提供类似大头针效果的annotation view 

\doxysubsection{属性说明}
\Hypertarget{interface_b_m_k_pin_annotation_view_a0ea18aa3b2d71e06564bf11199d05625}\label{interface_b_m_k_pin_annotation_view_a0ea18aa3b2d71e06564bf11199d05625} 
\index{BMKPinAnnotationView@{BMKPinAnnotationView}!animatesDrop@{animatesDrop}}
\index{animatesDrop@{animatesDrop}!BMKPinAnnotationView@{BMKPinAnnotationView}}
\doxysubsubsection{\texorpdfstring{animatesDrop}{animatesDrop}}
{\footnotesize\ttfamily -\/ (BOOL) animates\+Drop\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



动画效果 

\Hypertarget{interface_b_m_k_pin_annotation_view_abeb62957f2621d18272cea50cd0435ce}\label{interface_b_m_k_pin_annotation_view_abeb62957f2621d18272cea50cd0435ce} 
\index{BMKPinAnnotationView@{BMKPinAnnotationView}!animateType@{animateType}}
\index{animateType@{animateType}!BMKPinAnnotationView@{BMKPinAnnotationView}}
\doxysubsubsection{\texorpdfstring{animateType}{animateType}}
{\footnotesize\ttfamily -\/ (\mbox{\hyperlink{_b_m_k_pin_annotation_view_8h_a6650662b3a637669d5e143913f8e7714}{BMKPin\+Annotation\+Animate\+Type}}) animate\+Type\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



动画效果,默认\+BMKPin\+Annotation\+Animate\+Type\+None：无动画,since 6.\+5.\+7 

\Hypertarget{interface_b_m_k_pin_annotation_view_a84f4c8db4dfa8d1d5a8ff6af8db7826d}\label{interface_b_m_k_pin_annotation_view_a84f4c8db4dfa8d1d5a8ff6af8db7826d} 
\index{BMKPinAnnotationView@{BMKPinAnnotationView}!pinColor@{pinColor}}
\index{pinColor@{pinColor}!BMKPinAnnotationView@{BMKPinAnnotationView}}
\doxysubsubsection{\texorpdfstring{pinColor}{pinColor}}
{\footnotesize\ttfamily -\/ (\mbox{\hyperlink{_b_m_k_pin_annotation_view_8h_addf9400563adc951bca44954c22cf689}{BMKPin\+Annotation\+Color}}) pin\+Color\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



大头针的颜色，有\+BMKPin\+Annotation\+Color\+Red, BMKPin\+Annotation\+Color\+Green, BMKPin\+Annotation\+Color\+Purple三种 



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