becomap 1.5.79 → 1.5.81
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 +23 -0
- package/package.json +3 -2
package/lib/index.d.ts
CHANGED
|
@@ -961,6 +961,24 @@ export interface BCMapView {
|
|
|
961
961
|
* @returns An array of amenity locations.
|
|
962
962
|
*/
|
|
963
963
|
getAllAminityLocations(): BCLocation[];
|
|
964
|
+
/**
|
|
965
|
+
* Sets the current custom location for the map view.eg: Kiosk Location
|
|
966
|
+
* @param customLocationId - The ID of the custom location to set as current.
|
|
967
|
+
*/
|
|
968
|
+
setCurrentCustomLocation(customLocationId: string): void;
|
|
969
|
+
/**
|
|
970
|
+
* Gets the current custom location ID.
|
|
971
|
+
* @returns The current custom location ID, or null if not set.
|
|
972
|
+
*/
|
|
973
|
+
getCurrentCustomLocationId(): string | null;
|
|
974
|
+
/**
|
|
975
|
+
* Retrieves amenity locations of a specific type, sorted by floor priority and distance from kiosk location.
|
|
976
|
+
* @param amenityType - The type of amenity to retrieve.
|
|
977
|
+
* @param customLocationId - Optional. The ID of the kiosk location to calculate distances from. If not provided, uses the current kiosk location.
|
|
978
|
+
* @param floorId - The preferred floor ID to prioritize in results.
|
|
979
|
+
* @returns An array of sorted amenity locations.
|
|
980
|
+
*/
|
|
981
|
+
getAminityLocations(amenityType: BCSiteAmenity, customLocationId?: string, floorId?: string): BCLocation[];
|
|
964
982
|
/**
|
|
965
983
|
* Searches for locations matching the provided search string.
|
|
966
984
|
* @param searchString - The string to search for.
|
|
@@ -979,6 +997,11 @@ export interface BCMapView {
|
|
|
979
997
|
*/
|
|
980
998
|
selectLocation(location: BCLocation): void;
|
|
981
999
|
selectLocationWithId(locationId: string): void;
|
|
1000
|
+
/**
|
|
1001
|
+
* Selects multiple locations on the map.
|
|
1002
|
+
* @param locations - The array of locations to select.
|
|
1003
|
+
*/
|
|
1004
|
+
selectLocations(locations: BCLocation[]): void;
|
|
982
1005
|
/**
|
|
983
1006
|
* Retrieves all available happenings of a specific type.
|
|
984
1007
|
* @param type - The type of happenings to retrieve.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "becomap",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.81",
|
|
4
4
|
"description": "we lib to display becomap",
|
|
5
5
|
"main": "lib/becomap.js",
|
|
6
6
|
"module": "lib/becomap.js",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"@turf/turf": "^7.1.0",
|
|
59
59
|
"@types/polylabel": "^1.1.3",
|
|
60
60
|
"axios": "^1.7.5",
|
|
61
|
+
"becomap": "^1.5.72",
|
|
61
62
|
"html-webpack-plugin": "^5.6.3",
|
|
62
63
|
"maplibre-gl": "^4.4.1",
|
|
63
64
|
"polished": "^4.3.1",
|
|
@@ -68,4 +69,4 @@
|
|
|
68
69
|
"troika-three-text": "^0.52.3",
|
|
69
70
|
"word-wrap": "^1.2.5"
|
|
70
71
|
}
|
|
71
|
-
}
|
|
72
|
+
}
|