\doxysection{BMKGround\+Overlay类 参考}
\hypertarget{interface_b_m_k_ground_overlay}{}\label{interface_b_m_k_ground_overlay}\index{BMKGroundOverlay@{BMKGroundOverlay}}


该类用于定义一个图片图层  




{\ttfamily \#include $<$BMKGround\+Overlay.\+h$>$}

类 BMKGround\+Overlay 继承关系图\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.318518cm]{interface_b_m_k_ground_overlay}
\end{center}
\end{figure}
\doxysubsubsection*{类方法}
\begin{DoxyCompactItemize}
\item 
(nullable instancetype) + \mbox{\hyperlink{interface_b_m_k_ground_overlay_a7f18fd8a1207920764f1b115f188a64e}{ground\+Overlay\+With\+Position\+:zoom\+Level\+:anchor\+:icon\+:}}
\item 
(nullable instancetype) + \mbox{\hyperlink{interface_b_m_k_ground_overlay_a46678cd51621c2dc4bb8e20023064e08}{ground\+Overlay\+With\+Bounds\+:icon\+:}}
\end{DoxyCompactItemize}
\doxysubsubsection*{Public 属性}
\begin{DoxyCompactItemize}
\item 
float \mbox{\hyperlink{interface_b_m_k_ground_overlay_a50468fe4442dab1bbf979aa76995e7ab}{zoom\+Level}}
\item 
CLLocation\+Coordinate2D \mbox{\hyperlink{interface_b_m_k_ground_overlay_a57b4269fc9d464d375ebf6ed578efbf3}{\+\_\+pt}}
\item 
\mbox{\hyperlink{struct_b_m_k_coordinate_bounds}{BMKCoordinate\+Bounds}} \mbox{\hyperlink{interface_b_m_k_ground_overlay_ade8793eddd1b90d8881f0ff1aa694310}{\+\_\+bound}}
\item 
CGPoint \mbox{\hyperlink{interface_b_m_k_ground_overlay_a4e229ae08afde6a8cb5786ed3f3b0e35}{\+\_\+anchor}}
\item 
UIImage \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{interface_b_m_k_ground_overlay_ad5b9b25bc93b7e05d76cfe0053ac6f18}{\+\_\+icon}}
\item 
BOOL \mbox{\hyperlink{interface_b_m_k_ground_overlay_a52cc248b8a6ba80374cee89b96b3979c}{is\+Center\+Pt}}
\end{DoxyCompactItemize}
\doxysubsubsection*{属性}
\begin{DoxyCompactItemize}
\item 
CLLocation\+Coordinate2D \mbox{\hyperlink{interface_b_m_k_ground_overlay_a99b7330f6eb896adf663b20cfaf0ff3d}{pt}}
\item 
CGPoint \mbox{\hyperlink{interface_b_m_k_ground_overlay_a2601d9c702749c36f3c693cdf6165c75}{anchor}}
\item 
CGFloat \mbox{\hyperlink{interface_b_m_k_ground_overlay_a94f7f1c1e511eb082dec6ce70ffeb8bf}{zoom\+Level}}
\begin{DoxyCompactList}\small\item\em 不损失精度绘制原始图片的地图等级，无默认值 \end{DoxyCompactList}\item 
\mbox{\hyperlink{struct_b_m_k_coordinate_bounds}{BMKCoordinate\+Bounds}} \mbox{\hyperlink{interface_b_m_k_ground_overlay_a2cc42179bfa82c4554f1f95c57013daf}{bound}}
\begin{DoxyCompactList}\small\item\em 两种绘制\+Ground\+Overlay的方式之二：绘制的地理区域范围，图片在此区域内合理缩放 \end{DoxyCompactList}\item 
UIImage \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{interface_b_m_k_ground_overlay_ac6b3c33960c8ae439c387636a27f23a0}{icon}}
\begin{DoxyCompactList}\small\item\em 绘制图片 \end{DoxyCompactList}\item 
GLfloat \mbox{\hyperlink{interface_b_m_k_ground_overlay_ad179c59ea12b8e9db600387d0c873d47}{alpha}}
\begin{DoxyCompactList}\small\item\em 图片纹理透明度,最终透明度 = 纹理透明度 \texorpdfstring{$\ast$}{*} alpha,取值范围为\mbox{[}0.\+0f, 1.\+0f\mbox{]}，默认为1.0f \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{属性 继承自 \mbox{\hyperlink{interface_b_m_k_shape}{BMKShape}}}
\begin{DoxyCompactItemize}
\item 
NSString \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{interface_b_m_k_shape_a64da6d2885114c0c2da35aa1ffec925d}{title}}
\begin{DoxyCompactList}\small\item\em 要显示的标题；注意：如果不设置title,无法点击annotation,也无法使用回调函数； \end{DoxyCompactList}\item 
NSString \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{interface_b_m_k_shape_ae588ba39a27b52bcaed14d40e6494398}{subtitle}}
\begin{DoxyCompactList}\small\item\em 要显示的副标题 \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{属性 继承自 \mbox{\hyperlink{protocol_b_m_k_annotation-p}{$<$\+BMKAnnotation$>$}}}
\begin{DoxyCompactItemize}
\item 
CLLocation\+Coordinate2D \mbox{\hyperlink{protocol_b_m_k_annotation-p_ab7ed7fd80fc518acf82cf0048490f9be}{coordinate}}
\begin{DoxyCompactList}\small\item\em 标注view中心坐标. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{属性 继承自 \mbox{\hyperlink{protocol_b_m_k_overlay-p}{$<$\+BMKOverlay$>$}}}
\begin{DoxyCompactItemize}
\item 
CLLocation\+Coordinate2D \mbox{\hyperlink{protocol_b_m_k_overlay-p_a7a10d9dde65c9611e3b5279179a9d480}{coordinate}}
\begin{DoxyCompactList}\small\item\em 返回区域中心坐标. \end{DoxyCompactList}\item 
\mbox{\hyperlink{struct_b_m_k_map_rect}{BMKMap\+Rect}} \mbox{\hyperlink{protocol_b_m_k_overlay-p_a77465daa9e52be51cc5aa15591ab74f0}{bounding\+Map\+Rect}}
\begin{DoxyCompactList}\small\item\em 返回区域外接矩形 \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{额外继承的成员函数}
\doxysubsection*{构造函数 继承自 \mbox{\hyperlink{protocol_b_m_k_annotation-p}{$<$\+BMKAnnotation$>$}}}
\begin{DoxyCompactItemize}
\item 
(NSString \texorpdfstring{$\ast$}{*}) -\/ \mbox{\hyperlink{protocol_b_m_k_annotation-p_a249e1b880f8ded8541a0fe59ef4abb12}{title}}
\begin{DoxyCompactList}\small\item\em 获取annotation标题 \end{DoxyCompactList}\item 
(NSString \texorpdfstring{$\ast$}{*}) -\/ \mbox{\hyperlink{protocol_b_m_k_annotation-p_a62aea71f4631251330e8a6fc3d3bdf11}{subtitle}}
\begin{DoxyCompactList}\small\item\em 获取annotation副标题 \end{DoxyCompactList}\item 
(void) -\/ \mbox{\hyperlink{protocol_b_m_k_annotation-p_a86db1788af78d273e1e155d3aa3d978f}{set\+Coordinate\+:}}
\end{DoxyCompactItemize}
\doxysubsection*{构造函数 继承自 \mbox{\hyperlink{protocol_b_m_k_overlay-p}{$<$\+BMKOverlay$>$}}}
\begin{DoxyCompactItemize}
\item 
(BOOL) -\/ \mbox{\hyperlink{protocol_b_m_k_overlay-p_ad89c522da656c2a977b87bdc1cc4bf21}{intersects\+Map\+Rect\+:}}
\end{DoxyCompactItemize}


\doxysubsection{详细描述}
该类用于定义一个图片图层 

\doxysubsection{函数文档}
\Hypertarget{interface_b_m_k_ground_overlay_a46678cd51621c2dc4bb8e20023064e08}\label{interface_b_m_k_ground_overlay_a46678cd51621c2dc4bb8e20023064e08} 
\index{BMKGroundOverlay@{BMKGroundOverlay}!groundOverlayWithBounds:icon:@{groundOverlayWithBounds:icon:}}
\index{groundOverlayWithBounds:icon:@{groundOverlayWithBounds:icon:}!BMKGroundOverlay@{BMKGroundOverlay}}
\doxysubsubsection{\texorpdfstring{groundOverlayWithBounds:icon:}{groundOverlayWithBounds:icon:}}
{\footnotesize\ttfamily + (nullable instancetype) ground\+Overlay\+With\+Bounds\+: \begin{DoxyParamCaption}\item[{(\mbox{\hyperlink{struct_b_m_k_coordinate_bounds}{BMKCoordinate\+Bounds}})}]{bounds }\item[{icon\+:(UIImage \texorpdfstring{$\ast$}{*})}]{icon }\end{DoxyParamCaption}}

根据指定区域生成一个ground\+Overlay 
\begin{DoxyParams}{参数}
{\em bounds} & 指定的经纬度区域 \\
\hline
{\em icon} & 绘制使用的图片 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
新生成的ground\+Overlay对象 
\end{DoxyReturn}
\Hypertarget{interface_b_m_k_ground_overlay_a7f18fd8a1207920764f1b115f188a64e}\label{interface_b_m_k_ground_overlay_a7f18fd8a1207920764f1b115f188a64e} 
\index{BMKGroundOverlay@{BMKGroundOverlay}!groundOverlayWithPosition:zoomLevel:anchor:icon:@{groundOverlayWithPosition:zoomLevel:anchor:icon:}}
\index{groundOverlayWithPosition:zoomLevel:anchor:icon:@{groundOverlayWithPosition:zoomLevel:anchor:icon:}!BMKGroundOverlay@{BMKGroundOverlay}}
\doxysubsubsection{\texorpdfstring{groundOverlayWithPosition:zoomLevel:anchor:icon:}{groundOverlayWithPosition:zoomLevel:anchor:icon:}}
{\footnotesize\ttfamily + (nullable instancetype) ground\+Overlay\+With\+Position\+: \begin{DoxyParamCaption}\item[{(CLLocation\+Coordinate2D)}]{position }\item[{zoom\+Level\+:(CGFloat)}]{zoom\+Level }\item[{anchor\+:(CGPoint)}]{anchor }\item[{icon\+:(UIImage \texorpdfstring{$\ast$}{*})}]{icon }\end{DoxyParamCaption}}

根据指定经纬度坐标生成一个ground\+Overlay 
\begin{DoxyParams}{参数}
{\em position} & 指定的经纬度坐标 \\
\hline
{\em zoom\+Level} & 不损失精度绘制原始图片的地图等级 \\
\hline
{\em anchor} & 绘制图片的锚点 \\
\hline
{\em icon} & 绘制使用的图片 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
新生成的ground\+Overlay对象 
\end{DoxyReturn}


\doxysubsection{类成员变量说明}
\Hypertarget{interface_b_m_k_ground_overlay_a4e229ae08afde6a8cb5786ed3f3b0e35}\label{interface_b_m_k_ground_overlay_a4e229ae08afde6a8cb5786ed3f3b0e35} 
\index{BMKGroundOverlay@{BMKGroundOverlay}!\_anchor@{\_anchor}}
\index{\_anchor@{\_anchor}!BMKGroundOverlay@{BMKGroundOverlay}}
\doxysubsubsection{\texorpdfstring{\_anchor}{\_anchor}}
{\footnotesize\ttfamily -\/ (CGPoint) \+\_\+anchor}

\Hypertarget{interface_b_m_k_ground_overlay_ade8793eddd1b90d8881f0ff1aa694310}\label{interface_b_m_k_ground_overlay_ade8793eddd1b90d8881f0ff1aa694310} 
\index{BMKGroundOverlay@{BMKGroundOverlay}!\_bound@{\_bound}}
\index{\_bound@{\_bound}!BMKGroundOverlay@{BMKGroundOverlay}}
\doxysubsubsection{\texorpdfstring{\_bound}{\_bound}}
{\footnotesize\ttfamily -\/ (\mbox{\hyperlink{struct_b_m_k_coordinate_bounds}{BMKCoordinate\+Bounds}}) \+\_\+bound}

\Hypertarget{interface_b_m_k_ground_overlay_ad5b9b25bc93b7e05d76cfe0053ac6f18}\label{interface_b_m_k_ground_overlay_ad5b9b25bc93b7e05d76cfe0053ac6f18} 
\index{BMKGroundOverlay@{BMKGroundOverlay}!\_icon@{\_icon}}
\index{\_icon@{\_icon}!BMKGroundOverlay@{BMKGroundOverlay}}
\doxysubsubsection{\texorpdfstring{\_icon}{\_icon}}
{\footnotesize\ttfamily -\/ (UIImage\texorpdfstring{$\ast$}{*}) \+\_\+icon}

\Hypertarget{interface_b_m_k_ground_overlay_a57b4269fc9d464d375ebf6ed578efbf3}\label{interface_b_m_k_ground_overlay_a57b4269fc9d464d375ebf6ed578efbf3} 
\index{BMKGroundOverlay@{BMKGroundOverlay}!\_pt@{\_pt}}
\index{\_pt@{\_pt}!BMKGroundOverlay@{BMKGroundOverlay}}
\doxysubsubsection{\texorpdfstring{\_pt}{\_pt}}
{\footnotesize\ttfamily -\/ (CLLocation\+Coordinate2D) \+\_\+pt}

\Hypertarget{interface_b_m_k_ground_overlay_a52cc248b8a6ba80374cee89b96b3979c}\label{interface_b_m_k_ground_overlay_a52cc248b8a6ba80374cee89b96b3979c} 
\index{BMKGroundOverlay@{BMKGroundOverlay}!isCenterPt@{isCenterPt}}
\index{isCenterPt@{isCenterPt}!BMKGroundOverlay@{BMKGroundOverlay}}
\doxysubsubsection{\texorpdfstring{isCenterPt}{isCenterPt}}
{\footnotesize\ttfamily -\/ (BOOL) is\+Center\+Pt}

\Hypertarget{interface_b_m_k_ground_overlay_a50468fe4442dab1bbf979aa76995e7ab}\label{interface_b_m_k_ground_overlay_a50468fe4442dab1bbf979aa76995e7ab} 
\index{BMKGroundOverlay@{BMKGroundOverlay}!zoomLevel@{zoomLevel}}
\index{zoomLevel@{zoomLevel}!BMKGroundOverlay@{BMKGroundOverlay}}
\doxysubsubsection{\texorpdfstring{zoomLevel}{zoomLevel}}
{\footnotesize\ttfamily -\/ (float) zoom\+Level}



\doxysubsection{属性说明}
\Hypertarget{interface_b_m_k_ground_overlay_ad179c59ea12b8e9db600387d0c873d47}\label{interface_b_m_k_ground_overlay_ad179c59ea12b8e9db600387d0c873d47} 
\index{BMKGroundOverlay@{BMKGroundOverlay}!alpha@{alpha}}
\index{alpha@{alpha}!BMKGroundOverlay@{BMKGroundOverlay}}
\doxysubsubsection{\texorpdfstring{alpha}{alpha}}
{\footnotesize\ttfamily -\/ (GLfloat) alpha\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



图片纹理透明度,最终透明度 = 纹理透明度 \texorpdfstring{$\ast$}{*} alpha,取值范围为\mbox{[}0.\+0f, 1.\+0f\mbox{]}，默认为1.0f 

\Hypertarget{interface_b_m_k_ground_overlay_a2601d9c702749c36f3c693cdf6165c75}\label{interface_b_m_k_ground_overlay_a2601d9c702749c36f3c693cdf6165c75} 
\index{BMKGroundOverlay@{BMKGroundOverlay}!anchor@{anchor}}
\index{anchor@{anchor}!BMKGroundOverlay@{BMKGroundOverlay}}
\doxysubsubsection{\texorpdfstring{anchor}{anchor}}
{\footnotesize\ttfamily -\/ (CGPoint) anchor\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}

用位置绘制时图片的锚点，图片左上角为(0.\+0f,0.\+0f),向右向下为正 使用ground\+Overlay\+With\+Position初始化时生效 \Hypertarget{interface_b_m_k_ground_overlay_a2cc42179bfa82c4554f1f95c57013daf}\label{interface_b_m_k_ground_overlay_a2cc42179bfa82c4554f1f95c57013daf} 
\index{BMKGroundOverlay@{BMKGroundOverlay}!bound@{bound}}
\index{bound@{bound}!BMKGroundOverlay@{BMKGroundOverlay}}
\doxysubsubsection{\texorpdfstring{bound}{bound}}
{\footnotesize\ttfamily -\/ (\mbox{\hyperlink{struct_b_m_k_coordinate_bounds}{BMKCoordinate\+Bounds}}) bound\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



两种绘制\+Ground\+Overlay的方式之二：绘制的地理区域范围，图片在此区域内合理缩放 

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



绘制图片 

\Hypertarget{interface_b_m_k_ground_overlay_a99b7330f6eb896adf663b20cfaf0ff3d}\label{interface_b_m_k_ground_overlay_a99b7330f6eb896adf663b20cfaf0ff3d} 
\index{BMKGroundOverlay@{BMKGroundOverlay}!pt@{pt}}
\index{pt@{pt}!BMKGroundOverlay@{BMKGroundOverlay}}
\doxysubsubsection{\texorpdfstring{pt}{pt}}
{\footnotesize\ttfamily -\/ (CLLocation\+Coordinate2D) pt\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}

两种绘制\+Ground\+Overlay的方式之一：pt、anchor、zoom\+Level 绘制的位置地理坐标，与anchor配对使用 \Hypertarget{interface_b_m_k_ground_overlay_a94f7f1c1e511eb082dec6ce70ffeb8bf}\label{interface_b_m_k_ground_overlay_a94f7f1c1e511eb082dec6ce70ffeb8bf} 
\index{BMKGroundOverlay@{BMKGroundOverlay}!zoomLevel@{zoomLevel}}
\index{zoomLevel@{zoomLevel}!BMKGroundOverlay@{BMKGroundOverlay}}
\doxysubsubsection{\texorpdfstring{zoomLevel}{zoomLevel}}
{\footnotesize\ttfamily -\/ (CGFloat) zoom\+Level\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



不损失精度绘制原始图片的地图等级，无默认值 



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