becomap 1.5.70 → 1.5.71
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/becomap.js +1 -1
- package/lib/index.d.ts +21 -12
- package/package.json +1 -1
- package/public/README.md +902 -0
- package/public/index.html +744 -154
package/lib/index.d.ts
CHANGED
|
@@ -633,6 +633,16 @@ export interface BCRouteController {
|
|
|
633
633
|
* @param orderIndex - The order index of the step to display.
|
|
634
634
|
*/
|
|
635
635
|
showStepByOrderIndex(orderIndex: number): void;
|
|
636
|
+
/**
|
|
637
|
+
* Shows a specific route segment by its orderIndex.
|
|
638
|
+
* @param orderIndex - The order index of the segment to display.
|
|
639
|
+
*/
|
|
640
|
+
showSegmentByOrderIndex(orderIndex: number): void;
|
|
641
|
+
/**
|
|
642
|
+
* Gets the currently stored route segments.
|
|
643
|
+
* @returns Array of BCRouteSegment objects or null if no segments are stored.
|
|
644
|
+
*/
|
|
645
|
+
get segments(): BCRouteSegment[] | null;
|
|
636
646
|
/**
|
|
637
647
|
* Clears the current route from the map by removing the route layer or data from the map view.
|
|
638
648
|
* It relies on the routeController to manage route layers or data.
|
|
@@ -870,6 +880,17 @@ export interface BCMapViewOptions {
|
|
|
870
880
|
* rendered or when the map is loading.
|
|
871
881
|
*/
|
|
872
882
|
background?: string;
|
|
883
|
+
/**
|
|
884
|
+
* Optional bounds for the map view, as [minLng, minLat, maxLng, maxLat].
|
|
885
|
+
* minLng: southwest longitude, minLat: southwest latitude,
|
|
886
|
+
* maxLng: northeast longitude, maxLat: northeast latitude
|
|
887
|
+
*/
|
|
888
|
+
bounds?: [
|
|
889
|
+
number,
|
|
890
|
+
number,
|
|
891
|
+
number,
|
|
892
|
+
number
|
|
893
|
+
];
|
|
873
894
|
}
|
|
874
895
|
/**
|
|
875
896
|
* Interface representing the public API of the BCMapView class.
|
|
@@ -987,18 +1008,6 @@ export interface BCMapView {
|
|
|
987
1008
|
* Clears all current selections on the map.
|
|
988
1009
|
*/
|
|
989
1010
|
clearSelection(): void;
|
|
990
|
-
/**
|
|
991
|
-
* Sets the map bounds to the specified southwest and northeast coordinates.
|
|
992
|
-
* @param sw - The southwest coordinates.
|
|
993
|
-
* @param ne - The northeast coordinates.
|
|
994
|
-
*/
|
|
995
|
-
setBounds(sw: [
|
|
996
|
-
number,
|
|
997
|
-
number
|
|
998
|
-
], ne: [
|
|
999
|
-
number,
|
|
1000
|
-
number
|
|
1001
|
-
]): void;
|
|
1002
1011
|
/**
|
|
1003
1012
|
* Resets the default viewport with the provided options.
|
|
1004
1013
|
* @param newOptions - Partial options to update the viewport.
|