bbl-mapbox-react 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,6 +12,8 @@ export interface RoadHighlightControlProps {
|
|
|
12
12
|
source?: string;
|
|
13
13
|
/** 数据源图层名称,默认 'road' */
|
|
14
14
|
sourceLayer?: string;
|
|
15
|
+
/** 道路分类字段名,默认 'class'(OpenMapTiles),OSM 原始数据用 'highway' */
|
|
16
|
+
classField?: string;
|
|
15
17
|
/** 自定义类名 */
|
|
16
18
|
className?: string;
|
|
17
19
|
/** 自定义样式 */
|
|
@@ -22,4 +24,4 @@ export interface RoadHighlightControlProps {
|
|
|
22
24
|
* 点击按钮打开/关闭面板,选中道路类型立即显示
|
|
23
25
|
* 每种道路类型使用独立图层和颜色
|
|
24
26
|
*/
|
|
25
|
-
export declare function RoadHighlightControl({ map, highlightWidth, defaultRoadTypes, defaultMinWidth: _defaultMinWidth, source: propSource, sourceLayer: propSourceLayer, className, style, }: RoadHighlightControlProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare function RoadHighlightControl({ map, highlightWidth, defaultRoadTypes, defaultMinWidth: _defaultMinWidth, source: propSource, sourceLayer: propSourceLayer, classField, className, style, }: RoadHighlightControlProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,7 +9,7 @@ export interface RoutePlanningControlProps {
|
|
|
9
9
|
/** 选点过程中的可视化类型,默认 'marker' */
|
|
10
10
|
visualType?: RoutePlanningVisualType;
|
|
11
11
|
/** 选点完成后的回调 */
|
|
12
|
-
onSelectFinished?: (points: [number, number][]) => Promise<MapEntity>;
|
|
12
|
+
onSelectFinished?: (points: [number, number][]) => Promise<MapEntity | null>;
|
|
13
13
|
/** 是否显示按钮UI,false时仅用于程序化调用 */
|
|
14
14
|
showButton?: boolean;
|
|
15
15
|
}
|