\hypertarget{interface_b_m_k_background_map_view}{}\doxysection{B\+M\+K\+Background\+Map\+View类 参考}
\label{interface_b_m_k_background_map_view}\index{BMKBackgroundMapView@{BMKBackgroundMapView}}


进入后台或锁屏时的地图渲染\+View，配合后台保活和关联源地图\+B\+M\+K\+Map\+View用于后台投屏，  




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

类 B\+M\+K\+Background\+Map\+View 继承关系图\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{interface_b_m_k_background_map_view}
\end{center}
\end{figure}
\doxysubsection*{构造函数}
\begin{DoxyCompactItemize}
\item 
(void) -\/ \mbox{\hyperlink{interface_b_m_k_background_map_view_aa2d0aac5de99ba9b40248685681c16bf}{start\+Render}}
\begin{DoxyCompactList}\small\item\em 开始渲染 \end{DoxyCompactList}\item 
(void) -\/ \mbox{\hyperlink{interface_b_m_k_background_map_view_a69c0b2307488f9fa0cbce05d3bd542ae}{stop\+Render}}
\begin{DoxyCompactList}\small\item\em 结束渲染 \end{DoxyCompactList}\item 
(nullable U\+I\+Image $\ast$) -\/ \mbox{\hyperlink{interface_b_m_k_background_map_view_aadb275595ebf120b9fe1adf6d283d79b}{take\+Snapshot\+:}}
\begin{DoxyCompactList}\small\item\em 截屏 \end{DoxyCompactList}\item 
(nullable U\+I\+Image $\ast$) -\/ \mbox{\hyperlink{interface_b_m_k_background_map_view_a8521d3e9808f015353b6328f9b08d85a}{take\+Snapshot\+:need\+Logo\+:}}
\begin{DoxyCompactList}\small\item\em 截屏 \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{属性}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{interface_b_m_k_map_view}{B\+M\+K\+Map\+View}} $\ast$ \mbox{\hyperlink{interface_b_m_k_background_map_view_a8ee57ff67b9d21dccaa54a79d15d969f}{mapview}}
\begin{DoxyCompactList}\small\item\em 关联源地图，用于同步数据 \end{DoxyCompactList}\item 
N\+S\+Integer \mbox{\hyperlink{interface_b_m_k_background_map_view_a10f410154d6163df9f128eea5a1d56db}{frame\+Rate}}
\begin{DoxyCompactList}\small\item\em 帧率控制，默认30帧/s，范围10～60帧/s \end{DoxyCompactList}\item 
C\+G\+Point \mbox{\hyperlink{interface_b_m_k_background_map_view_a71097b99f5f730904bde2e86bfbf049e}{map\+Screen\+Ext\+Offset}}
\begin{DoxyCompactList}\small\item\em 设置地图额外偏移量,x轴负值向左偏，y轴负值向上偏，默认地图中心点target\+Screen\+Pt，可用于微调小车位置等 \end{DoxyCompactList}\item 
B\+O\+OL \mbox{\hyperlink{interface_b_m_k_background_map_view_a455372cd9cb0f162e9cc37c3d7b87450}{enable3D}}
\begin{DoxyCompactList}\small\item\em 3D绘制，默认\+Y\+ES \end{DoxyCompactList}\item 
B\+O\+OL \mbox{\hyperlink{interface_b_m_k_background_map_view_a1f84f24603c6236b989374f5eff3cb23}{is\+Rendering}}
\begin{DoxyCompactList}\small\item\em 当前是否在渲染 \end{DoxyCompactList}\item 
C\+G\+Float \mbox{\hyperlink{interface_b_m_k_background_map_view_ab41ffbd8c41d11b2bfd247e4a134f33f}{fit\+Scale}}
\begin{DoxyCompactList}\small\item\em 当前适配后缩放比例 \end{DoxyCompactList}\item 
U\+I\+View $\ast$ \mbox{\hyperlink{interface_b_m_k_background_map_view_a90d865ebdc8dd4044ed7ecc1f2287493}{background\+View}}
\begin{DoxyCompactList}\small\item\em 获取背景图层,用于自定义背景颜色 \end{DoxyCompactList}\item 
\mbox{\hyperlink{interface_b_m_k_background_road_net_view}{B\+M\+K\+Background\+Road\+Net\+View}} $\ast$ \mbox{\hyperlink{interface_b_m_k_background_map_view_a89bcfb980cddf7a2f1acde101f214c31}{road\+Net\+View}}
\begin{DoxyCompactList}\small\item\em 获取路网图层，用于自定义路网颜色 \end{DoxyCompactList}\item 
\mbox{\hyperlink{interface_b_m_k_background_navigation_view}{B\+M\+K\+Background\+Navigation\+View}} $\ast$ \mbox{\hyperlink{interface_b_m_k_background_map_view_a95822f178b3500b4279cda0c11fa74e3}{navigation\+View}}
\item 
\mbox{\hyperlink{_b_m_k_map_view_8h_a2b54deb43cfd24eacb3339e18728fbb0}{B\+M\+K\+Logo\+Position}} \mbox{\hyperlink{interface_b_m_k_background_map_view_a6f676f608c9eaf38c830fd691399a64c}{logo\+Position}}
\begin{DoxyCompactList}\small\item\em logo位置，默认\+B\+M\+K\+Logo\+Position\+Left\+Bottom \end{DoxyCompactList}\item 
B\+O\+OL \mbox{\hyperlink{interface_b_m_k_background_map_view_a4dc2e30e091b5d01a07f35515aa35d83}{show\+Scale\+Bar}}
\begin{DoxyCompactList}\small\item\em 设定是否显式比例尺，默认\+NO \end{DoxyCompactList}\item 
C\+G\+Point \mbox{\hyperlink{interface_b_m_k_background_map_view_aa57a94f3db94b16204ddd0d73fb97c6c}{scale\+Bar\+Position}}
\begin{DoxyCompactList}\small\item\em 比例尺的位置，设定坐标以左上角为原点，向右向下增长，默认左上角00 \end{DoxyCompactList}\item 
C\+G\+Size \mbox{\hyperlink{interface_b_m_k_background_map_view_a0303b818ec6b70485364e0dc454dc261}{scale\+Bar\+Size}}
\begin{DoxyCompactList}\small\item\em 比例尺的宽高,宽最大值为mapview宽度的一半 \end{DoxyCompactList}\item 
U\+I\+Color $\ast$ \mbox{\hyperlink{interface_b_m_k_background_map_view_a154e3092fbe85ea07c7e5780bef47a1e}{scale\+Bar\+Color}}
\begin{DoxyCompactList}\small\item\em 比例尺颜色，默认黑色 \end{DoxyCompactList}\item 
U\+I\+Color $\ast$ \mbox{\hyperlink{interface_b_m_k_background_map_view_a7ad97d419fc9099c7fcc1674fb77ab69}{scale\+Bar\+Text\+Color}}
\begin{DoxyCompactList}\small\item\em 比例尺文本颜色，默认与比例尺颜色一致 \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{详细描述}
进入后台或锁屏时的地图渲染\+View，配合后台保活和关联源地图\+B\+M\+K\+Map\+View用于后台投屏， 

\doxysubsection{函数文档}
\mbox{\Hypertarget{interface_b_m_k_background_map_view_aa2d0aac5de99ba9b40248685681c16bf}\label{interface_b_m_k_background_map_view_aa2d0aac5de99ba9b40248685681c16bf}} 
\index{BMKBackgroundMapView@{BMKBackgroundMapView}!startRender@{startRender}}
\index{startRender@{startRender}!BMKBackgroundMapView@{BMKBackgroundMapView}}
\doxysubsubsection{\texorpdfstring{startRender}{startRender}}
{\footnotesize\ttfamily -\/ (void) start\+Render \begin{DoxyParamCaption}{ }\end{DoxyParamCaption}}



开始渲染 

\mbox{\Hypertarget{interface_b_m_k_background_map_view_a69c0b2307488f9fa0cbce05d3bd542ae}\label{interface_b_m_k_background_map_view_a69c0b2307488f9fa0cbce05d3bd542ae}} 
\index{BMKBackgroundMapView@{BMKBackgroundMapView}!stopRender@{stopRender}}
\index{stopRender@{stopRender}!BMKBackgroundMapView@{BMKBackgroundMapView}}
\doxysubsubsection{\texorpdfstring{stopRender}{stopRender}}
{\footnotesize\ttfamily -\/ (void) stop\+Render \begin{DoxyParamCaption}{ }\end{DoxyParamCaption}}



结束渲染 

\mbox{\Hypertarget{interface_b_m_k_background_map_view_aadb275595ebf120b9fe1adf6d283d79b}\label{interface_b_m_k_background_map_view_aadb275595ebf120b9fe1adf6d283d79b}} 
\index{BMKBackgroundMapView@{BMKBackgroundMapView}!takeSnapshot:@{takeSnapshot:}}
\index{takeSnapshot:@{takeSnapshot:}!BMKBackgroundMapView@{BMKBackgroundMapView}}
\doxysubsubsection{\texorpdfstring{takeSnapshot:}{takeSnapshot:}}
{\footnotesize\ttfamily -\/ (nullable U\+I\+Image $\ast$) take\+Snapshot\+: \begin{DoxyParamCaption}\item[{(C\+G\+Rect)}]{rect }\end{DoxyParamCaption}}



截屏 

\mbox{\Hypertarget{interface_b_m_k_background_map_view_a8521d3e9808f015353b6328f9b08d85a}\label{interface_b_m_k_background_map_view_a8521d3e9808f015353b6328f9b08d85a}} 
\index{BMKBackgroundMapView@{BMKBackgroundMapView}!takeSnapshot:needLogo:@{takeSnapshot:needLogo:}}
\index{takeSnapshot:needLogo:@{takeSnapshot:needLogo:}!BMKBackgroundMapView@{BMKBackgroundMapView}}
\doxysubsubsection{\texorpdfstring{takeSnapshot:needLogo:}{takeSnapshot:needLogo:}}
{\footnotesize\ttfamily -\/ (nullable U\+I\+Image $\ast$) \mbox{\hyperlink{interface_b_m_k_background_map_view_aadb275595ebf120b9fe1adf6d283d79b}{take\+Snapshot\+:}} \begin{DoxyParamCaption}\item[{(C\+G\+Rect)}]{rect }\item[{need\+Logo\+:(B\+O\+OL)}]{need\+Logo }\end{DoxyParamCaption}}



截屏 



\doxysubsection{属性说明}
\mbox{\Hypertarget{interface_b_m_k_background_map_view_a90d865ebdc8dd4044ed7ecc1f2287493}\label{interface_b_m_k_background_map_view_a90d865ebdc8dd4044ed7ecc1f2287493}} 
\index{BMKBackgroundMapView@{BMKBackgroundMapView}!backgroundView@{backgroundView}}
\index{backgroundView@{backgroundView}!BMKBackgroundMapView@{BMKBackgroundMapView}}
\doxysubsubsection{\texorpdfstring{backgroundView}{backgroundView}}
{\footnotesize\ttfamily -\/ (U\+I\+View$\ast$) background\+View\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



获取背景图层,用于自定义背景颜色 

\mbox{\Hypertarget{interface_b_m_k_background_map_view_a455372cd9cb0f162e9cc37c3d7b87450}\label{interface_b_m_k_background_map_view_a455372cd9cb0f162e9cc37c3d7b87450}} 
\index{BMKBackgroundMapView@{BMKBackgroundMapView}!enable3D@{enable3D}}
\index{enable3D@{enable3D}!BMKBackgroundMapView@{BMKBackgroundMapView}}
\doxysubsubsection{\texorpdfstring{enable3D}{enable3D}}
{\footnotesize\ttfamily -\/ (B\+O\+OL) enable3D\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



3D绘制，默认\+Y\+ES 

\mbox{\Hypertarget{interface_b_m_k_background_map_view_ab41ffbd8c41d11b2bfd247e4a134f33f}\label{interface_b_m_k_background_map_view_ab41ffbd8c41d11b2bfd247e4a134f33f}} 
\index{BMKBackgroundMapView@{BMKBackgroundMapView}!fitScale@{fitScale}}
\index{fitScale@{fitScale}!BMKBackgroundMapView@{BMKBackgroundMapView}}
\doxysubsubsection{\texorpdfstring{fitScale}{fitScale}}
{\footnotesize\ttfamily -\/ (C\+G\+Float) fit\+Scale\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



当前适配后缩放比例 

\mbox{\Hypertarget{interface_b_m_k_background_map_view_a10f410154d6163df9f128eea5a1d56db}\label{interface_b_m_k_background_map_view_a10f410154d6163df9f128eea5a1d56db}} 
\index{BMKBackgroundMapView@{BMKBackgroundMapView}!frameRate@{frameRate}}
\index{frameRate@{frameRate}!BMKBackgroundMapView@{BMKBackgroundMapView}}
\doxysubsubsection{\texorpdfstring{frameRate}{frameRate}}
{\footnotesize\ttfamily -\/ (N\+S\+Integer) frame\+Rate\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



帧率控制，默认30帧/s，范围10～60帧/s 

\mbox{\Hypertarget{interface_b_m_k_background_map_view_a1f84f24603c6236b989374f5eff3cb23}\label{interface_b_m_k_background_map_view_a1f84f24603c6236b989374f5eff3cb23}} 
\index{BMKBackgroundMapView@{BMKBackgroundMapView}!isRendering@{isRendering}}
\index{isRendering@{isRendering}!BMKBackgroundMapView@{BMKBackgroundMapView}}
\doxysubsubsection{\texorpdfstring{isRendering}{isRendering}}
{\footnotesize\ttfamily -\/ (B\+O\+OL) is\+Rendering\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



当前是否在渲染 

\mbox{\Hypertarget{interface_b_m_k_background_map_view_a6f676f608c9eaf38c830fd691399a64c}\label{interface_b_m_k_background_map_view_a6f676f608c9eaf38c830fd691399a64c}} 
\index{BMKBackgroundMapView@{BMKBackgroundMapView}!logoPosition@{logoPosition}}
\index{logoPosition@{logoPosition}!BMKBackgroundMapView@{BMKBackgroundMapView}}
\doxysubsubsection{\texorpdfstring{logoPosition}{logoPosition}}
{\footnotesize\ttfamily -\/ (\mbox{\hyperlink{_b_m_k_map_view_8h_a2b54deb43cfd24eacb3339e18728fbb0}{B\+M\+K\+Logo\+Position}}) logo\+Position\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



logo位置，默认\+B\+M\+K\+Logo\+Position\+Left\+Bottom 

\mbox{\Hypertarget{interface_b_m_k_background_map_view_a71097b99f5f730904bde2e86bfbf049e}\label{interface_b_m_k_background_map_view_a71097b99f5f730904bde2e86bfbf049e}} 
\index{BMKBackgroundMapView@{BMKBackgroundMapView}!mapScreenExtOffset@{mapScreenExtOffset}}
\index{mapScreenExtOffset@{mapScreenExtOffset}!BMKBackgroundMapView@{BMKBackgroundMapView}}
\doxysubsubsection{\texorpdfstring{mapScreenExtOffset}{mapScreenExtOffset}}
{\footnotesize\ttfamily -\/ (C\+G\+Point) map\+Screen\+Ext\+Offset\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



设置地图额外偏移量,x轴负值向左偏，y轴负值向上偏，默认地图中心点target\+Screen\+Pt，可用于微调小车位置等 

\mbox{\Hypertarget{interface_b_m_k_background_map_view_a8ee57ff67b9d21dccaa54a79d15d969f}\label{interface_b_m_k_background_map_view_a8ee57ff67b9d21dccaa54a79d15d969f}} 
\index{BMKBackgroundMapView@{BMKBackgroundMapView}!mapview@{mapview}}
\index{mapview@{mapview}!BMKBackgroundMapView@{BMKBackgroundMapView}}
\doxysubsubsection{\texorpdfstring{mapview}{mapview}}
{\footnotesize\ttfamily -\/ (\mbox{\hyperlink{interface_b_m_k_map_view}{B\+M\+K\+Map\+View}}$\ast$) mapview\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [weak]}}



关联源地图，用于同步数据 

\mbox{\Hypertarget{interface_b_m_k_background_map_view_a95822f178b3500b4279cda0c11fa74e3}\label{interface_b_m_k_background_map_view_a95822f178b3500b4279cda0c11fa74e3}} 
\index{BMKBackgroundMapView@{BMKBackgroundMapView}!navigationView@{navigationView}}
\index{navigationView@{navigationView}!BMKBackgroundMapView@{BMKBackgroundMapView}}
\doxysubsubsection{\texorpdfstring{navigationView}{navigationView}}
{\footnotesize\ttfamily -\/ (\mbox{\hyperlink{interface_b_m_k_background_navigation_view}{B\+M\+K\+Background\+Navigation\+View}}$\ast$) navigation\+View\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [weak]}}

获取导航图层,用于自定义导航路线宽度，颜色（驾车导航路线路况颜色，走过置灰或擦除，置灰颜色），路线数据更新； 用于自定义导航小车图标及大小，位置方向更新，罗盘是否显示，小车车头是否跟随手机旋转 \mbox{\Hypertarget{interface_b_m_k_background_map_view_a89bcfb980cddf7a2f1acde101f214c31}\label{interface_b_m_k_background_map_view_a89bcfb980cddf7a2f1acde101f214c31}} 
\index{BMKBackgroundMapView@{BMKBackgroundMapView}!roadNetView@{roadNetView}}
\index{roadNetView@{roadNetView}!BMKBackgroundMapView@{BMKBackgroundMapView}}
\doxysubsubsection{\texorpdfstring{roadNetView}{roadNetView}}
{\footnotesize\ttfamily -\/ (\mbox{\hyperlink{interface_b_m_k_background_road_net_view}{B\+M\+K\+Background\+Road\+Net\+View}}$\ast$) road\+Net\+View\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



获取路网图层，用于自定义路网颜色 

\mbox{\Hypertarget{interface_b_m_k_background_map_view_a154e3092fbe85ea07c7e5780bef47a1e}\label{interface_b_m_k_background_map_view_a154e3092fbe85ea07c7e5780bef47a1e}} 
\index{BMKBackgroundMapView@{BMKBackgroundMapView}!scaleBarColor@{scaleBarColor}}
\index{scaleBarColor@{scaleBarColor}!BMKBackgroundMapView@{BMKBackgroundMapView}}
\doxysubsubsection{\texorpdfstring{scaleBarColor}{scaleBarColor}}
{\footnotesize\ttfamily -\/ (U\+I\+Color$\ast$) scale\+Bar\+Color\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [strong]}}



比例尺颜色，默认黑色 

\mbox{\Hypertarget{interface_b_m_k_background_map_view_aa57a94f3db94b16204ddd0d73fb97c6c}\label{interface_b_m_k_background_map_view_aa57a94f3db94b16204ddd0d73fb97c6c}} 
\index{BMKBackgroundMapView@{BMKBackgroundMapView}!scaleBarPosition@{scaleBarPosition}}
\index{scaleBarPosition@{scaleBarPosition}!BMKBackgroundMapView@{BMKBackgroundMapView}}
\doxysubsubsection{\texorpdfstring{scaleBarPosition}{scaleBarPosition}}
{\footnotesize\ttfamily -\/ (C\+G\+Point) scale\+Bar\+Position\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



比例尺的位置，设定坐标以左上角为原点，向右向下增长，默认左上角00 

\mbox{\Hypertarget{interface_b_m_k_background_map_view_a0303b818ec6b70485364e0dc454dc261}\label{interface_b_m_k_background_map_view_a0303b818ec6b70485364e0dc454dc261}} 
\index{BMKBackgroundMapView@{BMKBackgroundMapView}!scaleBarSize@{scaleBarSize}}
\index{scaleBarSize@{scaleBarSize}!BMKBackgroundMapView@{BMKBackgroundMapView}}
\doxysubsubsection{\texorpdfstring{scaleBarSize}{scaleBarSize}}
{\footnotesize\ttfamily -\/ (C\+G\+Size) scale\+Bar\+Size\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



比例尺的宽高,宽最大值为mapview宽度的一半 

\mbox{\Hypertarget{interface_b_m_k_background_map_view_a7ad97d419fc9099c7fcc1674fb77ab69}\label{interface_b_m_k_background_map_view_a7ad97d419fc9099c7fcc1674fb77ab69}} 
\index{BMKBackgroundMapView@{BMKBackgroundMapView}!scaleBarTextColor@{scaleBarTextColor}}
\index{scaleBarTextColor@{scaleBarTextColor}!BMKBackgroundMapView@{BMKBackgroundMapView}}
\doxysubsubsection{\texorpdfstring{scaleBarTextColor}{scaleBarTextColor}}
{\footnotesize\ttfamily -\/ (U\+I\+Color$\ast$) scale\+Bar\+Text\+Color\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [strong]}}



比例尺文本颜色，默认与比例尺颜色一致 

\mbox{\Hypertarget{interface_b_m_k_background_map_view_a4dc2e30e091b5d01a07f35515aa35d83}\label{interface_b_m_k_background_map_view_a4dc2e30e091b5d01a07f35515aa35d83}} 
\index{BMKBackgroundMapView@{BMKBackgroundMapView}!showScaleBar@{showScaleBar}}
\index{showScaleBar@{showScaleBar}!BMKBackgroundMapView@{BMKBackgroundMapView}}
\doxysubsubsection{\texorpdfstring{showScaleBar}{showScaleBar}}
{\footnotesize\ttfamily -\/ (B\+O\+OL) show\+Scale\+Bar\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}, {\ttfamily [nonatomic]}, {\ttfamily [assign]}}



设定是否显式比例尺，默认\+NO 



该类的文档由以下文件生成\+:\begin{DoxyCompactItemize}
\item 
Baidu\+Map\+A\+P\+I\+\_\+\+Map.\+framework/\+Headers/\mbox{\hyperlink{_b_m_k_background_map_view_8h}{B\+M\+K\+Background\+Map\+View.\+h}}\end{DoxyCompactItemize}
