\hypertarget{category_b_m_k_map_view_07_custom_map_a_p_i_08}{}\doxysection{B\+M\+K\+Map\+View(Custom\+Map\+A\+PI)分类 参考}
\label{category_b_m_k_map_view_07_custom_map_a_p_i_08}\index{BMKMapView(CustomMapAPI)@{BMKMapView(CustomMapAPI)}}


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

\doxysubsection*{构造函数}
\begin{DoxyCompactItemize}
\item 
(B\+O\+OL) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_custom_map_a_p_i_08_a4f55e2688a063431389f929da71b582a}{set\+Custom\+Map\+Style\+Path\+:}}
\item 
(B\+O\+OL) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_custom_map_a_p_i_08_aadded027a36d2e3e88dba023161a9e34}{set\+Custom\+Map\+Style\+Path\+:mode\+:}}
\item 
(B\+O\+OL) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_custom_map_a_p_i_08_a6aa89a193244ef6776e3679ccc7ee375}{set\+Custom\+Map\+Style\+Enable\+:}}
\item 
(B\+O\+OL) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_custom_map_a_p_i_08_afbbc1cba4400a30d2c742183c2082632}{set\+Custom\+Map\+Style\+With\+Option\+:pre\+Load\+:success\+:failure\+:}}
\end{DoxyCompactItemize}


\doxysubsection{函数文档}
\mbox{\Hypertarget{category_b_m_k_map_view_07_custom_map_a_p_i_08_a6aa89a193244ef6776e3679ccc7ee375}\label{category_b_m_k_map_view_07_custom_map_a_p_i_08_a6aa89a193244ef6776e3679ccc7ee375}} 
\index{BMKMapView(CustomMapAPI)@{BMKMapView(CustomMapAPI)}!setCustomMapStyleEnable:@{setCustomMapStyleEnable:}}
\index{setCustomMapStyleEnable:@{setCustomMapStyleEnable:}!BMKMapView(CustomMapAPI)@{BMKMapView(CustomMapAPI)}}
\doxysubsubsection{\texorpdfstring{setCustomMapStyleEnable:}{setCustomMapStyleEnable:}}
{\footnotesize\ttfamily -\/ (B\+O\+OL) set\+Custom\+Map\+Style\+Enable\+: \begin{DoxyParamCaption}\item[{(B\+O\+OL)}]{enable }\end{DoxyParamCaption}}

V5.\+0.\+0版本新增,since V6.\+6.\+2,英文地图不再支持个性化地图 个性化地图样式开关，仅影响当前\+B\+M\+K\+Map\+View对象，需在对象创建后调用 
\begin{DoxyParams}{参数}
{\em enable} & 当前自定义地图样式是否生效 \\
\hline
\end{DoxyParams}


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

\mbox{\Hypertarget{category_b_m_k_map_view_07_custom_map_a_p_i_08_a4f55e2688a063431389f929da71b582a}\label{category_b_m_k_map_view_07_custom_map_a_p_i_08_a4f55e2688a063431389f929da71b582a}} 
\index{BMKMapView(CustomMapAPI)@{BMKMapView(CustomMapAPI)}!setCustomMapStylePath:@{setCustomMapStylePath:}}
\index{setCustomMapStylePath:@{setCustomMapStylePath:}!BMKMapView(CustomMapAPI)@{BMKMapView(CustomMapAPI)}}
\doxysubsubsection{\texorpdfstring{setCustomMapStylePath:}{setCustomMapStylePath:}}
{\footnotesize\ttfamily -\/ (B\+O\+OL) set\+Custom\+Map\+Style\+Path\+: \begin{DoxyParamCaption}\item[{(N\+S\+String $\ast$)}]{custom\+Map\+Style\+File\+Path }\end{DoxyParamCaption}}

V5.\+0.\+0版本新增,since V6.\+6.\+2,英文地图不再支持个性化地图 设置个性化地图样式路径，仅影响当前\+B\+M\+K\+Map\+View对象，需在对象创建后调用 
\begin{DoxyParams}{参数}
{\em custom\+Map\+Style\+File\+Path} & 本地个性化样式文件所在路径，包含文件名 \\
\hline
\end{DoxyParams}


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

\mbox{\Hypertarget{category_b_m_k_map_view_07_custom_map_a_p_i_08_aadded027a36d2e3e88dba023161a9e34}\label{category_b_m_k_map_view_07_custom_map_a_p_i_08_aadded027a36d2e3e88dba023161a9e34}} 
\index{BMKMapView(CustomMapAPI)@{BMKMapView(CustomMapAPI)}!setCustomMapStylePath:mode:@{setCustomMapStylePath:mode:}}
\index{setCustomMapStylePath:mode:@{setCustomMapStylePath:mode:}!BMKMapView(CustomMapAPI)@{BMKMapView(CustomMapAPI)}}
\doxysubsubsection{\texorpdfstring{setCustomMapStylePath:mode:}{setCustomMapStylePath:mode:}}
{\footnotesize\ttfamily -\/ (B\+O\+OL) set\+Custom\+Map\+Style\+Path\+: \begin{DoxyParamCaption}\item[{(N\+S\+String $\ast$)}]{custom\+Map\+Style\+File\+Path }\item[{mode\+:(int)}]{mode }\end{DoxyParamCaption}}

V5.\+0.\+0版本新增,since V6.\+6.\+2,英文地图不再支持个性化地图 设置个性化地图样式路径，仅影响当前\+B\+M\+K\+Map\+View对象，需在对象创建后调用 
\begin{DoxyParams}{参数}
{\em custom\+Map\+Style\+File\+Path} & 本地个性化样式文件所在路径，包含文件名 \\
\hline
{\em mode} & 加载模式，0\+:加载本地文件 1\+:加载在线文件或在线缓存文件 \\
\hline
\end{DoxyParams}


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

\mbox{\Hypertarget{category_b_m_k_map_view_07_custom_map_a_p_i_08_afbbc1cba4400a30d2c742183c2082632}\label{category_b_m_k_map_view_07_custom_map_a_p_i_08_afbbc1cba4400a30d2c742183c2082632}} 
\index{BMKMapView(CustomMapAPI)@{BMKMapView(CustomMapAPI)}!setCustomMapStyleWithOption:preLoad:success:failure:@{setCustomMapStyleWithOption:preLoad:success:failure:}}
\index{setCustomMapStyleWithOption:preLoad:success:failure:@{setCustomMapStyleWithOption:preLoad:success:failure:}!BMKMapView(CustomMapAPI)@{BMKMapView(CustomMapAPI)}}
\doxysubsubsection{\texorpdfstring{setCustomMapStyleWithOption:preLoad:success:failure:}{setCustomMapStyleWithOption:preLoad:success:failure:}}
{\footnotesize\ttfamily -\/ (B\+O\+OL) set\+Custom\+Map\+Style\+With\+Option\+: \begin{DoxyParamCaption}\item[{(\mbox{\hyperlink{interface_b_m_k_custom_map_style_option}{B\+M\+K\+Custom\+Map\+Style\+Option}} $\ast$)}]{option }\item[{pre\+Load\+:(void($^\wedge$)(N\+S\+String $\ast$\+\_\+\+Nullable path))}]{pre\+Load }\item[{success\+:(void($^\wedge$)(N\+S\+String $\ast$path))}]{success }\item[{failure\+:(void($^\wedge$)(N\+S\+Error $\ast$error, N\+S\+String $\ast$\+\_\+\+Nullable path))}]{failure }\end{DoxyParamCaption}}

V5.\+0.\+0版本新增,since V6.\+6.\+2,英文地图不再支持个性化地图 在线个性化样式加载状态回调接口。 在线个性化样式创建地址：http\+://lbsyun.baidu.\+com/apiconsole/custommap 调用该接口加载个性化样式的默认策略为：
\begin{DoxyItemize}
\item 1、优先通过\+B\+M\+K\+Custom\+Map\+Style\+Option配置的个性化样式\+I\+D，加载在线个性化样式；
\item 2、如果配置的个性化样式\+I\+D无效或在线个性化样式请求失败，则加载本地缓存的最新一次请求成功的在线个性化样式；
\item 3、如果本地缓存中没有最新一次请求成功的在线个性化样式，则通过\+B\+M\+K\+Custom\+Map\+Style\+Option中配置的本地离线样式路径加载本地样式
\item 4、如果以上样式加载都失败，则显示普通地图样式。 
\begin{DoxyParams}{参数}
{\em option} & 在线个性化样式配置选项 \\
\hline
{\em pre\+Load} & 当预加载成功时会执行的block对象，path：本地缓存的最新一次请求成功的在线个性化样式路径 \\
\hline
{\em success} & 当加载成功时会执行的block对象，path：请求成功的在线个性化样式路径 \\
\hline
{\em failure} & 当加载未成功时会执行的block对象，error：失败错误信息，path：失败后根据策略加载的个性化样式路径（路径可能会为nil） \\
\hline
\end{DoxyParams}

\end{DoxyItemize}

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