\doxysection{BMKMap\+View(Custom\+Map\+API)分类 参考}
\hypertarget{category_b_m_k_map_view_07_custom_map_a_p_i_08}{}\label{category_b_m_k_map_view_07_custom_map_a_p_i_08}\index{BMKMapView(CustomMapAPI)@{BMKMapView(CustomMapAPI)}}


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

\doxysubsubsection*{构造函数}
\begin{DoxyCompactItemize}
\item 
(BOOL) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_custom_map_a_p_i_08_a4f55e2688a063431389f929da71b582a}{set\+Custom\+Map\+Style\+Path\+:}}
\item 
(BOOL) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_custom_map_a_p_i_08_aadded027a36d2e3e88dba023161a9e34}{set\+Custom\+Map\+Style\+Path\+:mode\+:}}
\item 
(BOOL) -\/ \mbox{\hyperlink{category_b_m_k_map_view_07_custom_map_a_p_i_08_a6aa89a193244ef6776e3679ccc7ee375}{set\+Custom\+Map\+Style\+Enable\+:}}
\item 
(BOOL) -\/ \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{函数文档}
\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 -\/ (BOOL) set\+Custom\+Map\+Style\+Enable\+: \begin{DoxyParamCaption}\item[{(BOOL)}]{enable }\end{DoxyParamCaption}}

V5.\+0.\+0版本新增,since V6.\+6.\+2,英文地图不再支持个性化地图 个性化地图样式开关，仅影响当前\+BMKMap\+View对象，需在对象创建后调用 
\begin{DoxyParams}{参数}
{\em enable} & 当前自定义地图样式是否生效 \\
\hline
\end{DoxyParams}
\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 -\/ (BOOL) set\+Custom\+Map\+Style\+Path\+: \begin{DoxyParamCaption}\item[{(NSString \texorpdfstring{$\ast$}{*})}]{custom\+Map\+Style\+File\+Path }\end{DoxyParamCaption}}

V5.\+0.\+0版本新增,since V6.\+6.\+2,英文地图不再支持个性化地图 设置个性化地图样式路径，仅影响当前\+BMKMap\+View对象，需在对象创建后调用 
\begin{DoxyParams}{参数}
{\em custom\+Map\+Style\+File\+Path} & 本地个性化样式文件所在路径，包含文件名 \\
\hline
\end{DoxyParams}
\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 -\/ (BOOL) \mbox{\hyperlink{category_b_m_k_map_view_07_custom_map_a_p_i_08_a4f55e2688a063431389f929da71b582a}{set\+Custom\+Map\+Style\+Path\+:}} \begin{DoxyParamCaption}\item[{(NSString \texorpdfstring{$\ast$}{*})}]{custom\+Map\+Style\+File\+Path }\item[{mode\+:(int)}]{mode }\end{DoxyParamCaption}}

V5.\+0.\+0版本新增,since V6.\+6.\+2,英文地图不再支持个性化地图 设置个性化地图样式路径，仅影响当前\+BMKMap\+View对象，需在对象创建后调用 
\begin{DoxyParams}{参数}
{\em custom\+Map\+Style\+File\+Path} & 本地个性化样式文件所在路径，包含文件名 \\
\hline
{\em mode} & 加载模式，0\+:加载本地文件 1\+:加载在线文件或在线缓存文件 \\
\hline
\end{DoxyParams}
\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 -\/ (BOOL) set\+Custom\+Map\+Style\+With\+Option\+: \begin{DoxyParamCaption}\item[{(\mbox{\hyperlink{interface_b_m_k_custom_map_style_option}{BMKCustom\+Map\+Style\+Option}} \texorpdfstring{$\ast$}{*})}]{option }\item[{pre\+Load\+:(void(\texorpdfstring{$^\wedge$}{\string^})(NSString \texorpdfstring{$\ast$}{*}\+\_\+\+Nullable path))}]{pre\+Load }\item[{success\+:(void(\texorpdfstring{$^\wedge$}{\string^})(NSString \texorpdfstring{$\ast$}{*}path))}]{success }\item[{failure\+:(void(\texorpdfstring{$^\wedge$}{\string^})(NSError \texorpdfstring{$\ast$}{*}error, NSString \texorpdfstring{$\ast$}{*}\+\_\+\+Nullable path))}]{failure }\end{DoxyParamCaption}}

V5.\+0.\+0版本新增,since V6.\+6.\+2,英文地图不再支持个性化地图 在线个性化样式加载状态回调接口。 在线个性化样式创建地址：http\+://lbsyun.baidu.\+com/apiconsole/custommap 调用该接口加载个性化样式的默认策略为：
\begin{DoxyItemize}
\item 1、优先通过\+BMKCustom\+Map\+Style\+Option配置的个性化样式\+ID，加载在线个性化样式；
\item 2、如果配置的个性化样式\+ID无效或在线个性化样式请求失败，则加载本地缓存的最新一次请求成功的在线个性化样式；
\item 3、如果本地缓存中没有最新一次请求成功的在线个性化样式，则通过\+BMKCustom\+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}

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