@tomtom-org/maps-sdk 0.35.5 → 0.36.0
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/CHANGELOG.md +12 -0
- package/core/dist/core.es.js +1 -1
- package/core/dist/core.es.js.map +1 -1
- package/core/dist/index.d.ts +14 -8
- package/map/dist/THIRD_PARTY.txt +1 -1
- package/map/dist/index.d.ts +12 -18
- package/map/dist/map.es.js +1 -1
- package/map/dist/map.es.js.map +1 -1
- package/package.json +1 -1
- package/services/dist/services.es.js +1 -1
- package/services/dist/services.es.js.map +1 -1
package/core/dist/index.d.ts
CHANGED
|
@@ -3729,7 +3729,14 @@ export declare type RoadShieldSectionProps = SectionProps & {
|
|
|
3729
3729
|
*
|
|
3730
3730
|
* @group Route
|
|
3731
3731
|
*/
|
|
3732
|
-
export declare type Route<P extends RouteProps = RouteProps> = Feature<LineString, P
|
|
3732
|
+
export declare type Route<P extends RouteProps = RouteProps> = Omit<Feature<LineString, P>, 'id'> & {
|
|
3733
|
+
/**
|
|
3734
|
+
* Unique identifier for this route.
|
|
3735
|
+
*
|
|
3736
|
+
* Randomly generated to distinguish between multiple route alternatives.
|
|
3737
|
+
*/
|
|
3738
|
+
id: string;
|
|
3739
|
+
};
|
|
3733
3740
|
|
|
3734
3741
|
/**
|
|
3735
3742
|
* Route path point and its metadata.
|
|
@@ -3839,12 +3846,6 @@ export declare type RouteProgressPoint = {
|
|
|
3839
3846
|
* @group Route
|
|
3840
3847
|
*/
|
|
3841
3848
|
export declare type RouteProps = {
|
|
3842
|
-
/**
|
|
3843
|
-
* Unique identifier for this route.
|
|
3844
|
-
*
|
|
3845
|
-
* Randomly generated to distinguish between multiple route alternatives.
|
|
3846
|
-
*/
|
|
3847
|
-
id: string;
|
|
3848
3849
|
/**
|
|
3849
3850
|
* Summary statistics for the entire route.
|
|
3850
3851
|
*
|
|
@@ -3910,7 +3911,12 @@ export declare type RouteProps = {
|
|
|
3910
3911
|
*
|
|
3911
3912
|
* @group Route
|
|
3912
3913
|
*/
|
|
3913
|
-
export declare type Routes<P extends RouteProps = RouteProps, FeatureCollectionProps = unknown> = FeatureCollectionWithProperties<LineString, P, FeatureCollectionProps
|
|
3914
|
+
export declare type Routes<P extends RouteProps = RouteProps, FeatureCollectionProps = unknown> = Omit<FeatureCollectionWithProperties<LineString, P, FeatureCollectionProps>, 'features'> & {
|
|
3915
|
+
/**
|
|
3916
|
+
* Array of route features.
|
|
3917
|
+
*/
|
|
3918
|
+
features: Route<P>[];
|
|
3919
|
+
};
|
|
3914
3920
|
|
|
3915
3921
|
/**
|
|
3916
3922
|
* Complete summary information for an entire route.
|
package/map/dist/THIRD_PARTY.txt
CHANGED
package/map/dist/index.d.ts
CHANGED
|
@@ -956,9 +956,11 @@ export declare const buildPlaceTitle: (place: Place) => string;
|
|
|
956
956
|
/**
|
|
957
957
|
* Generates the routing layers configuration for route visualization on the map.
|
|
958
958
|
* @param config - Optional routing module configuration to customize layer properties.
|
|
959
|
+
* @param layerIDPrefix - Optional prefix to add to layer IDs for supporting multiple instances.
|
|
960
|
+
* @param instanceIndex - Optional instance index for image ID suffixes.
|
|
959
961
|
* @ignore
|
|
960
962
|
*/
|
|
961
|
-
export declare const buildRoutingLayers: (config?: RoutingModuleConfig) => Required<RouteLayersConfig>;
|
|
963
|
+
export declare const buildRoutingLayers: (config?: RoutingModuleConfig, layerIDPrefix?: string, instanceIndex?: number) => Required<RouteLayersConfig>;
|
|
962
964
|
|
|
963
965
|
/**
|
|
964
966
|
* Parameters to identify a feature by its ID or index in a given features array.
|
|
@@ -3379,11 +3381,6 @@ declare type HillshadeSourcesWithLayers = {
|
|
|
3379
3381
|
*/
|
|
3380
3382
|
export declare type HoverEventType = 'hover' | 'long-hover';
|
|
3381
3383
|
|
|
3382
|
-
/**
|
|
3383
|
-
* @ignore
|
|
3384
|
-
*/
|
|
3385
|
-
export declare const imageIDWithInstanceSuffix: (baseID: string, instanceIndex: number) => string;
|
|
3386
|
-
|
|
3387
3384
|
/**
|
|
3388
3385
|
* Available traffic incident category identifiers.
|
|
3389
3386
|
*
|
|
@@ -4253,17 +4250,6 @@ export declare type PlaceLayersConfig = {
|
|
|
4253
4250
|
selected?: Partial<ToBeAddedLayerSpecTemplate<SymbolLayerSpecification>>;
|
|
4254
4251
|
} & HasAdditionalLayersConfig;
|
|
4255
4252
|
|
|
4256
|
-
/**
|
|
4257
|
-
* Source identifier prefix for places (geocoding results) features.
|
|
4258
|
-
*
|
|
4259
|
-
* @remarks
|
|
4260
|
-
* Combined with a unique identifier to create source IDs for place markers
|
|
4261
|
-
* displayed via the Places module.
|
|
4262
|
-
*
|
|
4263
|
-
* @group Places
|
|
4264
|
-
*/
|
|
4265
|
-
export declare const PLACES_SOURCE_PREFIX_ID = "places";
|
|
4266
|
-
|
|
4267
4253
|
/**
|
|
4268
4254
|
* Map module for displaying and managing place markers.
|
|
4269
4255
|
*
|
|
@@ -6050,7 +6036,15 @@ export declare type RouteTheme = {
|
|
|
6050
6036
|
* @group Routing
|
|
6051
6037
|
*/
|
|
6052
6038
|
export declare class RoutingModule extends AbstractMapModule<RoutingSourcesWithLayers, RoutingModuleConfig> {
|
|
6039
|
+
private static lastInstanceIndex;
|
|
6053
6040
|
private layersSpecs;
|
|
6041
|
+
private layerIDPrefix;
|
|
6042
|
+
/**
|
|
6043
|
+
* The index of this instance, to generate unique source and layer IDs.
|
|
6044
|
+
* * Starts with 0 and each instance increments it by one.
|
|
6045
|
+
* @private
|
|
6046
|
+
*/
|
|
6047
|
+
private instanceIndex;
|
|
6054
6048
|
/**
|
|
6055
6049
|
* Make sure the map is ready before create an instance of the module and any other interaction with the map
|
|
6056
6050
|
* @param tomtomMap The TomTomMap instance.
|
|
@@ -6089,7 +6083,7 @@ export declare class RoutingModule extends AbstractMapModule<RoutingSourcesWithL
|
|
|
6089
6083
|
/**
|
|
6090
6084
|
* @ignore
|
|
6091
6085
|
*/
|
|
6092
|
-
protected _initSourcesWithLayers(config?: RoutingModuleConfig): RoutingSourcesWithLayers;
|
|
6086
|
+
protected _initSourcesWithLayers(config?: RoutingModuleConfig, restore?: boolean): RoutingSourcesWithLayers;
|
|
6093
6087
|
/**
|
|
6094
6088
|
* @ignore
|
|
6095
6089
|
*/
|