bbl-mapbox-react 0.0.27 → 0.0.28

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +2 -1
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -629,6 +629,7 @@ export interface MapboxRef {
629
629
  * 绘制完成后自动退出绘制模式
630
630
  *
631
631
  * @param options 绘制选项(MarkerTemplate 或 DrawingOptions)
632
+ * @param clearPickedLocation 是否在绘制前清除选址结果(默认 true)
632
633
  *
633
634
  * @example
634
635
  * // 绘制 Marker(传入 MarkerTemplate)
@@ -637,7 +638,7 @@ export interface MapboxRef {
637
638
  * // 绘制矩形
638
639
  * mapboxRef.current?.startDrawing({ mode: 'rectangle' });
639
640
  */
640
- startDrawing: (options: MarkerTemplate | DrawingOptions) => void;
641
+ startDrawing: (options: MarkerTemplate | DrawingOptions, clearPickedLocation?: boolean) => void;
641
642
  /**
642
643
  * 获取指定实体的渲染器实例
643
644
  * @param id 实体 ID
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bbl-mapbox-react",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "description": "React Mapbox 地图组件库,支持雷达、图像、标记、轨迹等多种 GIS 实体渲染",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",