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.
package/dist/types.d.ts CHANGED
@@ -693,6 +693,8 @@ interface BaseLayerConfig extends RasterPaintConfig {
693
693
  hasRoadNetwork?: boolean;
694
694
  /** 路网数据所在的 source-layer 名称,默认 'road' */
695
695
  roadNetworkSourceLayer?: string;
696
+ /** 道路分类字段名,默认 'class'(OpenMapTiles),OSM 原始数据用 'highway' */
697
+ roadNetworkClassField?: string;
696
698
  /** 是否受 RasterPaintControl 控件控制,默认 false */
697
699
  applyRasterPaint?: boolean;
698
700
  }
@@ -990,6 +992,8 @@ export interface RoadHighlightControlConfig {
990
992
  source?: string;
991
993
  /** 数据源图层名称,默认 'road' */
992
994
  sourceLayer?: string;
995
+ /** 道路分类字段名,默认 'class'(OpenMapTiles),OSM 原始数据用 'highway' */
996
+ classField?: string;
993
997
  /** 自定义类名 */
994
998
  className?: string;
995
999
  /** 自定义样式 */
@@ -1043,7 +1047,7 @@ export interface RoutePlanningOptions {
1043
1047
  /** 选点过程中的可视化类型,默认 'marker' */
1044
1048
  visualType?: RoutePlanningVisualType;
1045
1049
  /** 选点完成后的回调,接收选中的点坐标数组,返回 entity */
1046
- onSelectFinished: (points: [number, number][]) => Promise<MapEntity>;
1050
+ onSelectFinished: (points: [number, number][]) => Promise<MapEntity | null>;
1047
1051
  }
1048
1052
  /**
1049
1053
  * 道路类型选项列表
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bbl-mapbox-react",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "React Mapbox 地图组件库,支持雷达、图像、标记、轨迹等多种 GIS 实体渲染",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",