@tomtom-org/maps-sdk 0.51.3 → 0.51.5
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 +15 -0
- package/core/dist/core.es.js +1 -1
- package/core/dist/core.es.js.map +1 -1
- package/core/dist/index.d.ts +2 -1
- package/map/dist/index.d.ts +11 -11
- package/map/dist/map.es.js +1 -1
- package/map/dist/map.es.js.map +1 -1
- package/package.json +2 -2
- package/services/dist/index.d.ts +9 -11
- package/services/dist/services.es.js.map +1 -1
package/core/dist/index.d.ts
CHANGED
|
@@ -5726,7 +5726,8 @@ declare class TomTomConfig {
|
|
|
5726
5726
|
*/
|
|
5727
5727
|
declare const mergeFromGlobal: <T extends Partial<GlobalConfig>>(givenConfig?: T) => GlobalConfig & T;
|
|
5728
5728
|
/**
|
|
5729
|
-
* Whether the SDK is configured for a
|
|
5729
|
+
* Whether the SDK is configured for a credentials proxy such as the demos proxy
|
|
5730
|
+
* — no `apiKey` (the
|
|
5730
5731
|
* proxy injects the real key server-side from a cookie-gated session) plus a
|
|
5731
5732
|
* non-default `commonBaseURL`.
|
|
5732
5733
|
*
|
package/map/dist/index.d.ts
CHANGED
|
@@ -656,7 +656,7 @@ type StyleChangeHandler = {
|
|
|
656
656
|
* @example
|
|
657
657
|
* Basic map initialization:
|
|
658
658
|
* ```typescript
|
|
659
|
-
* import { TomTomMap } from '@tomtom-
|
|
659
|
+
* import { TomTomMap } from '@tomtom-org/maps-sdk/map';
|
|
660
660
|
*
|
|
661
661
|
* const map = new TomTomMap({
|
|
662
662
|
* key: 'YOUR_API_KEY',
|
|
@@ -3422,7 +3422,7 @@ declare class CombinedEvents<T, CFG, TShown = never> {
|
|
|
3422
3422
|
*
|
|
3423
3423
|
* @example
|
|
3424
3424
|
* ```typescript
|
|
3425
|
-
* import { mapFonts } from '@tomtom-
|
|
3425
|
+
* import { mapFonts } from '@tomtom-org/maps-sdk/map';
|
|
3426
3426
|
*
|
|
3427
3427
|
* // Check if a font is available
|
|
3428
3428
|
* if (mapFonts.includes('Noto-Bold')) {
|
|
@@ -3450,7 +3450,7 @@ declare const mapFonts: readonly ["Noto-Regular", "NotoSans-MediumItalic", "Noto
|
|
|
3450
3450
|
*
|
|
3451
3451
|
* @example
|
|
3452
3452
|
* ```typescript
|
|
3453
|
-
* import type { MapFont } from '@tomtom-
|
|
3453
|
+
* import type { MapFont } from '@tomtom-org/maps-sdk/map';
|
|
3454
3454
|
*
|
|
3455
3455
|
* function createTextLayer(font: MapFont) {
|
|
3456
3456
|
* return {
|
|
@@ -5000,7 +5000,7 @@ type GeometrySourcesWithLayers = {
|
|
|
5000
5000
|
* @example
|
|
5001
5001
|
* Basic usage:
|
|
5002
5002
|
* ```typescript
|
|
5003
|
-
* import { GeometriesModule } from '@tomtom-
|
|
5003
|
+
* import { GeometriesModule } from '@tomtom-org/maps-sdk/map';
|
|
5004
5004
|
*
|
|
5005
5005
|
* // Initialize module
|
|
5006
5006
|
* const geometriesModule = await GeometriesModule.get(map);
|
|
@@ -5167,7 +5167,7 @@ declare class GeometriesModule extends AbstractMapModule<GeometrySourcesWithLaye
|
|
|
5167
5167
|
*
|
|
5168
5168
|
* @example
|
|
5169
5169
|
* ```typescript
|
|
5170
|
-
* import { mapStyleLayerIDs } from '@tomtom-
|
|
5170
|
+
* import { mapStyleLayerIDs } from '@tomtom-org/maps-sdk/map';
|
|
5171
5171
|
*
|
|
5172
5172
|
* // Place all geometry layers below labels
|
|
5173
5173
|
* geometries.moveBeforeLayer(mapStyleLayerIDs.lowestLabel);
|
|
@@ -5262,7 +5262,7 @@ declare class GeometriesModule extends AbstractMapModule<GeometrySourcesWithLaye
|
|
|
5262
5262
|
* @example
|
|
5263
5263
|
* From search API response:
|
|
5264
5264
|
* ```typescript
|
|
5265
|
-
* import { search } from '@tomtom-
|
|
5265
|
+
* import { search } from '@tomtom-org/maps-sdk/services';
|
|
5266
5266
|
*
|
|
5267
5267
|
* const result = await search.geometrySearch({
|
|
5268
5268
|
* query: 'Amsterdam',
|
|
@@ -6830,7 +6830,7 @@ declare class PlacesModule extends AbstractMapModule<PlacesSourcesAndLayers, Pla
|
|
|
6830
6830
|
* @example
|
|
6831
6831
|
* Display search results:
|
|
6832
6832
|
* ```typescript
|
|
6833
|
-
* import { search } from '@tomtom-
|
|
6833
|
+
* import { search } from '@tomtom-org/maps-sdk/services';
|
|
6834
6834
|
*
|
|
6835
6835
|
* const results = await search({ query: 'coffee' });
|
|
6836
6836
|
* await placesModule.show(results);
|
|
@@ -7050,7 +7050,7 @@ declare const poiLayerIDs: string[];
|
|
|
7050
7050
|
* @example
|
|
7051
7051
|
* Filter to show only food-related POIs:
|
|
7052
7052
|
* ```ts
|
|
7053
|
-
* import { poiCategoryGroups } from '@tomtom-
|
|
7053
|
+
* import { poiCategoryGroups } from '@tomtom-org/maps-sdk/map';
|
|
7054
7054
|
*
|
|
7055
7055
|
* const foodCategories = poiCategoryGroups.FOOD_DRINKS_GROUP;
|
|
7056
7056
|
* console.log(foodCategories);
|
|
@@ -7383,7 +7383,7 @@ type PoIsSourcesAndLayers = {
|
|
|
7383
7383
|
* @example
|
|
7384
7384
|
* Basic usage:
|
|
7385
7385
|
* ```typescript
|
|
7386
|
-
* import { POIsModule } from '@tomtom-
|
|
7386
|
+
* import { POIsModule } from '@tomtom-org/maps-sdk/map';
|
|
7387
7387
|
*
|
|
7388
7388
|
* // Get module
|
|
7389
7389
|
* const poisModule = await POIsModule.get(map);
|
|
@@ -10378,7 +10378,7 @@ type TrafficFlowSourcesWithLayers = {
|
|
|
10378
10378
|
* @example
|
|
10379
10379
|
* Basic usage:
|
|
10380
10380
|
* ```typescript
|
|
10381
|
-
* import { TrafficFlowModule } from '@tomtom-
|
|
10381
|
+
* import { TrafficFlowModule } from '@tomtom-org/maps-sdk/map';
|
|
10382
10382
|
*
|
|
10383
10383
|
* // Get module (auto-add to style if needed)
|
|
10384
10384
|
* const trafficFlow = await TrafficFlowModule.get(map, {
|
|
@@ -11073,7 +11073,7 @@ type TrafficIncidentsSourcesWithLayers = {
|
|
|
11073
11073
|
* @example
|
|
11074
11074
|
* Basic usage:
|
|
11075
11075
|
* ```typescript
|
|
11076
|
-
* import { TrafficIncidentsModule } from '@tomtom-
|
|
11076
|
+
* import { TrafficIncidentsModule } from '@tomtom-org/maps-sdk/map';
|
|
11077
11077
|
*
|
|
11078
11078
|
* // Get module (auto-add to style if needed)
|
|
11079
11079
|
* const trafficIncidentsModule = await TrafficIncidentsModule.get(map, {
|