bbl-mapbox-react 0.0.22 → 0.0.23

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.
@@ -1,5 +1,5 @@
1
1
  import { Map as MapboxMap } from 'mapbox-gl';
2
- import { RoadClass } from '../types';
2
+ import { RoadClass, RoadHighlightControlRef } from '../types';
3
3
  export interface RoadHighlightControlProps {
4
4
  map: MapboxMap | null;
5
5
  /** 高亮线宽,默认 3 */
@@ -18,10 +18,12 @@ export interface RoadHighlightControlProps {
18
18
  className?: string;
19
19
  /** 自定义样式 */
20
20
  style?: React.CSSProperties;
21
+ /** 是否显示按钮UI,false时隐藏按钮但仍可通过 ref 使用 portal */
22
+ showButton?: boolean;
21
23
  }
22
24
  /**
23
25
  * 路网高亮控件组件
24
26
  * 点击按钮打开/关闭面板,选中道路类型立即显示
25
27
  * 每种道路类型使用独立图层和颜色
26
28
  */
27
- export declare function RoadHighlightControl({ map, highlightWidth, defaultRoadTypes, defaultMinWidth: _defaultMinWidth, source: propSource, sourceLayer: propSourceLayer, classField, className, style, }: RoadHighlightControlProps): import("react/jsx-runtime").JSX.Element;
29
+ export declare const RoadHighlightControl: import('react').ForwardRefExoticComponent<RoadHighlightControlProps & import('react').RefAttributes<RoadHighlightControlRef>>;