becomap 1.6.93 → 1.6.95

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/lib/index.d.ts CHANGED
@@ -654,6 +654,52 @@ export interface BCRouteController {
654
654
  * It relies on the routeController to manage route layers or data.
655
655
  */
656
656
  clearAllRoutes(): void;
657
+ /**
658
+ * Animates a marker along the drawn route.
659
+ *
660
+ * This method creates a marker that smoothly moves along the route path,
661
+ * following the coordinates of all route segments. The animation automatically
662
+ * switches to the start location's floor, handles floor changes during the route,
663
+ * and provides a visual representation of navigation. The map camera can optionally
664
+ * follow the marker for an immersive experience.
665
+ *
666
+ * @param options - Optional configuration for the animation
667
+ * @param options.duration - Total duration of the animation in milliseconds (default: 5000)
668
+ * @param options.markerSize - Size of the marker icon in pixels (default: 32)
669
+ * @param options.followCamera - Whether the map camera should follow the marker (default: true)
670
+ * @param options.cameraZoom - Optional zoom level for the camera when following (default: current zoom)
671
+ * @param options.showFloorChangeNotification - Whether to show visual notification on floor change (default: true)
672
+ * @param options.onComplete - Callback function called when animation completes
673
+ * @param options.onFloorChange - Callback function called when marker changes floor
674
+ *
675
+ * @example
676
+ * // Animate with default settings (camera follows marker)
677
+ * routeController.animateMarkerAlongRoute();
678
+ *
679
+ * @example
680
+ * // Animate with custom settings and camera following
681
+ * routeController.animateMarkerAlongRoute({
682
+ * duration: 10000,
683
+ * markerSize: 40,
684
+ * followCamera: true,
685
+ * cameraZoom: 19,
686
+ * onComplete: () => console.log('Animation finished!'),
687
+ * onFloorChange: (floor) => console.log('Changed to floor:', floor.name)
688
+ * });
689
+ */
690
+ animateMarkerAlongRoute(options?: {
691
+ duration?: number;
692
+ markerSize?: number;
693
+ followCamera?: boolean;
694
+ cameraZoom?: number;
695
+ showFloorChangeNotification?: boolean;
696
+ onComplete?: () => void;
697
+ onFloorChange?: (floor: BCMapFloor) => void;
698
+ }): void;
699
+ /**
700
+ * Stops the ongoing marker animation.
701
+ */
702
+ stopMarkerAnimation(): void;
657
703
  }
658
704
  export type BCRoutable = BCLocation;
659
705
  export interface BCRouteOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "becomap",
3
- "version": "1.6.93",
3
+ "version": "1.6.95",
4
4
  "description": "we lib to display becomap",
5
5
  "main": "lib/becomap.js",
6
6
  "module": "lib/becomap.js",